two systems, one 32bit, one 64bit, both running ~$ARCH. 32bit build works without issue; 64bit build bombs out pretty much right off the bat: checking location of the init.d directory... /etc/init.d configure: creating ./config.status config.status: creating Makefile.conf config.status: creating include/config.h set -e; for i in lib daemon modules man samples; do make -C $i all; done set -e; if [ -d samples ]; then make -C samples all; fi make[1]: Entering directory `/var/tmp/portage/autofs-4.1.3-r7/work/autofs-4.1.3/lib' gcc -march=k8 -mtune=k8 -O3 -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -msse3 -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c cache.c make[1]: Entering directory `/var/tmp/portage/autofs-4.1.3-r7/work/autofs-4.1.3/samples' sed -e "s|@@sbindir@@|/usr/sbin|g" \ -e "s|@@autofslibdir@@|/usr/lib64/autofs|g" \ -e "s|@@initdir@@|/etc/init.d|g" < rc.autofs.in > rc.autofs /usr/bin/rpcgen -h -o mount.h mount.x make[1]: Leaving directory `/var/tmp/portage/autofs-4.1.3-r7/work/autofs-4.1.3/samples' gcc -march=k8 -mtune=k8 -O3 -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -msse3 -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -o listmount.o -c listmount.c In file included from listmount.c:22: mount.h:6:1: error: unterminated #ifndef listmount.c:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'get_export_list' listmount.c:112: error: expected ')' before 'item' listmount.c:131: error: expected ')' before 'list' listmount.c:221: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prune_export_list' make[1]: *** [listmount.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/autofs-4.1.3-r7/work/autofs-4.1.3/lib' make: *** [daemon] Error 2 !!! ERROR: net-fs/autofs-4.1.3-r7 failed. Call stack: ebuild.sh, line 1531: Called dyn_compile ebuild.sh, line 931: Called src_compile autofs-4.1.3-r7.ebuild, line 48: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. emerge info: Portage 2.1_rc3-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r8 x86_64) ================================================================= System uname: 2.6.16-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ Gentoo Base System version 1.12.0 dev-lang/python: 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.18.1 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-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -mtune=k8 -O3 -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -msse3" CHOST="x86_64-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/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -mtune=k8 -O3 -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo " LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" 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.namerica.gentoo.org/gentoo-portage" USE="amd64 elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Try again with sane CFLAGS. CFLAGS="-march=k8 -O3 -pipe" Reopen if it's still an issue, but I'm very certain it's your cflags, as other users can compile it fine on amd64.
not arch specific problem. autofs isn't parallel make safe. I think it hits some kind of race condition here. if mount.h isn't completely generated when it compile listmount.c, it will fail with above error. with the same MAKEOPTS=-j5, sometime it works and sometime it doesn't. Since it doesn't take loong to compile this package. I'd proposed to force -j1 on it.
I spotted the race, and fixed it properly.