[arch-general] Failed building Qt5 with debug symbols

Yang Su suyang.nju at gmail.com
Thu May 14 00:07:41 UTC 2015


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


More information about the arch-general mailing list