You are not logged in.

#1 2015-01-03 05:30:08

YAOMTC
Member
Registered: 2010-02-23
Posts: 180

Trying, failing to build qt5 with debugging symbols

As per this article, I modified my PKGBUILD like so (-developer-build):

build() {
  cd ${_pkgfqn}

  export QTDIR="${srcdir}"/${_pkgfqn}
  export LD_LIBRARY_PATH="${QTDIR}"/qtbase/lib:"${QTDIR}"/qttools/lib:"${LD_LIBRARY_PATH}"
  export QT_PLUGIN_PATH="${QTDIR}"/qtbase/plugins

  export PATH="${srcdir}/python2-path:$PATH"

  [[ "${CARCH}" = "i686" ]] && SSE2="-no-sse2"

  PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource -developer-build \

Don't know if I put the option in the wrong place, though, or if that information is outdated for qt5 - but it's not building for me. Here's where makepkg stops:

ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so
ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so.5
ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so.5.4
rm -f ../../lib/libQt5Widgets.so.5.4.0
mv -f libQt5Widgets.so.5.4.0  ../../lib/ 
rm -f ../../lib/libQt5Widgets.so
rm -f ../../lib/libQt5Widgets.so.5
rm -f ../../lib/libQt5Widgets.so.5.4
mv -f libQt5Widgets.so ../../lib/ 
mv -f libQt5Widgets.so.5 ../../lib/ 
mv -f libQt5Widgets.so.5.4 ../../lib/ 
make[3]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase/src/widgets'
make[2]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase'
Makefile:70: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Not sure what happened. How do I get more information?

I need qt5-base with debugging symbols so I can get helpful traces for plasma-desktop crashes. So I should also ask: is it possible to modify the PKGBUILD to just compile qt5-base (and perhaps qt5-webkit and qt5-webengine)? qt5 is huge...

EDIT: and yes I had qtwebkit uninstalled at the time

Last edited by YAOMTC (2015-01-03 06:12:49)

Offline

#2 2015-02-02 22:43:04

6xx
Trusted User (TU)
Registered: 2006-11-26
Posts: 22
Website

Re: Trying, failing to build qt5 with debugging symbols

I hate it when the only result for a problem is an unanswered question...

Anyway, invoking make manually uncovers what is the problem - there's a bunch of errors similar to this:

../gui/text/qfontengine_ft.cpp:1146:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                     for (int x = 0; x < slot->bitmap.width; x++) {
                                       ^
cc1plus: all warnings being treated as errors

So the -Werror is the culprit. Looking at the ./configure -help output it turns out that the -developer-build enables -Werror. But there's -no-warnings-are-errors. So yeah, passing -no-warnings-are-errors in addition to -developer-build should fix the compilation.

I have updated the wiki accordingly.

EDIT: the compilation gets a bit further, but it now fails because of tests.

EDIT2: it pays off to read configure rather than rely on some random suggestion from the wiki. There's a "-debug" option, which should just enable debugging. It hasn't finished compiling here yet, but it got a lot further than before.

Last edited by 6xx (2015-02-03 21:13:49)

Offline

#3 2015-02-06 04:40:28

YAOMTC
Member
Registered: 2010-02-23
Posts: 180

Re: Trying, failing to build qt5 with debugging symbols

Sadly I gave up on that. And now that Plasma 5.2 is out, I have a much more stable desktop and don't remember the last time I had a crash. So now I no longer feel the need for bug reporting capability.

Offline

#4 2015-04-19 07:54:07

BertiBoeller
Member
Registered: 2009-01-19
Posts: 51

Re: Trying, failing to build qt5 with debugging symbols

I was able to build Qt with debug symbols with the following two options added to the configure command:

-release -force-debug-info

Offline

Board footer

Powered by FluxBB