Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 12542

Summary: kde-base/arts 1.0.5a compile breaks with distcc enabled.
Product: Gentoo Linux Reporter: Henti Smith <henti>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 1.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Henti Smith 2002-12-21 18:46:24 UTC
hi all 

Doing an emerge -u world with distcc enabled and kept crashing arts compile. 
Once I removed distcc settings in make.conf it compiled fine. Double checked it 
by removing arts enabling distcc again and trying to merge again. same error.
remove distcc and emerged fine again. distcc setting are as follows 

DISTCC_HOSTS="localhost eldar razorback tyranid"
MAKEOPTS="-j8"
CC="distcc"
CXX="distcc g++"

localhost,eldar and tyranid is single CPU. razorback is dual CPU
if you need more info please let me know. all machines are gentoo 1.2 with 
distcc installed and running with same configs.

logs of crash follows:

distcc g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/gcc-lib/i686-pc-linux-
gnu/2.95.3/crtbeginS.o  .libs/buffer.o .libs/connection.o .libs/core.o .libs/dis
patcher.o .libs/iomanager.o .libs/object.o .libs/socketconnection.o .libs/tcpcon
nection.o .libs/unixconnection.o .libs/tcpserver.o .libs/unixserver.o .libs/obje
ctmanager.o .libs/factory.o .libs/idlfilereg.o .libs/ifacerepo_impl.o .libs/mcop
utils.o .libs/startupmanager.o .libs/md5.o .libs/md5auth.o .libs/referenceclean.
o .libs/datapacket.o .libs/asyncstream.o .libs/notification.o .libs/flowsystem.o
 .libs/extensionloader.o .libs/tmpglobalcomm.o .libs/mcopconfig.o .libs/connect.
