Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.8.x
-
None
-
Linux (Fedora Core 3) on x86-64 with GCC 3.4.2
Description
Building qt from the current git 4.8 branch using an older GCC fails with
rm -f libQtCore.so.4.8.3 libQtCore.so libQtCore.so.4 libQtCore.so.4.8 g++ -Wl,-rpath-link,/tmp/qt/lib -m64 -fno-exceptions -Wl,--no-undefined -Wl,-e,qt_core_boilerplate -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.3/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.3/lib -shared -Wl,-soname,libQtCore.so.4 -o libQtCore.so.4.8.3 .obj/release-shared/qabstractanimation.o .obj/release-shared/qvariantanimation.o .obj/release-shared/qpropertyanimation.o [long list of object files elided] .obj/release-shared/moc_qsignaltransition.o .obj/release-shared/moc_qeventtransition.o -L/home/cport/tmp/qt/lib -lpthread -lm -ldl -lrt .obj/release-shared/qthread_unix.o(.text+0x2c): In function `set_thread_data(QThreadData*)': : undefined reference to `__tls_get_addr' .obj/release-shared/qthread_unix.o(.text+0x1356): In function `QThreadData::current()': : undefined reference to `__tls_get_addr' collect2: ld returned 1 exit status gmake[1]: *** [../../lib/libQtCore.so.4.8.3] Error 1 gmake[1]: Leaving directory `/tmp/qt/src/corelib' gmake: *** [sub-corelib-make_default-ordered] Error 2
This is easily addressed with the attached patch, which makes use of libstdc++'s _GLIBCXX_HAVE_TLS cpp symbol.
(Note: This bug has been cloned from QTBUG-19801 as I did not see a way to re-open that one)
Attachments
Issue Links
- relates to
-
QTBUG-23364 Qt 4.8 does not build with GCC 4.1
- Closed