Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178843 - x11-libs/qt-4.3.0_rc1 - fails compiling with distcc and USE=pch
Summary: x11-libs/qt-4.3.0_rc1 - fails compiling with distcc and USE=pch
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 08:28 UTC by Martin Capitanio
Modified: 2009-03-27 21:48 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Capitanio 2007-05-17 08:28:59 UTC
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
Comment 1 Martin Capitanio 2007-05-17 09:34:24 UTC
it was x11-libs/qt-4.3.0_rc1 ...
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2007-05-17 10:30:07 UTC
just a guess, but using pch and distcc are probably incompatible.
Comment 3 Martin Capitanio 2007-05-17 11:18:06 UTC
(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

Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2007-05-17 11:48:08 UTC
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.
Comment 5 Martin Capitanio 2007-05-17 15:05:08 UTC
(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."
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2007-05-17 15:09:05 UTC
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?
Comment 7 Martin Capitanio 2007-05-17 15:48:20 UTC
(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.
Comment 8 Sergey Belyashov 2007-10-26 07:46:06 UTC
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?
Comment 9 John M. Drescher 2008-04-20 21:16:46 UTC
Same with x11-libs/qt4.3.4-r1
Comment 10 Ben de Groot (RETIRED) gentoo-dev 2009-03-27 21:48:26 UTC
4.3 is no longer in portage. Feel free to reopen if the problem reappears with qt >=4.4.2