o .libs/reference.o .libs/type.o .libs/trader_impl.o .libs/dynamicrequest.o .lib
s/anyref.o .libs/loopback.o .libs/debug.o .libs/delayedreturn.o .libs/thread.o .
libs/dynamicskeleton.o -Wl,--whole-archive ../libltdl/.libs/libltdlc.a -Wl,--no-
whole-archive  -lresolv ../libltdl/.libs/libltdlc.a -ldl -L/usr/lib/gcc-
lib/i686-pc-linux-gnu/2.95.3 -L/usr/i686-pc-linux-gnu/lib -lstdc++ -lm -lc -
lgcc  -lc /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/crtendS.o /usr/lib/crtn.o   
g++ -DEXTENSION_DIR=\"/usr/kde/3/lib\" -DTRADER_DIR=\"/usr/kde/3/lib/mcop\" -
DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -ftemplate-depth-99 -Wl,-
soname -Wl,libmcop.so.1 -o .libs/libmcop.so.1.0.0
g++: g++: No such file or directory
make[2]: *** [libmcop.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/arts-1.0.5a/work/arts-1.0.5a/mcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-1.0.5a/work/arts-1.0.5a'
make: *** [all] Error 2

!!! ERROR: kde-base/arts-1.0.5a failed.
!!! Function kde_src_compile, Line -8779, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 1 Henti Smith 2002-12-21 19:36:23 UTC
Update : 

kde-base/kdelibs-3.0.5a as well .. 

I'll test with what I have and add them here ... 

g++: g++: No such file or directory
make[3]: *** [libDCOP.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.0.5a/work/kdelibs-
3.0.5a/dcop'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.0.5a/work/kdelibs-
3.0.5a/dcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.0.5a/work/kdelibs-3.0.5a'
make: *** [all] Error 2
!!! ERROR: kde-base/kdelibs-3.0.5a failed.
!!! Function kde_src_compile, Line -8779, Exitcode 2
!!! died running emake, kde_src_compile:make

Henti 
Comment 2 Henti Smith 2002-12-21 20:44:52 UTC
Seems almost all KDE apps are unfriendly to distcc .. 
is it not possible to unset (reset) the CC and CXX vars in the ebuild 
as not to have to do it manually in make.conf during builds.
It's esp a problem during emerge world 

Henti Smith 
bainster on #gentoo 
Comment 3 Henti Smith 2002-12-22 04:54:43 UTC
Update : 

kde-base/kdemultimedia-3.0.5a:

distcc g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/gcc-lib/i686-pc-linux-
gnu/2.95.3/crtbeginS.o  .libs/principal.o .libs/aktionConf.o .libs/capture.o .li
bs/aktionVm.o .libs/kxanim.o .libs/aktion_part.o  -Wl,--rpath -
Wl,/usr/kde/3/lib -Wl,--rpath -Wl,/usr/qt/3/lib -Wl,--rpath -
Wl,/usr/X11R6/lib  -L/usr/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -
L/usr/kde/3/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3 -L/usr/i686-pc-
linux-gnu/lib -lXxf86dga -
lXxf86vm /usr/kde/3/lib/libkparts.so /usr/kde/3/lib/libkio.so /usr/kde/3/lib/lib
kdeui.so /usr/kde/3/lib/libkdefx.so -
lXrender /usr/kde/3/lib/libkdesu.so /usr/kde/3/lib/libkdecore.so /usr/kde/3/lib/
libDCOP.so -lqt-mt -lpng -lX11 -lSM -lICE -lpthread -ldl -lXext -lresolv -
lXinerama -lutil -
lz /usr/lib/libfam.so /usr/lib/libesd.so /usr/lib/libaudiofile.so -lstdc++ -lm -
lc -lgcc -lc /usr/lib/gcc-lib/i686-pc-linux-
gnu/2.95.3/crtendS.o /usr/lib/crtn.o   g++ -DNDEBUG -DNO_DEBUG -O2 -fno-
exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -Wl,-soname -
Wl,libaktion.so.1 -o .libs/libaktion.so.1.0.0
g++: g++: No such file or directory
make[3]: *** [libaktion.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdemultimedia-
3.0.5a/work/kdemultimedia-3.0.5a/aktion'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdemultimedia-
3.0.5a/work/kdemultimedia-3.0.5a/aktion'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdemultimedia-
3.0.5a/work/kdemultimedia-3.0.5a'
make: *** [all] Error 2
Comment 4 Henti Smith 2002-12-22 12:22:31 UTC
Update : 

kde-base/kdegames-3.0.5a :

distcc g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/gcc-lib/i686-pc-linux-
gnu/2.95.3/crtbeginS.o  .libs/kcarddialog.o .libs/kstdgameaction.o .libs/kgamemi
sc.o .libs/khighscore.o .libs/kchatbase.o .libs/kchat.o .libs/kchatdialog.o .lib
s/kscoredialog.o .libs/kgameprogress.o -Wl,--whole-
archive ../libkdegames/kgame/.libs/libkgame.a ../libkdegames/kgame/dialogs/.libs
/libkgamedialogs.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/usr/kde/3/lib -Wl,--
rpath -Wl,/usr/qt/3/lib -Wl,--rpath -Wl,/usr/X11R6/lib  -L/usr/lib -
L/usr/X11R6/lib -L/usr/qt/3/lib -
L/usr/kde/3/lib ../libkdegames/kgame/.libs/libkgame.a -L/usr/lib/gcc-lib/i686-
pc-linux-gnu/2.95.3 -L/usr/i686-pc-linux-
gnu/lib ../libkdegames/kgame/dialogs/.libs/libkgamedialogs.a /usr/kde/3/lib/libk
io.so /usr/kde/3/lib/libkdeui.so /usr/kde/3/lib/libkdefx.so -
lXrender /usr/kde/3/lib/libkdesu.so /usr/kde/3/lib/libkdecore.so /usr/kde/3/lib/
libDCOP.so -lqt-mt -lpng -lX11 -lSM -lICE -lpthread -ldl -lXext -lresolv -
lXinerama -lutil -lz /usr/lib/libfam.so -lstdc++ -lm -lc -lgcc   -
lc /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/crtendS.o /usr/lib/crtn.o   g++ -
DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -
DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wl,-soname -Wl,libkdegames.so.1 -
o .libs/libkdegames.so.1.0.1
g++: g++: No such file or directory
make[3]: *** [libkdegames.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdegames-3.0.5a/work/kdegames-
3.0.5a/libkdegames'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdegames-3.0.5a/work/kdegames-
3.0.5a/libkdegames'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdegames-3.0.5a/work/kdegames-
3.0.5a'
make: *** [all] Error 2

!!! ERROR: kde-base/kdegames-3.0.5a failed.
!!! Function kde_src_compile, Line -8779, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 5 Henti Smith 2002-12-22 15:14:17 UTC
Update : 

kde-base/kdebase-3.0.5a :

distccd[4692] (dcc_log_clientname) Warning: failed to lookup peer name: Unknown 
host
/bin/sh ../../libtool --mode=link --tag=CXX distcc g++  -DNDEBUG -DNO_DEBUG -
O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -
DQT_NO_ASCII_CAST    -o kded_favicons.la -rpath /usr/kde/3/lib/kde3 -
L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3/lib  -module -avoid-version 
favicons.lo favicons_skel.lo -lkio
distcc g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/gcc-lib/i686-pc-linux-
gnu/2.95.3/crtbeginS.o  .libs/favicons.o .libs/favicons_skel.o  -Wl,--rpath -
Wl,/usr/kde/3/lib -Wl,--rpath -Wl,/usr/qt/3/lib -Wl,--rpath -
Wl,/usr/X11R6/lib  -L/usr/lib -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc-
lib/i686-pc-linux-gnu/2.95.3 -L/usr/X11R6/lib -L/usr/qt/3/lib -
L/usr/kde/3/lib /usr/kde/3/lib/libkio.so -lstdc++ -lm -lc -lgcc -
lc /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/crtendS.o /usr/lib/crtn.o   g++ -
DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -
DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wl,-soname -Wl,kded_favicons.so -
o .libs/kded_favicons.so
g++: g++: No such file or directory
make[3]: *** [kded_favicons.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdebase-3.0.5a/work/kdebase-
3.0.5a/libkonq/favicons'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdebase-3.0.5a/work/kdebase-
3.0.5a/libkonq'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.0.5a/work/kdebase-3.0.5a'
make: *** [all] Error 2

!!! ERROR: kde-base/kdebase-3.0.5a failed.
!!! Function kde_src_compile, Line -8779, Exitcode 2
!!! died running emake, kde_src_compile:make

Comment 6 Hannes Mehnert (RETIRED) gentoo-dev 2002-12-22 19:16:44 UTC
i don't know much about distcc, and this was also reported earlier (bug #12125) 
kde-ebuilds doesn't do anything with CXX and CC environment vars, maybe 
setting CXX="distcc" helps? cause it searches for a file calles g++. 
does other c++ ebuilds work? 
Comment 7 Henti Smith 2002-12-23 01:03:14 UTC
I did see the other bug report. this probebly the same .. but I want to geta
completellist of kde apps that break together (and not just kde apps) and find a
way in the ebuild to unset the CC/CXX vars when it's building so even if you
have CC / CXX set for distcc the ebuild resets to default so that the auto
update stuiff works without having to change the distcc stuff at every turn 

Hope that makes sence ..
Comment 8 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-03 03:52:21 UTC
marking as duplicate of 12125, cause it's the same thing. Henti, once you have this 
list of failing apps, please report them in #12125. 

*** This bug has been marked as a duplicate of 12125 ***