../sysdeps/unix/sysv/linux/i386/setgroups.c: In function `setgroups': ../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: `__NR_setgroups32' undeclared (first use in this function) ../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: (Each undeclared identifier is reported only once ../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: for each function it appears in.) make[2]: *** [/tmp/portage/sys-libs/glibc-2.6.1/work/build-x86-x86_64-pc-linux-gnu-nptl/grp/setgroups.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1/grp' make[1]: *** [grp/subdir_lib] Error 2 make[1]: Leaving directory `/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge glibc emerge --info Portage 2.1.6.4 (!/usr/local/portage/profiles/vc/amd64, gcc-3.4.6, glibc-2.3.6-r5, 2.6.23.12vc x86_64) ================================================================= System uname: Linux-2.6.23.12vc-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-glibc2.2.5 Timestamp of tree: Wed, 28 Jan 2009 18:05:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.16, 2.6.23 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fprefetch-loop-arrays -ffast-math -funit-at-a-time -fpeel-loops -funswitch-loops" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fprefetch-loop-arrays -ffast-math -funit-at-a-time -fpeel-loops -funswitch-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --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="3dnow X aalib acl acpi activefilter adns aim alsa amd64 apache2 apm atm audiofile bash-completion berkdb big-tables bzlib caps cddb cdr clamav crypt curl dhcp divx4linux dvb dvd dvdr elf erandom esd ethereal extensions extraengine f77 faad fam fastcgi flac flash fortran freetds gd gdbm geoip ggi gif ginac gmp gpm gs gtk gtk2 hardened icq idea imagemagick imap imlib informix innodb ipv6 jabber java jce jpeg junit lcms ldap libg++ libwww lirc lm_sensors lua lzw mad maildir mcal memlimit mikmod mmx mng motif mp3 mpeg mpi mppe-mppc msn mssql mysql ncurses nntp nptl nsplugin objc odbc oggvorbis oscar pam parse-clocks pcap pcre pdflib perl pg-hier pg-intdatetime pic pie plotutils png pnp postgres python qt quotas rc5 readline ruby samba sasl slang snmp socks5 softquota sox speex spell sqlite sse ssl svg szip tcltk tetex theora threads tiff truetype unicode wmf xfs xinetd xml xml2 xvid yahoo zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please attach the entire build log. Also, as a test, try to set more sane CFLAGS and retry to build glibc.
*** This bug has been marked as a duplicate of bug 100559 ***