however parallel build without distcc works. Linux 2.6.20-gentoo #2 SMP PREEMPT gcc version 4.1.2 20070214 ((gdc 0.23, using dmd 1.007)) (Gentoo 4.1.2) distcc-2.18.3-r10 g++ -c -pipe -O2 -mtune=pentium3 -march=i686 -ggdb -Wall -W -I../../../mkspecs/linux-g++ -I. -I. -o ptrsizetest.o ptrsizetest.cpp ptrsizetest.cpp: In function »int main(int, char**)«: ptrsizetest.cpp:18: Fehler: »PointerSize« ist kein Element von »QPointerSizeTest<4>« distcc[25155] ERROR: compile ptrsizetest.cpp on 192.168.10.101/6 failed make: *** [ptrsizetest.o] Error 1 Pointer size: 4 This target is using the GNU C++ compiler (linux-g++). Recent versions of this compiler automatically include code for exceptions, which increase both the size of the Qt libraries and the amount of memory taken by your applications. You may choose to re-run configure with the -no-exceptions option to compile Qt without exceptions. This is completely binary compatible, and existing applications will continue to work. [...] cc1plus: cc1plus: cc1plus: error: .pch/release-shared/QtCore: No such file or directory cc1plus: error: .pch/release-shared/QtCore: No such file or directory cc1plus: error: .pch/release-shared/QtCore: No such file or directory error: error: .pch/release-shared/QtCore: No such file or directory cc1plus: cc1plus: error: .pch/release-shared/QtCore: No such file or directory distcc[32009] ERROR: compile global/qnumeric.cpp on 192.168.10.101/6 failed make[1]: *** [.obj/release-shared/qnumeric.o] Error 1 make[1]: *** Waiting for unfinished jobs.... .pch/release-shared/QtCore: No such file or directory distcc[32016] ERROR: compile thread/qmutexpool.cpp on trillian/2 failed make[1]: *** [.obj/release-shared/qmutexpool.o] Error 1 error: .pch/release-shared/QtCore: No such file or directory cc1plus: error: .pch/release-shared/QtCore: No such file or directory distcc[32017] ERROR: compile thread/qsemaphore.cpp on 192.168.10.101/6 failed make[1]: *** [.obj/release-shared/qsemaphore.o] Error 1 distcc[32012] ERROR: compile thread/qmutex.cpp on 192.168.10.101/6 failed make[1]: *** [.obj/release-shared/qmutex.o] Error 1 distcc[32015] ERROR: compile thread/qreadwritelock.cpp on 192.168.10.101/6 failed make[1]: *** [.obj/release-shared/qreadwritelock.o] Error 1 distcc[32008] ERROR: compile global/qlibraryinfo.cpp on trillian/2 failed make[1]: *** [.obj/release-shared/qlibraryinfo.o] Error 1 distcc[32007] ERROR: compile global/qglobal.cpp on 192.168.10.101/6 failed make[1]: *** [.obj/release-shared/qglobal.o] Error 1 distcc[32018] ERROR: compile thread/qthread.cpp on 192.168.10.101/6 failed make[1]: *** [.obj/release-shared/qthread.o] Error 1 make: *** [sub-corelib-all-ordered] Error 2 !!! ERROR: x11-libs/qt-4.3.0_rc1 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile qt-4.3.0_rc1.ebuild, line 211: Called die
it was x11-libs/qt-4.3.0_rc1 ...
just a guess, but using pch and distcc are probably incompatible.
(In reply to comment #2) > just a guess, but using pch and distcc are probably incompatible. > Seems to be configure default?? x11-libs/qt-4.3.0_rc1 USE="accessibility cups dbus examples gif jpeg mng mysql nas opengl png postgres sqlite ssl tiff xinerama zlib -debug -doc -firebird -glib -nis -odbc -pch -qt3support -sqlite3" INPUT_DEVICES="wacom" qmake vars .......... cat: .qmake.vars: No such file or directory qmake switches ...... Build ............... libs tools examples demos Configuration ....... release shared dll largefile stl precompile_header mmx 3dnow sse sse2 accessibility opengl minimal-config small-config medium-config large-config full-config reduce_exports ipv6 clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify system-jpeg system-mng system-png png gif sys tem-tiff system-freetype system-zlib cups iconv qdbus nas openssl x11sm xshape xinerama xcursor xfixes xrandr xrender fontconfig tablet xkb release Debug ............... no Qt 3 compatibility .. no QtDBus module ....... yes STL support ......... yes PCH support ......... yes
looks like this might have changed in 4.3.0. I've modified the ebuild to explicitly disable pch. do a re-sync in about an hour and try it again.
(In reply to comment #4) > looks like this might have changed in 4.3.0. I've modified the ebuild to > explicitly disable pch. do a re-sync in about an hour and try it again. > diff --git a/x11-libs/qt/qt-4.3.0_rc1.ebuild b/x11-libs/qt/qt-4.3.0_rc1.ebuild index d441e38..88c4d79 100644 --- a/x11-libs/qt/qt-4.3.0_rc1.ebuild +++ b/x11-libs/qt/qt-4.3.0_rc1.ebuild @@ -191,7 +191,7 @@ src_compile() { use qt3support && myconf="${myconf} -qt3support" || myconf="${myconf} -no-qt3support" use ssl && myconf="${myconf} -openssl" || myconf="${myconf} -no-openssl" - use pch && myconf="${myconf} -pch" + use pch && myconf="${myconf} -pch" || myconf="${myconf} -no-pch" That was indeed a perfect guess. Now it did compile with the distcc (on the contrary to 2 hours in about 20 minutes :-)) What about to enable the pch use flag for the average gentoo user as default and include some more voodoo like: && has distcc ${FEATURES} && myconf="${myconf} -no-pch" && einfo "pch has been disabled, precompiled headers and distcc are incompatible."
yep,we definitely need a check. moreso though, I would think for other packages that support pre compiled headers that they probably won't work with distcc either. have you had any other success/failures?
(In reply to comment #6) > yep,we definitely need a check. moreso though, I would think for other > packages that support pre compiled headers that they probably won't work with > distcc either. have you had any other success/failures? > As I ca see, there are only 2 other teeny packages with the (strange looking) names: euse -i pch [- ] pch (media-sound/mumble): Enable precompiled header support for faster compilation times (gcc >3.4 only) [- ] pch (media-sound/murmur): Enable precompiled header support for faster compilation times (gcc >3.4 only) [- ] pch (x11-libs/qt): Enable precompiled header support for faster compilation times (gcc >3.4 only) and yes, it looks like they have the same problem ;-) >>> Compiling source in /var/tmp/portage/media-sound/murmur-0.9.4-r1/work/mumble-0.9.4 ... cc1plus: cc1plus: error: release/murmur: No such file or directory cc1plus: error: release/murmur: No such file or directory error: release/murmur: No such file or directory cc1plus: error: release/murmur: No such file or directory cc1plus: cc1plus: error: release/murmur: No such file or directory error: release/murmur: No such file or directory cc1plus: error: release/murmur: No such file or directory cc1plus: error: release/murmur: No such file or directory distcc[24432] ERROR: compile Channel.cpp on 192.168.10.101/6 failed make[1]: *** [release/Channel.o] Error 1 make[1]: *** Waiting for unfinished jobs.... distcc[24429] ERROR: compile Group.cpp on trillian/2 failed make[1]: *** [release/Group.o] Error 1 distcc[24428] ERROR: compile ACL.cpp on 192.168.10.101/6 failed make[1]: *** [release/ACL.o] Error 1 distcc[24433] ERROR: compile murmur.cpp on trillian/2 failed make[1]: *** [release/murmur.o] Error 1 distcc[24442] ERROR: compile Server.cpp on 192.168.10.101/6 failed make[1]: *** [release/Server.o] Error 1 distcc[24440] ERROR: compile Connection.cpp on 192.168.10.101/6 failed make[1]: *** [release/Connection.o] Error 1 distcc[24444] ERROR: compile Player.cpp on 192.168.10.101/6 failed make[1]: *** [release/Player.o] Error 1 distcc[24438] ERROR: compile Message.cpp on 192.168.10.101/6 failed make[1]: *** [release/Message.o] Error 1 make: *** [release] Error 2 !!! ERROR: media-sound/murmur-0.9.4-r1 failed.
I can confirm that is qt-4.3.1-r1 and qt-4.3.2 are both cannot be compiled with pch USE flag set when distcc feature enabled. Tested in amd64 and x86 gentoo versions. May be it is good idea to disable pch flag or distcc feature when both enabled?
Same with x11-libs/qt4.3.4-r1
4.3 is no longer in portage. Feel free to reopen if the problem reappears with qt >=4.4.2