Gcc7 or QT59 bug ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Gcc7 or QT59 bug ?

Bruno Friedmann-2
Build qgis-master (the future 3.0 version) based on qt5 give me an error now
on TW since 3-4 days.

[ 4316s] [ 88%] Linking CXX executable ../../../output/bin/qgis_ogcutilstest
[ 4316s] cd /home/abuild/rpmbuild/BUILD/qgis-
master-0+git1497708569.c69c5963d0/build/tests/src/core && /usr/bin/cmake -E
cmake_link_script CMakeFiles/qgis_ogcutilstest.dir/link.txt --verbose=1
[ 4316s] /usr/bin/c++  -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -
D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-
unwind-tables -g -DNDEBUG -DSPATIALITE_VERSION_GE_4_0_0 -
DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -Wall -Wextra -Wno-long-
long -Wformat-security -Wno-strict-aliasing -O3 -DNDEBUG  -Wl,--as-needed -
Wl,--no-undefined -Wl,-z,now -Wl,--no-undefined -rdynamic CMakeFiles/
qgis_ogcutilstest.dir/testqgsogcutils.cpp.o CMakeFiles/qgis_ogcutilstest.dir/
qgis_ogcutilstest_autogen/moc_compilation.cpp.o  -o ../../../output/bin/
qgis_ogcutilstest  -L/home/abuild/rpmbuild/BUILD/qgis-
master-0+git1497708569.c69c5963d0/build/src/core  -L/home/abuild/rpmbuild/
BUILD/qgis-master-0+git1497708569.c69c5963d0/build/src/gui -Wl,-rpath,/home/
abuild/rpmbuild/BUILD/qgis-master-0+git1497708569.c69c5963d0/build/src/core:/
home/abuild/rpmbuild/BUILD/qgis-master-0+git1497708569.c69c5963d0/build/src/
gui:/home/abuild/rpmbuild/BUILD/qgis-master-0+git1497708569.c69c5963d0/build/
output/usr/lib64 /usr/lib64/libQt5Test.so.5.9.0 -lproj -lgeos_c -lgdal
../../../output/usr/lib64/libqgis_core.so.2.99.0 /usr/lib64/libQt5Xml.so.5.9.0
/usr/lib64/libQt5Concurrent.so.5.9.0 /usr/lib64/libQt5PrintSupport.so.5.9.0 /
usr/lib64/libQt5Svg.so.5.9.0 /usr/lib64/libQt5WebKitWidgets.so.5.9.0 /usr/
lib64/libQt5Widgets.so.5.9.0 /usr/lib64/libQt5WebKit.so.5.9.0 /usr/lib64/
libQt5Gui.so.5.9.0 /usr/lib64/libQt5Network.so.5.9.0 /usr/lib64/libQt5Sql.so.
5.9.0 -lqca-qt5 -lqtkeychain -lproj -lgeos_c -lgdal -lspatialindex -lexpat -
lsqlite3 -lspatialite /usr/lib64/libQt5Positioning.so.5.9.0 /usr/lib64/
libQt5Core.so.5.9.0
[ 4316s] CMakeFiles/qgis_ogcutilstest.dir/testqgsogcutils.cpp.o: In function
`std::__atomic_base<int>::store(int, std::memory_order)':
[ 4316s] /usr/include/c++/7/bits/atomic_base.h:374: undefined reference to
`qt_qhash_seed'
[ 4316s] /usr/include/c++/7/bits/atomic_base.h:374: undefined reference to
`qt_qhash_seed'
[ 4316s] collect2: error: ld returned 1 exit status
[ 4316s] make[2]: *** [tests/src/core/CMakeFiles/qgis_ogcutilstest.dir/
build.make:150: output/bin/qgis_ogcutilstest] Error 1
[ 4316s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/qgis-
master-0+git1497708569.c69c5963d0/build'
[ 4316s] make[1]: *** [CMakeFiles/Makefile2:10140: tests/src/core/CMakeFiles/
qgis_ogcutilstest.dir/all] Error 2
[ 4316s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/qgis-
master-0+git1497708569.c69c5963d0/build'
[ 4316s] make: *** [Makefile:166: all] Error 2

I've seen two updates of gcc7 during the week, and of course the qt59
introduction, is it linked to ?

Known bug already ?
Building project is located here

https://build.opensuse.org/package/show/
home:bruno_friedmann:branches:Application:Geo/qgis-master

--

Bruno Friedmann
 Ioda-Net Sàrl www.ioda-net.ch
 Bareos Partner, openSUSE Member, fsfe fellowship
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Gcc7 or QT59 bug ?

Richard Biener
On Sun, 18 Jun 2017, Bruno Friedmann wrote:

> Build qgis-master (the future 3.0 version) based on qt5 give me an error now
> on TW since 3-4 days.
>
> [ 4316s] [ 88%] Linking CXX executable ../../../output/bin/qgis_ogcutilstest
> [ 4316s] cd /home/abuild/rpmbuild/BUILD/qgis-
> master-0+git1497708569.c69c5963d0/build/tests/src/core && /usr/bin/cmake -E
> cmake_link_script CMakeFiles/qgis_ogcutilstest.dir/link.txt --verbose=1
> [ 4316s] /usr/bin/c++  -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -
> D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-
> unwind-tables -g -DNDEBUG -DSPATIALITE_VERSION_GE_4_0_0 -
> DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -Wall -Wextra -Wno-long-
> long -Wformat-security -Wno-strict-aliasing -O3 -DNDEBUG  -Wl,--as-needed -
> Wl,--no-undefined -Wl,-z,now -Wl,--no-undefined -rdynamic CMakeFiles/
> qgis_ogcutilstest.dir/testqgsogcutils.cpp.o CMakeFiles/qgis_ogcutilstest.dir/
> qgis_ogcutilstest_autogen/moc_compilation.cpp.o  -o ../../../output/bin/
> qgis_ogcutilstest  -L/home/abuild/rpmbuild/BUILD/qgis-
> master-0+git1497708569.c69c5963d0/build/src/core  -L/home/abuild/rpmbuild/
> BUILD/qgis-master-0+git1497708569.c69c5963d0/build/src/gui -Wl,-rpath,/home/
> abuild/rpmbuild/BUILD/qgis-master-0+git1497708569.c69c5963d0/build/src/core:/
> home/abuild/rpmbuild/BUILD/qgis-master-0+git1497708569.c69c5963d0/build/src/
> gui:/home/abuild/rpmbuild/BUILD/qgis-master-0+git1497708569.c69c5963d0/build/
> output/usr/lib64 /usr/lib64/libQt5Test.so.5.9.0 -lproj -lgeos_c -lgdal
> ../../../output/usr/lib64/libqgis_core.so.2.99.0 /usr/lib64/libQt5Xml.so.5.9.0
> /usr/lib64/libQt5Concurrent.so.5.9.0 /usr/lib64/libQt5PrintSupport.so.5.9.0 /
> usr/lib64/libQt5Svg.so.5.9.0 /usr/lib64/libQt5WebKitWidgets.so.5.9.0 /usr/
> lib64/libQt5Widgets.so.5.9.0 /usr/lib64/libQt5WebKit.so.5.9.0 /usr/lib64/
> libQt5Gui.so.5.9.0 /usr/lib64/libQt5Network.so.5.9.0 /usr/lib64/libQt5Sql.so.
> 5.9.0 -lqca-qt5 -lqtkeychain -lproj -lgeos_c -lgdal -lspatialindex -lexpat -
> lsqlite3 -lspatialite /usr/lib64/libQt5Positioning.so.5.9.0 /usr/lib64/
> libQt5Core.so.5.9.0
> [ 4316s] CMakeFiles/qgis_ogcutilstest.dir/testqgsogcutils.cpp.o: In function
> `std::__atomic_base<int>::store(int, std::memory_order)':
> [ 4316s] /usr/include/c++/7/bits/atomic_base.h:374: undefined reference to
> `qt_qhash_seed'
> [ 4316s] /usr/include/c++/7/bits/atomic_base.h:374: undefined reference to
> `qt_qhash_seed'
> [ 4316s] collect2: error: ld returned 1 exit status
> [ 4316s] make[2]: *** [tests/src/core/CMakeFiles/qgis_ogcutilstest.dir/
> build.make:150: output/bin/qgis_ogcutilstest] Error 1
> [ 4316s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/qgis-
> master-0+git1497708569.c69c5963d0/build'
> [ 4316s] make[1]: *** [CMakeFiles/Makefile2:10140: tests/src/core/CMakeFiles/
> qgis_ogcutilstest.dir/all] Error 2
> [ 4316s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/qgis-
> master-0+git1497708569.c69c5963d0/build'
> [ 4316s] make: *** [Makefile:166: all] Error 2
>
> I've seen two updates of gcc7 during the week, and of course the qt59
> introduction, is it linked to ?
>
> Known bug already ?
> Building project is located here
>
> https://build.opensuse.org/package/show/
> home:bruno_friedmann:branches:Application:Geo/qgis-master

Hard to say without access to preprocessed source of testqgsogcutils.cpp.

If in doubt it's always a programmers error, not the compilers.

Richard.

--
Richard Biener <[hidden email]>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Gcc7 or QT59 bug ?

Bruno Friedmann-2
> >
> > Known bug already ?
> > Building project is located here
> >
> > https://build.opensuse.org/package/show/
> > home:bruno_friedmann:branches:Application:Geo/qgis-master
>
> Hard to say without access to preprocessed source of testqgsogcutils.cpp.
>
> If in doubt it's always a programmers error, not the compilers.
>
> Richard.

It was confirmed as bad programming practive by fvogt. so upstream issue
openned and patch given ;-)


--

Bruno Friedmann
 Ioda-Net Sàrl www.ioda-net.ch
 Bareos Partner, openSUSE Member, fsfe fellowship
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]