Whilst compilling glibc, it bombs out with the message shown below. This is with glibc-2.3.4.20040808 and linux26-headers-2.6.8.1. Reproducible: Always Steps to Reproduce: 1. # emerge unmerge linux-headers <-- if you're running usual headers 2. # emerge linux26-headers 3. # USE=nptl emerge glibc Actual Results: Build log: --------------------------------------8<-------------------------------------- gcc version.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -finline-limit=2000 -freorder-blocks -mcpu=pentium2 -pipe -mpreferred-stack-boundary=4 -fPIC -I../include -I. -I/tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu -I.. -I../libio -I../nptl -I/tmp/portage/glibc-2.3.4.20040808-r1/work/build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include -isystem //usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DHAVE_INITFINI -o /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/version.os -MD -MP -MF /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/version.os.dt -MT /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/version.os gcc ../sysdeps/generic/check_fds.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -finline-limit=2000 -freorder-blocks -mcpu=pentium2 -pipe -mpreferred-stack-boundary=4 -fPIC -I../include-I. -I/tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu -I.. -I../libio -I../nptl -I/tmp/portage/glibc-2.3.4.20040808-r1/work/build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include-isystem //usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DHAVE_INITFINI -o /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/check_fds.os -MD -MP -MF /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/check_fds.os.dt -MT /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/check_fds.os In file included from //usr/include/linux/bitops.h:4, from //usr/include/asm/cpufeature.h:10, from //usr/include/asm/system.h:7, from //usr/include/linux/compiler.h:62, from //usr/include/asm/sigcontext.h:4, from ../sysdeps/unix/sysv/linux/bits/sigcontext.h:28, from ../signal/signal.h:329, from ../include/signal.h:5, from ../sysdeps/unix/sysv/linux/ssp.c:27: //usr/include/asm/bitops.h:362: error: conflicting types for `__ffs' ../include/string.h:43: error: previous declaration of `__ffs' gcc dso_handle.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -finline-limit=2000 -freorder-blocks -mcpu=pentium2 -pipe -mpreferred-stack-boundary=4 -fPIC -I../include -I. -I/tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu -I.. -I../libio -I../nptl -I/tmp/portage/glibc-2.3.4.20040808-r1/work/build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf-I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include -isystem //usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DHAVE_INITFINI -o /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/dso_handle.os -MD -MP -MF /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/dso_handle.os.dt -MT /tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/dso_handle.os distcc[10221] ERROR: compile on localhost failed make[2]: *** [/tmp/portage/glibc-2.3.4.20040808-r1/work/build/csu/ssp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... ../sysdeps/generic/libc-start.c: In function `__libc_start_main': ../sysdeps/generic/libc-start.c:192: warning: implicit declaration of function `__guard_setup' make[2]: Leaving directory `/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.4.20040808-r1 failed. !!! Function src_compile, Line 655, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. -------------------------------------->8-------------------------------------- Expected Results: Install glibc with NPTL support. Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.3.20040420-r0, 2.6.5 i686) ================================================================= System uname: 2.6.5 i686 Celeron (Mendocino) Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.4.3-r4 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium2 -pipe" DISTDIR="/home/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks sfperms" GENTOO_MIRRORS="http://192.168.5.1/portage http://mirror.aarnet.edu.au/pub/gentoo http://public.ftp.planetmirror.com/pub/gentoo" MAKEOPTS="-j8" PKGDIR="/home/portage/packages/ia32/pentium2" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://192.168.5.1/gentoo-portage" USE="x86 X aalib acl alsa apm arts avi berkdb bitmap-fonts bonobo cdparanoia cdr crypt cups doc encode esdfam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg kde ldap libwww mad mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype wifi xml xml2 xmms xv zlib"
update your linux26-headers
Just confirming, yes, it works now :-) emerged linux26-headers-2.6.8.1-r2 and all is happy. I set it off last night with 'emerge -uk world' so it did several packages -- it's currently up to doing the locales bit in glibc. Thanks.