:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/linuxthreads /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcsvc/bootparam_prot.T make[2]: *** Waiting for unfinished jobs.... make[2]: *** [/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcsvc/bootparam_prot.stmp] Segmentation fault make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/sunrpc' make[1]: *** [sunrpc/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.2-r1 failed. !!! Function src_compile, Line 365, Exitcode 2 !!! (no error message)
Try to set MAKEOPTS to '-j1' in make.conf, else include a more complete log if it still fails, with output of 'emerge info'.
gcc -nostdlib -nostartfiles -o /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcinfo -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,combreloc /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/crt1.o /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/crti.o `gcc --print-file-name=crtbegin.o` /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcinfo.o -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/linuxthreads /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/libc.so.6 /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/libc_nonshared.a -lgcc `gcc --print-file-name=crtend.o` /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/crtn.o CPP='gcc -E -x c-header' /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf/ld-linux.so.2 --library-path /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/linuxthreads /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.T make[2]: *** [/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.stmp] Segmentation fault make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/sunrpc' make[1]: *** [sunrpc/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.2-r1 failed. !!! Function src_compile, Line 365, Exitcode 2 !!! (no error message) Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20-openmosix-1 i686 Intel(R) Celeron(R) CPU 1.70GHz GENTOO_MIRRORS="http://www.fhh.opensource-mirror.de/gentoo.org/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 crypt libg++ mikmod gtkhtml gdbm slang readline bonobo svga ggi guile libwww esd gtk motif apache2 -apache ipv6 3dnow -apm -berkdb aalib alsa arts avi cdr cups moznoirc dvd encode gif gnome gpm gtk2 -imap imlib java jpeg kde -ldap maildir mmx mozilla mpeg -mysql -nls oggvorbis opengl -oss pam -pdflib perl pic png python qt quicktime sasl sdl ncurses spell sse ssl tcltk tcpd tiff truetype -tetex X xml xml2 xmms xv zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache distcc noauto" (just for the record, I wasn't with openmosix "running")
How much memory, swap space, and free space on the partition that your PORTAGE_TMPDIR reside (usually /var/tmp/portage) ?
19G 11G 6.6G 63% 6.6 Gb
I get the same errors on my sysetm. Here's the end of the log, emerge info, and memory/disk space available... helium apache # emerge -u world ....CLIP.... CPP='gcc -E -x c-header' /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf/ld-linux.so.2 --library-path /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/linuxthreads /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.T make[2]: *** [/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.stmp] Segmentation fault make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/sunrpc' make[1]: *** [sunrpc/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.2-r1 failed. !!! Function src_compile, Line 404, Exitcode 2 !!! (no error message) helium apache # emerge info Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20 i686 AMD Athlon(tm) MP 1900+ GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 3dnow apm crypt foomaticdb gif imlib jpeg mad mmx ncurses nls pdflib png spell truetype xml2 zlib gdbm slang readline mysql tcpd pam libwww ssl perl python apache2 curl gd imap innodb ipv6 maildir samba sse xml -oss -arts -avi -cups -encode -gpm -gtk -java -kde -gnome -libg++ -mikmod -motif -mpeg -oggvorbis -opengl -qt -quicktime -sdl -svga -X -xmms -xv -berkdb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-mp -O3 -pipe -msse -mno-sse2 -mmmx -m3dnow -mfpmath=sse" CXXFLAGS="-mcpu=athlon-mp -O3 -pipe -msse -mno-sse2 -mmmx -m3dnow -mfpmath=sse" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache distcc" helium apache # cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 2119180288 2049712128 69468160 0 500998144 1051357184 Swap: 1028149248 133877760 894271488 MemTotal: 2069512 kB MemFree: 67840 kB MemShared: 0 kB Buffers: 489256 kB Cached: 1003384 kB SwapCached: 23332 kB Active: 993024 kB Inactive: 832016 kB HighTotal: 1179648 kB HighFree: 34760 kB LowTotal: 889864 kB LowFree: 33080 kB SwapTotal: 1004052 kB SwapFree: 873312 kB helium apache # df -h Filesystem Size Used Avail Use% Mounted on /dev/root 4.8G 489M 4.3G 11% / /dev/vg/home 10G 4.4G 5.7G 44% /home /dev/vg/opt 5.0G 34M 5.0G 1% /opt /dev/vg/tmp 5.0G 33M 5.0G 1% /tmp /dev/vg/usr 10G 1.2G 8.9G 12% /usr /dev/vg/var 10G 788M 9.3G 8% /var /dev/vg/mysql 10G 1.7G 8.4G 17% /var/lib/mysql /dev/vg/backup 10G 1.5G 8.6G 15% /backup tmpfs 1011M 0 1011M 0% /dev/shm
I had the same problem here on two of my four machines. I solved the problem by commenting out the USE= definition in make.conf. After that glibc emerged fine. So it must be one of the USE vars that b0rks that thing...
Well, I just tried emergeing glibc again with all flags at default values, and it didn't help.
OK, then please try to also comment out the CFLAGS.
I'm still waiting for the build to finish, but it got past where it crashed before, so I'd have to say disabling the cflags helped. I'll post again once I've confirmed that it finishes compiling.
Alright, build just finished successfully. Definately a CFLAG that should be filtered.
The SSE stuff will do it. Not sure about the 'athlon-mp'. Could you please try to pinpoint it ? Maybe first try to drop all the sse flags, if not, try with 'athlon', and not 'athlon-mp' If still not, please try with -O2.
Looks like -03 was to blame, which is odd, since looking at the ebuild, you're stripping pretty much /all/ CFLAGS anyway, including forcing it into -O2... Anyway, this is the CFLAGS string I just compiled successfully with. Scanning the GCC commands going out though, it looks like only "-mcpu=athlon-mp -O2 -pipe" made it into the actual build... CFLAGS="-mcpu=athlon-mp -O2 -pipe -msse -mno-sse2 -mmmx -m3dnow -mfpmath=sse"
My bad... I looked at the wrong box compiling glibc. That CFLAGS failed.
I just merged it successfully with these CFLAGS: CFLAGS="-mcpu=athlon-mp -O3 -msse -mno-sse2 -mmmx -m3dnow -mfpmath=sse" Looks like -pipe was causing the problem for some reason.
my update of glibc also fails at this same point, my findings and info are as follows for the build of sys-libs/glibc-2.3.2-r1 Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.1-r4) ================================================================= System uname: 2.4.21-grsec i586 Pentium MMX GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode foomaticdb gif imlib jpeg kde libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl png quicktime sdl spell svga xml2 xmms xv zlib gdbm berkdb slang readline tcpd pam ssl perl python -X -gtk -qt -pdflib -gpm -truetype -java -gnome" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i586 -O2 -pipe" CXXFLAGS="-march=i586 -O2 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j1" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" It failed several times in same spot with distcc running, as you can see I turned off and also set to -j1. However I do have an interesting log entry from grsecurity as follows: Jul 28 08:29:37 [kernel] grsec: From 10.0.0.5: signal 4 sent to (ld-linux.so.2:28556) UID(0) EUID(0), parent (make:27098) UID(0) EUID(0) Jul 28 08:29:37 [kernel] grsec: From 10.0.0.5: attempted resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 by (ld-linux.so.2:28556) UID(0) EUID(0), parent (make:27098) UID(0) EUID(0) before I try another kernel, I wanted to add this as a comment to see if greater minds then mine can correlate this additional information into something useful.
Is this still an issue for anyone? I'm using glibc-2.3.2-r7 and had no issues compiling it on x86 at all. Give that a run, and report any results here so this bug can be solved.
I haven't had any problems in a while now.
Problem looks to be fixed, somehow. Reopen if this is not the case.