gdm 2.4.1.6 fails to compile if MAKOPTS="-jN", where N > 1 (I'm using distcc on a slow machine). The linker dies when it fails to find libvicious, presumably because another gcc process has not finished building it yet. If N=1 above, it builds successfully. It may be a function of having much faster distcc helper machines than the build host (Athlon tbird 1.2 and Athlon-xp 2000+ vs. a K6-2 500 MHz build host). However, almost everything else built fine with the above config in a very large system, gnome, and world update. Reproducible: Always Steps to Reproduce: 1. build gnome in the above config with at least one fast distcc helper machine. 2. should get one or more build failures on gdm, gnome-media, nautilus-media 3. Actual Results: multiple ebuild failures Expected Results: successful completion of 'emerge -U gnome' sarnold@dvd sarnold $ emerge --info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.19-gentoo-r10) ================================================================= System uname: 2.4.19-gentoo-r10 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.4.3.10 distcc 2.11.1 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=k6-2 -Os -pipe -funroll-loops" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=k6-2 -Os -pipe -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache distcc userpriv usersandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="apm crypt cups encode foomaticdb gif libg++ mad mikmod mpeg ncurses pdflib quicktime spell truetype xml2 xmms zlib gdbm berkdb slang readline java sdl gpm tcpd pam libwww ssl imlib motif aalib alsa bonobo esd evo gb gd gtkhtml imap ipv6 junit lame lcms ldap mozilla mysql perl plotutils samba sasl slp tcltk tetex tiff xml zeo python gnome gtk jpeg png X ogg vorbis oggvorbis avi oss dvd dga opengl xv x86 mmx 3dnow -nls -svga -qt -kde -arts"
strange, checking this on my other buildhost which has just built the same but with MAKEOPTS="-j20" and 12 different distcc hosts.. Gonna rebuild now and see.
hmm, this works for me....
I got it to fail repeatedly with anything higher than -j1. Several factors may apply: 1) host order - # distcc-config --get-hosts foo bar localhost 2) speed - foo and bar are 1 to 2 GHz Athlons, while localhost is a K6-2/500 MHz 3) Age? - localhost was not updated since gnome 2.2.1
can you tell us _where_ it fails? like a build log or something?
As stated in the first paragraph above, it died the first time (several times ina row, in fact) it tried to link with libvicious, since it was missing (presumably not compiled yet). I just tried it again, and it looks like it's finding the currently installed lib (so no failure). I'll see if I can unmerge gdm and re-emerge and see if I can make it fail again, and get a screen dump.
I'm chaulking this one up to K6-2 goofiness; I'm now building another Gentoo box on a Celeron-600 (using distcc with the faster machines). I'll keep watching for this one, but I'm closing it for now as NEEDINFO.
It happened again on the Celeron 600 box, building a fresh Gnome (after a stage 1 build). This part was building fine, even Mozilla, with 2 Athlons (a 1.1 GHz and a 2000+) as distcc build hosts, until it got to gdm (sorry I only got one screenful of text; the 1 GHz Athlon wasn't running when it barfed, just the 2000+). It's the same libvicious error as before: gmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -L/var/tmp/portage/gdm-2.4.1.6/work/gdm-2.4.1.6/vicious-extensions -lvicious /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lvicious collect2: ld returned 1 exit status distcc[30824] ERROR: compile on localhost failed make[3]: *** [test-ve-config] Error 1 make[3]: *** Waiting for unfinished jobs.... distcc[29659] (dcc_writex) ERROR: failed to write: Connection timed out distcc[29659] (dcc_build_somewhere) Warning: failed to distribute to horton, running locally instead make[3]: Leaving directory `/var/tmp/portage/gdm-2.4.1.6/work/gdm-2.4.1.6/vicious-extensions' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gdm-2.4.1.6/work/gdm-2.4.1.6/vicious-extensions' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gdm-2.4.1.6/work/gdm-2.4.1.6' make: *** [all-recursive-am] Error 2 !!! ERROR: gnome-base/gdm-2.4.1.6 failed. !!! Function src_compile, Line 61, Exitcode 2 !!! (no error message)
hmm you describe a whole distcc and whatnot setup, i would look at that first. If this doesn't happen on a single machine build only i don't consider it a problem.
discussed on IRC, following conlusion : We can't reproduce it so unless we get more reports i'm closing this. This seems too related to the user side ccache & distcc setup to change the ebuilds behaviour.
I'm having the same issue as the originator of this bug. I'm going to turn of distcc for this package to continue. Here are my stats: - Emerge machine is a slow PII 350 - Using a fast 2GHz machine listed first in my distcc hosts (I have two of them) - MAKEOPTS="-j5" - FEATURES="buildpkg ccache distcc sandbox" - Current version of gdm installed is: 2.6.0.4-r1 - Trying to install gdm version: 2.6.0.6 Compile error: gcc -mcpu=pentium -O2 -pipe -fomit-frame-pointer -Wall -Wmissing-prototypes -o test-ve-config test-ve-config.o -Wl,--export-dynamic -pthread -L/usr/X11R6/lib /usr/lib/libgnomeui-2.so -L/usr/lib /usr/lib/libgnome-keyring.so /usr/lib/libjpeg.so /usr/lib/libbonoboui-2.so -lSM -lICE -lX11 /usr/lib/libgnomecanvas-2.so /usr/lib/libgnome-2.so /usr/lib/libesd.so /usr/lib/libaudiofile.so /usr/lib/libart_lgpl_2.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgnomevfs-2.so -lssl -lcrypto -lresolv -lrt /usr/lib/libbonobo-2.so /usr/lib/libgconf-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBitCosNaming-2.so /usr/lib/libORBit-2.so /usr/lib/libpopt.so /usr/lib/libgthread-2.0.so /usr/lib/libglade-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so -lpthread -lz /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -L/var/tmp/portage/gdm-2.6.0.6/work/gdm-2.6.0.6/vicious-extensions -lvicious /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linux-gnu/bin/ld: cannot find -lvicious collect2: ld returned 1 exit status distcc[12310] ERROR: compile (null) on localhost failed make[3]: *** [test-ve-config] Error 1 make[3]: *** Waiting for unfinished jobs.... distcc[11124] (dcc_pump_sendfile) ERROR: sendfile failed: Connection reset by peer distcc[11124] (dcc_readx) ERROR: unexpected eof on fd4 distcc[11124] (dcc_r_token_int) ERROR: read failed while waiting for token "DONE" distcc[11124] (dcc_build_somewhere) Warning: failed to distribute to neo, running locally instead distcc[11126] (dcc_pump_sendfile) ERROR: sendfile failed: Connection reset by peer distcc[11126] (dcc_readx) ERROR: unexpected eof on fd4 distcc[11126] (dcc_r_token_int) ERROR: read failed while waiting for token "DONE" distcc[11126] (dcc_build_somewhere) Warning: failed to distribute to neo, running locally instead distcc[11129] (dcc_pump_sendfile) ERROR: sendfile failed: Connection reset by peer distcc[11129] (dcc_readx) ERROR: unexpected eof on fd4 distcc[11129] (dcc_r_token_int) ERROR: read failed while waiting for token "DONE" distcc[11129] (dcc_build_somewhere) Warning: failed to distribute to neo, running locally instead make[3]: Leaving directory `/var/tmp/portage/gdm-2.6.0.6/work/gdm-2.6.0.6/vicious-extensions' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gdm-2.6.0.6/work/gdm-2.6.0.6/vicious-extensions' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gdm-2.6.0.6/work/gdm-2.6.0.6' make: *** [all-recursive-am] Error 2 !!! ERROR: gnome-base/gdm-2.6.0.6 failed. !!! Function gnome2_src_compile, Line 40, Exitcode 2 !!! compile failure !!! If you need support, post the topmost build error, NOT this status message.
*** Bug 108213 has been marked as a duplicate of this bug. ***
(In reply to comment #9) > discussed on IRC, following conlusion : > > We can't reproduce it so unless we get more reports i'm closing this. This seems too related to the user side ccache & distcc setup to change the ebuilds behaviour. may be disable parallel make for distcc/ccache with a check like "has distcc $FEATURES || has ccache $FEATURES"?
I saw the same problem trying to build gdm 2.8.0.5 (gdm 2.8.0.4 worked). It fails to find libvicious.a, when compiling with -j4, *even without distcc or ccache.* Using -j1 fixed it. Same error message as others posted, without the distcc-specific noise. The CPU is a mobile Athlon XP in a desktop motherboard, hence the "unknown CPU Type" in "emerge info" $ emerge info Portage 2.0.53_rc5 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.2.5-r2,glibc-2.3.5-r2, 2.6.13-gentoo-r2 i686) ================================================================= System uname: 2.6.13-gentoo-r2 i686 Unknown CPU Typ Gentoo Base System version 1.12.0_pre8 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.2.3-r5, 2.3.4-r1, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 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.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://bonnie.ripton.net/gentoo-portage" USE="x86 3dnow X aac aalib alsa apache2 apm avi bash-completion berkdb bitmap-fonts bonobo cdr crypt cscope cups curl doc dvd eds emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib ipv6 jack java jpeg junit kde libg++ libwww mad maildir mikmod mmx motif mozilla mozsvg mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba scanner sdl slang speex spell sse ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis win32codecs xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
same problem here with 2.8.0.5
*** Bug 109075 has been marked as a duplicate of this bug. ***
*** Bug 109081 has been marked as a duplicate of this bug. ***
Same problem under AMD64 with more than -j1 get then mv -f ".deps/test-ve-config.Tpo" ".deps/test-ve-config.Po"; else rm -f ".deps/test-ve-config.Tpo"; exit 1; fi make[3]: *** No rule to make target `../vicious-extensions/libvicious.a', needed by `test-ve-config'. Stop. make[3]: *** Waiting for unfinished jobs.... glade-helper.c: In function `glade_helper_load': glade-helper.c:65: warning: implicit declaration of function `exit' make[3]: Leaving directory `/var/tmp/portage/gdm-2.8.0.5/work/gdm-2.8.0.5/vicious-extensions' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gdm-2.8.0.5/work/gdm-2.8.0.5/vicious-extensions' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gdm-2.8.0.5/work/gdm-2.8.0.5' make: *** [all] Error 2 Adding MAKEOPTS="${MAKEOPTS} -j1" in ebuild
I've forced -j1 on gdm-2.8.0.5.ebuild.