I'm on AMD64 and trying to rebuild the toolchain using emwrap. It is compiling glibc-2.3.6-r1 and throws this error: vfprintf.c:163: error: parse error before "__attribute__" vfprintf.c:163: error: parse error before ')' token vfprintf.c: In function `_IO_vfprintf': emerge info output is as follows: Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13 x86_64) ================================================================= System uname: 2.6.13 x86_64 AMD Opteron(tm) Processor 250 Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.15_rc6 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/config/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 apache2 avi bitmap-fonts bzip2 cdr crypt eds emboss encode expat foomaticdb gd gdbm gif gpm gstreamer imlib innodb jpeg kde libwww lm_sensors lzw lzw-tiff mhash mpeg mysql ncurses nls nptl pam pcre pdflib perl png qt quicktime readline samba sdl slang snmp ssl tcltk tcpd udev userlocales vhosts xml2 xpm zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
You're using hard-masked headers :P -- now fixed, emerge sync, remerge headers (make sure it gets version two of the patchball) and things should work happily ever after.