Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267825 - x11-libs/qt-core-4.4.2-r2 fails to compile with distcc
Summary: x11-libs/qt-core-4.4.2-r2 fails to compile with distcc
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-29 03:06 UTC by Anarkakari
Modified: 2009-06-11 16:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info from the emerging machine (emerge.info,4.49 KB, text/plain)
2009-04-30 01:49 UTC, Anarkakari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anarkakari 2009-04-29 03:06:19 UTC
x11-libs/qt-core-4.4.2-r2 fails to compile using distcc across multiple computers with different CHOSTs, because it calls g++ directly rather than the CHOST specific compiler.

Reproducible: Always

Steps to Reproduce:
1. Set up crossdev and distcc on a machine with a different CHOST than the emerging machine
2. emerge x11-libs/qt-core-4.4.2-r2 using distcc and the helper machine with a different CHOST

Actual Results:  
qt-core fails to build properly.  although the build.log just lists the qmake calls and not what qmake is calling, running qmake manually on the source produces output like:
Creating qmake. Please wait...
g++ -c -o option.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/src/corelib/global -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/src/script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  option.cpp                                        
g++ -c -o qlibraryinfo.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/src/corelib/global -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/src/script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  /var/tmp/portage/x11-libs/qt-core-4.4.2-r2/work/qt-x11-opensource-src-4.4.2/src/corelib/global/qlibraryinfo.cpp

etc... where g++ rather than, for example, x86_64-pc-linux-gnu-g++ is executed.

Expected Results:  
The correct CHOST specific compiler should be executed, and the build should succeed.

Sorry if this is the wrong category, I wasn't sure if this should go in dev or KDE or what.  Also, I would guess (but have not yet verified) that the other qt builds fail similarly.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 13:07:42 UTC
Please post your `emerge --info' too.
Comment 2 Anarkakari 2009-04-30 01:49:44 UTC
Created attachment 189909 [details]
emerge --info from the emerging machine

emerge --info from the emerging machine.  Also, FYI, all other qt-foobar builds fail similarly, unless distcc is totally disabled.. even distcc across hosts with the same CHOST seems to fail.....
Comment 3 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-06-11 16:30:41 UTC
does this still happen with 4.5.1? i managed to compile 4.5.1 with distcc between sparc and amd64 systems
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2009-06-11 16:34:35 UTC
Indeed 4.5.X packages work fine. I 'll close this bug as WONTFIX cause we wont bother to fix the old packages since qt-4.5.1 will be stable soon