I've attempted to install glibc-2.2.5-r7 onto two up-to-date Gentoo boxes (i.e. glibc-2.3.1-r2, gcc-3.2.1-r6), and both fail with the same compile error very early in the compile process. I've done googling and poked around in the bugs database, and none of the fixes (disabling parallel compiles, etc.) have fixed it. --- make[2]: Entering directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/csu' gcc ../sysdeps/unix/sysv/linux/init-first.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=athlon-mp -pipe -I../include -I. -I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/csu -I.. -I../libio -I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386/i686 -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../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 -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -o /var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/csu/init-first.o In file included from ../include/pthread.h:1, from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23, from ../sysdeps/generic/ldsodefs.h:34, from ../sysdeps/unix/sysv/linux/ldsodefs.h:25, from ../sysdeps/unix/sysv/linux/init-first.c:32: ../linuxthreads/sysdeps/pthread/pthread.h:163: parse error before "__thread" ../linuxthreads/sysdeps/pthread/pthread.h:165: `pthread_create' declared as function returning a function ../linuxthreads/sysdeps/pthread/pthread.h:165: warning: function declaration isn't a prototype ../linuxthreads/sysdeps/pthread/pthread.h:166: parse error before "void" ../linuxthreads/sysdeps/pthread/pthread.h:591: storage class specified for parameter `type name' In file included from ../linuxthreads/sysdeps/pthread/pthread.h:655, from ../include/pthread.h:1, from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23, from ../sysdeps/generic/ldsodefs.h:34, from ../sysdeps/unix/sysv/linux/ldsodefs.h:25, from ../sysdeps/unix/sysv/linux/init-first.c:32: ../linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h:36: storage class specified for parameter `type name' make[2]: *** [/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/csu/init-first.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.2.5-r7 failed. !!! Function src_compile, Line 186, Exitcode 2 !!! (no error message) --- I have a full build log if necessary.
Its changes in gcc-3.2.1 to support glibc-2.3.1 that borks glibc-2.2.5. You need to use a older 3.2 or such, else it will fail.
*** Bug 16179 has been marked as a duplicate of this bug. ***
*** Bug 16482 has been marked as a duplicate of this bug. ***