[arch-general] Failed building Qt5 with debug symbols
Hello, Trying to build qt5 with debug symbols, but failed. Using the qt5 from abs, per instructions in the wiki ( https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces), I added in the PKGBUILD options=(debug !strip) and added -developer-build -no-warnings-are-errors to the configure and build with and without qt5-webkit. Got following messages: ...skip... cd qurlinternal/ && ( test -e Makefile || /tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/corelib/io/qurlinternal/ qurlinternal.pro -o Makefile ) && make -f Makefile .obj/tst_compiler.o: In function `bool QTest::qCompare<int>(int const&, int const&, char const*, char const*, char const*, int)' : /tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/other/compiler/../../../../include/QtTest /../../src/testlib/qtestcase.h:284: undefined reference to `variableTemplate<int>' .obj/tst_compiler.o: In function `bool QTest::qCompare<long>(long const&, long const&, char const*, char const*, char const*, in t)': /tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/other/compiler/../../../../include/QtTest /../../src/testlib/qtestcase.h:284: undefined reference to `variableTemplate<long>' .obj/tst_compiler.o: In function `bool QTest::qCompare<unsigned int>(unsigned int const&, unsigned int const&, char const*, char const*, char const*, int)': /tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/other/compiler/../../../../include/QtTest /../../src/testlib/qtestcase.h:284: undefined reference to `variableTemplate<unsigned int>' .obj/tst_compiler.o: In function `bool QTest::qCompare<unsigned long long>(unsigned long long const&, unsigned long long const&, char const*, char const*, char const*, int)': /tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/other/compiler/../../../../include/QtTest /../../src/testlib/qtestcase.h:284: undefined reference to `variableTemplate<unsigned long long>' collect2: error: ld returned 1 exit status Makefile:230: recipe for target 'tst_compiler' failed make[5]: *** [tst_compiler] Error 1 make[5]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/other/compile r' Makefile:85: recipe for target 'sub-compiler-make_first' failed make[4]: *** [sub-compiler-make_first] Error 2 make[4]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/other' Makefile:306: recipe for target 'sub-other-make_first' failed make[3]: *** [sub-other-make_first] Error 2 make[3]: *** Waiting for unfinished jobs.... ...skip... make[6]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/corelib/tools /qvector_strictiterators' make[5]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/corelib/tools ' make[4]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto/corelib' make[3]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests/auto' Makefile:42: recipe for target 'sub-auto-make_first' failed make[2]: *** [sub-auto-make_first] Error 2 make[2]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase/tests' Makefile:95: recipe for target 'sub-tests-make_first' failed make[1]: *** [sub-tests-make_first] Error 2 make[1]: Leaving directory '/tmp/yaourt-tmp-scarecrow/qt5/src/qt-everywhere-opensource-src-5.4.1/qtbase' Makefile:70: recipe for target 'module-qtbase-make_first' failed make: *** [module-qtbase-make_first] Error 2 Any suggestions? Thanks, Yang
On 14/05/15 01:07, Yang Su wrote:
Hello,
Trying to build qt5 with debug symbols, but failed. Using the qt5 from abs, per instructions in the wiki ( [snip]
Any suggestions?
You can save yourself all the hassle by getting pre-built arch packages from this repo: http://qutebrowser.org/qt-debug/ Instructions for using it can be found here: https://github.com/The-Compiler/qutebrowser/blob/master/doc/stacktrace.ascii... (This also has some guidance on compiling yourself, if you're still interested in doing that).
Hello kachelaqa, Thanks a lot for the info. Yang On Wed, May 13, 2015 at 9:16 PM, kachelaqa <kachelaqa@gmail.com> wrote:
On 14/05/15 01:07, Yang Su wrote:
Hello,
Trying to build qt5 with debug symbols, but failed. Using the qt5 from abs, per instructions in the wiki (
[snip]
Any suggestions?
You can save yourself all the hassle by getting pre-built arch packages from this repo:
http://qutebrowser.org/qt-debug/
Instructions for using it can be found here:
https://github.com/The-Compiler/qutebrowser/blob/master/doc/stacktrace.ascii...
(This also has some guidance on compiling yourself, if you're still interested in doing that).
Hello On 05/14/2015 02:07 AM, Yang Su wrote:
Hello,
Trying to build qt5 with debug symbols, but failed. Using the qt5 from abs, per instructions in the wiki ( https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces), I added in the PKGBUILD
options=(debug !strip)
and added
-developer-build -no-warnings-are-errors
to the configure and build with and without qt5-webkit. Got following messages:
I had a similar problem. For me, the following worked. Use this configure command: CXXFLAGS="-std=c++11" configure [all your configure options] -c++11 This forces the build system to use C++11, because by default C++98 is used IIRC. There is a compiler bug for c++98 (has_feature macros are defined but the c++11 classes are not avaible) and I found a bugreport about it (for gentoo), but the gcc developers said it's a downstream bug. Unfortunally I can't find the bug report anymore :/ I hope this helps, David
participants (3)
-
David Kahles
-
kachelaqa
-
Yang Su