Tried building glibc various versions with gcc various versions but keep getting the same build failure in fork.c i686-pc-linux-gnu-gcc ../nptl/sysdeps/unix/sysv/linux/i386/fork.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -fPIC -finline-limit=2000 -march=pentium3 -pipe -mpreferred-stack-boundary=2 -D_IO_MTSAFE_IO -I../include -I. -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-nptl/posix -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-nptl -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../libidn/sysdeps/unix -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.6/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-nptl/posix/fork.o -MD -MP -MF /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-nptl/posix/fork.o.dt -MT /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-nptl/posix/fork.o In file included from ../nptl/sysdeps/unix/sysv/linux/i386/fork.c:31: ../nptl/sysdeps/unix/sysv/linux/fork.c: In function `__libc_fork': ../nptl/sysdeps/unix/sysv/linux/fork.c:203: error: can't find a register in class `BREG' while reloading `asm' make[2]: *** [/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-nptl/posix/fork.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6/posix' make[1]: *** [posix/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6' make: *** [all] Error 2 Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.6-r4, 2.6.17-gentoo-r7 i686) ================================================================= System uname: 2.6.17-gentoo-r7 i686 VIA Nehemiah Gentoo Base System version 1.12.4 Last Sync: Wed, 13 Sep 2006 08:20:01 +0000 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.1.3-r1, 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -ffast-math -fomit-frame-pointer -fPIC -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -march=pentium3 -ffast-math -fomit-frame-pointer -fPIC -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ngi.it http://ftp.heanet.ie/pub/gentoo/ http://gentoo.ITDNet.net/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="en_GB.utf8" LC_ALL="en_GB.utf8" LINGUAS="de en_GB" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X X509 aalib alsa apache2 apm arts bash-completion berkdb bitmap-fonts caps cli crypt cscope cups dga directfb dlloader dri eds elibc_glibc emboss encode esd faad fbcon ffmpeg flash foomaticdb gdbm ggi gif gnome gnustep gpm gstreamer gtk gtk2 imap imlib innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jikes jpeg kde kernel_linux ldap libcaca libg++ libwww linguas_de linguas_en_GB mad maildir mikmod ming mmx motif mp3 mpeg mysql ncurses nethack nls nptl ogg opengl oss pam pcre perl pic png ppds pppd python qt3 qt4 quicktime readline reflection samba sasl sdl session skey slp smartcard spell spl sse ssl tcpd tetex theora tiff tk truetype truetype-fonts type1-fonts udev unicode userland_GNU vhosts video_cards_savage vorbis xml xmms xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Your gcc is very outdated. Upgrade to latest stable version before reporting compiler issues, please. http://www.gentoo.org/doc/en/gcc-upgrading.xml
And remove -ffast-math and -fPIC from your C[XX]FLAGS!
Not so stupid to try building with an old gcc, has already tried 4.1.1 and 4.0.2. It is the -fPIC flag as this is was the only flag I added recently. However, stupid enough to have forgotten about doing so. Thanks