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!
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: https://github.com/qgis/QGIS/pull/7319#issuecomment-401261273 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. Thank you very much. Daniele On Fri, Jun 29, 2018 at 7:37 AM Daniele Viganò <[email protected]> wrote: > Hi guys, > > I'm also having issues compiling latest master on both Fedora 27 and > Fedora 28 since https://github.com/qgis/QGIS/pull/7319 has been merged. > > I'm getting this error: > > [ 70%] Linking CXX shared library ../../output/lib64/libqgis_3d.so > BUILDSTDERR: > CMakeFiles/qgis_3d.dir/terrain/qgsdemterraintilegeometry_p.cpp.o: In > function `intersectionDemTriangles': > BUILDSTDERR: > /builddir/build/BUILD/qgis-3.3.0/src/3d/terrain/qgsdemterraintilegeometry_p.cpp:275: > undefined reference to `operator*(QMatrix4x4 const&, QVector3D const&)' > BUILDSTDERR: > /builddir/build/BUILD/qgis-3.3.0/src/3d/terrain/qgsdemterraintilegeometry_p.cpp:276: > undefined reference to `operator*(QMatrix4x4 const&, QVector3D const&)' > BUILDSTDERR: > /builddir/build/BUILD/qgis-3.3.0/src/3d/terrain/qgsdemterraintilegeometry_p.cpp:277: > undefined reference to `operator*(QMatrix4x4 const&, QVector3D const&)' > BUILDSTDERR: collect2: error: ld returned 1 exit status > BUILDSTDERR: make[2]: *** [src/3d/CMakeFiles/qgis_3d.dir/build.make:846: > output/lib64/libqgis_3d.so.3.3.0] Error 1 > make[2]: Leaving directory '/builddir/build/BUILD/qgis-3.3.0' > BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:3253: > src/3d/CMakeFiles/qgis_3d.dir/all] Error 2 > make[1]: Leaving directory '/builddir/build/BUILD/qgis-3.3.0' > BUILDSTDERR: make: *** [Makefile:155: all] Error 2 > > > 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 > https://copr-be.cloud.fedoraproject.org/results/dani/qgis-testing/fedora-28-x86_64/00772119-qgis/build.log.gz > Do you have any hint? I'm running Qt 5.10, cmake 3.11 and gcc 8.1.1 > > Many thanks, > Daniele > > > -- > *Daniele Viganò* > http://daniele.vigano.me > -- *Daniele Viganò* http://daniele.vigano.me
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
