<div dir="ltr"><div>I was able to identify why it's failing when building packages, but not on QGIS Travis and/or when making a simple compilation from git: hardening!</div><div><br></div><div>Packages on Fedora are built with gcc hardening set (this is usually required by packaging policies). Unfortunately Travis is not testing this environment. I added a full description of the problem here: <a href="https://github.com/qgis/QGIS/pull/7319#issuecomment-401261273">https://github.com/qgis/QGIS/pull/7319#issuecomment-401261273</a></div><div><br></div><div>This problem may affect other distributions, like SuSE. Not sure about Ubuntu/Debian, but I would expect hardening enabled by default also on them nowadays.</div><div><br></div><div>Thank you very much.<br></div><div>Daniele<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 29, 2018 at 7:37 AM Daniele ViganĂ² <<a href="mailto:daniele@vigano.me">daniele@vigano.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi guys,</div><div><br></div><div>I'm also having issues compiling latest master on both Fedora 27 and Fedora 28 since <a href="https://github.com/qgis/QGIS/pull/7319" target="_blank">https://github.com/qgis/QGIS/pull/7319</a> has been merged.</div><div><br></div><div>I'm getting this error:</div><div><br></div><div>[ 70%] Linking CXX shared library ../../output/lib64/libqgis_3d.so<br>BUILDSTDERR: CMakeFiles/qgis_3d.dir/terrain/qgsdemterraintilegeometry_p.cpp.o: In function `intersectionDemTriangles':<br>BUILDSTDERR: /builddir/build/BUILD/qgis-3.3.0/src/3d/terrain/qgsdemterraintilegeometry_p.cpp:275: undefined reference to `operator*(QMatrix4x4 const&, QVector3D const&)'<br>BUILDSTDERR: /builddir/build/BUILD/qgis-3.3.0/src/3d/terrain/qgsdemterraintilegeometry_p.cpp:276: undefined reference to `operator*(QMatrix4x4 const&, QVector3D const&)'<br>BUILDSTDERR: /builddir/build/BUILD/qgis-3.3.0/src/3d/terrain/qgsdemterraintilegeometry_p.cpp:277: undefined reference to `operator*(QMatrix4x4 const&, QVector3D const&)'<br>BUILDSTDERR: collect2: error: ld returned 1 exit status<br>BUILDSTDERR: make[2]: *** [src/3d/CMakeFiles/qgis_3d.dir/build.make:846: output/lib64/libqgis_3d.so.3.3.0] Error 1<br>make[2]: Leaving directory '/builddir/build/BUILD/qgis-3.3.0'<br>BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:3253: src/3d/CMakeFiles/qgis_3d.dir/all] Error 2<br>make[1]: Leaving directory '/builddir/build/BUILD/qgis-3.3.0'<br>BUILDSTDERR: make: *** [Makefile:155: all] Error 2</div><div><br></div><div><br></div><div>It's always reproducible and it happens with both make -j20 and make -j1. I was able to reproduce it locally and on a remote builder, see <a href="https://copr-be.cloud.fedoraproject.org/results/dani/qgis-testing/fedora-28-x86_64/00772119-qgis/build.log.gz" target="_blank">https://copr-be.cloud.fedoraproject.org/results/dani/qgis-testing/fedora-28-x86_64/00772119-qgis/build.log.gz</a></div><div>Do you have any hint? I'm running Qt 5.10, cmake 3.11 and gcc 8.1.1</div><div><br></div><div>Many thanks,<br></div><div>Daniele<br></div><br><div><br>-- <br><div dir="ltr" class="m_3160740296221092366gmail_signature"><b><span style="color:rgb(153,153,153)">Daniele ViganĂ²</span></b><br style="color:rgb(153,153,153)"><a style="color:rgb(51,51,255)" href="http://daniele.vigano.me" target="_blank">http://daniele.vigano.me</a></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><b><span style="color:rgb(153,153,153)">Daniele ViganĂ²</span></b><br style="color:rgb(153,153,153)"><a style="color:rgb(51,51,255)" href="http://daniele.vigano.me" target="_blank">http://daniele.vigano.me</a></div>