Using distcc with 2 hosts and -j5, both systems are the same architecture and are running the same version of GCC. Here is the section of output relating to the errors I am getting: i686-pc-linux-gnu-gcc -shared toc.o util.o cmd.o aim.o /var/tmp/portage/bitchx-1.1-r1/work/BitchX/source/compat.o -fPIC -o aim.so -Ltoc -ltoc /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltoc collect2: ld returned 1 exit status gmake[2]: *** [aim.so] Error 1 gmake[2]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -I. -I/var/tmp/portage/bitchx-1.1-r1/work/BitchX/include -I../include -I. -I./include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -c cset.c i686-pc-linux-gnu-gcc -I. -I/var/tmp/portage/bitchx-1.1-r1/work/BitchX/include -I../include -I. -I./include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -c ctcp.c In file included from /var/tmp/portage/bitchx-1.1-r1/work/BitchX/include/irc.h:104, from commands2.c:8: /var/tmp/portage/bitchx-1.1-r1/work/BitchX/include/irc_std.h:107:1: warning: "__inline" redefined In file included from /usr/include/asm/sigcontext.h:4, from /usr/include/bits/sigcontext.h:28, from /usr/include/signal.h:333, from /var/tmp/portage/bitchx-1.1-r1/work/BitchX/include/irc.h:38, from commands2.c:8: /usr/include/linux/compiler.h:38:1: warning: this is the location of the previous definition ar cru libtoc.a toc.o network.o util.o server.o interface.o buddy.o ll.o misc.o gmake[3]: Leaving directory `/var/tmp/portage/bitchx-1.1-r1/work/BitchX/dll/aim/toc' gmake[2]: Leaving directory `/var/tmp/portage/bitchx-1.1-r1/work/BitchX/dll/aim' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/bitchx-1.1-r1/work/BitchX/dll' make: *** [dll] Error 2 make: *** Waiting for unfinished jobs.... If I 'emerge bitchx' a few times, eventually it will succeed. Here are the USE flags that I am attempting to use: net-irc/bitchx-1.1-r1 -cdrom -cjk -esd -gnome -gtk -ipv6 +ncurses +ssl -xmms 0 kB Here is the output of emerge --info: Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X alsa apm arts audiofile avi berkdb bitmap-fonts browserplugin bzip2 cairo crypt cups dbus dvd eds emboss encode esd ethereal exif expat fam firefox foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal howl idn imlib java jpeg lcms libg++ libwww mad mikmod mmx mmxext mng motif mozilla mp3 mpeg ncurses nls nvidia ogg oggvorbis openal opengl oss pam pcre pdflib perl png python quicktime readline real samba sdl spell sse ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
If memory serves me correctly this has come up before (bug 26645) and last time it was an issue with BitchX's Makefile not being parallel friendly. That is, it tries to compile the toc library and then before checking to see if it's been compiled tries to link with it. It's a classic race condition and it's not distcc's fault, but rather, BitchX's poor Makefile. The solution: Bitch upstream for them to fix it and compile with -j1 for now. Sorry.
Whoops, sorry net-irc for closing, but this is BitchX's problem and not distcc. I'll reopen and close UPSTREAM (CANTFIX was a brainfart), sorry for spam.
comment #2