/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i686-pc-linux-gnu-nptl/posix/execve.o.dt -MT /var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i686-pc-linux-gnu-nptl/posix/execve.o ../nptl/sysdeps/unix/sysv/linux/i386/../fork.c: In function '__libc_fork': ../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:203: error: can't find a register in class 'BREG' while reloading 'asm' make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i686-pc-linux-gnu-nptl/posix/fork.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5/posix' make[1]: *** [posix/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.5 failed. Call stack: ebuild.sh, line 1569: Called dyn_compile ebuild.sh, line 938: Called src_compile glibc-2.5.ebuild, line 1119: Called toolchain-glibc_src_compile glibc-2.5.ebuild, line 242: Called die !!! make for default failed !!! If you need support, post the topmost build error, and the call stack if relevant. Portage 2.1.2_rc2-r5 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r1 i686) ================================================================= System uname: 2.6.18-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.6 Last Sync: Wed, 06 Dec 2006 14:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.6, 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -ggdb -pipe -fPIC" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -ggdb -pipe -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer mmx prelink sandbox sfperms splitdebug strict" GENTOO_MIRRORS="http://mirror.etf.bg.ac.yu/gentoo " LANG="ru_RU.utf8" LC_ALL="" LINGUAS="ru en en_US" MAKEOPTS="-j2" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip X a52 aac aalib acpi aiglx alsa apache2 artworkextra asf asterisk background bash-completion beagle berkdb bitmap-fonts bluetooth boundschecking branding browserplugin bzip2 cairo caps cdparanoia cdr chm clamav cli clvm cman cpudetection cracklib crypt css cups curl cursors dbus dga divx4linux djvu dlloader dri dvd dvdr dvdread dynagraph eds elibc_glibc encode exif expat extensions extras fame ffmpeg firefox flac gd gdbm gdm ggi gif glitz gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml gulm hal icons iconv idea idn imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog ithreads java javascript jbig jpeg jpeg2k jpg kde kdeenablefinal kdm kerberos kernel_linux krb4 ladspa largeterminal ldap libcaca libclamav libg++ libnotify linguas_en linguas_en_US linguas_ru logitech-mouse mad mailwrapper matrox mbox mbrola mmx mmx2 mng mono mozbranding mp3 mpeg mplayer mpm-prefork mppe-mppc musepack musicbrainz mysql nas nautilus ncurses nls nntp noamazon nojoystick nptl nptlonly nsplugin offensive ogg openal opengl pam pcre pdf perl php pic plugin png ppds pppd python qt3 qt4 quicktime rar rdesktop readline real reflection ruby samba sasl sdl sendfile session silc slang sound spell spl sql sqlite sse sse2 ssl stats subversion svg syslog tcpd tga theora threads thunderbird tiff timidity tools truetype truetype-fonts type1-fonts ucs2 udev unicode usb userland_GNU v4l video_cards_nvidia video_cards_v4l vidix vim-with-x visualization vorbis webdav widescreen win32codecs wma wma123 wmf wxgtk1 xanim xcomposite xine xinerama xml xml2 xorg xprint xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Don't stick -fPIC into your C[XX]FLAGS...
what Jakub said
removing -fPIC from make.conf solve problem
*** This bug has been marked as a duplicate of bug 85961 ***