einit fails to build with the following message: >>> Compiling source in /var/tmp/portage/sys-apps/einit-0.40.0/work/einit-0.40.0 ... scons: Reading SConscript files ... Checking for nptl... (cached) yes scons: done reading SConscript files. scons: Building targets ... gcc -Ibuild/headers -Isrc/include -Ilibixp -Iexpat -c -o asm/x86_64-linux-gnu/hashp.o asm/x86_64-linux-gnu/hashp.S gcc -Ibuild/headers -Isrc/include -Ilibixp -Iexpat -c -o asm/x86_64-linux-gnu/hashp.os asm/x86_64-linux-gnu/hashp.S asm/x86_64-linux-gnu/hashp.S: Assembler messages: asm/x86_64-linux-gnu/hashp.S:37: Error: bad register name `%rax' asm/x86_64-linux-gnu/hashp.S:38: Error: bad register name `%r8' asm/x86_64-linux-gnu/hashp.S:39: Error: bad register name `%rdi)' asm/x86_64-linux-gnu/hashp.S:41: Error: bad register name `%rdi)' asm/x86_64-linux-gnu/hashp.S:42: Error: bad register name `%r8' asm/x86_64-linux-gnu/hashp.S:43: Error: bad register name `%rdi' asm/x86_64-linux-gnu/hashp.S: scons: *** [asm/x86_64-linux-gnu/hashp.os] Error 1 Assembler messages: asm/x86_64-linux-gnu/hashp.S:37: Error: bad register name `%rax' asm/x86_64-linux-gnu/hashp.S:38: Error: bad register name `%r8' asm/x86_64-linux-gnu/hashp.S:39: Error: bad register name `%rdi)' asm/x86_64-linux-gnu/hashp.S:41: Error: bad register name `%rdi)' asm/x86_64-linux-gnu/hashp.S:42: Error: bad register name `%r8' asm/x86_64-linux-gnu/hashp.S:43: Error: bad register name `%rdi' gcc -Ibuild/headers -Isrc/include -Ilibixp -Iexpat -c -o asm/x86_64-linux-gnu/memcpy.o asm/x86_64-linux-gnu/memcpy.S scons: *** [asm/x86_64-linux-gnu/hashp.o] Error 1 asm/x86_64-linux-gnu/memcpy.S: Assembler messages: asm/x86_64-linux-gnu/memcpy.S:38: Error: bad register name `%rdi' scons: *** [asm/x86_64-linux-gnu/memcpy.o] Error 1 scons: building terminated because of errors. Using: dev-util/scons-1.0.0 Reproducible: Always Steps to Reproduce: 1. emerge einit emerge --info: Portage 2.1.5.6 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.7-r2, 2.6.25-tuxonice-r7 x86_64) ================================================================= System uname: 2.6.25-tuxonice-r7 x86_64 Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz Timestamp of tree: Wed, 27 Aug 2008 06:33:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.5.2-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fno-ident" 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/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fno-ident" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/tmp/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="/root/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X bash-completion bindist bzip2 cli cracklib dri glibc-omitfp iconv isdnlog midi mmap mmx mudflap ncurses nptl nptlonly pam pch pppd profile readline reflection session smp spl sse sse2 sysfs threads truetype unicode usb x86 xorg zlib" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please attach a build.log too so we have more info.
I think this would be because you're using an x86-64 kernel but your userspace is 32-bit... the build script is querying uname for the architecture, which in your case is not the same architecture as what your compiler will build for. a quick fix would be to boot an i686 kernel to emerge einit... or to upgrade to a full 64-bit userspace. sorry for that one, hadn't anticipated an issue like this :/.
Sorry about the missing build.log, but I think Magnus solved my problem. I am working in a 32-bit chroot environment, running a 64-bit kernel, so you made a pretty nice guess. :) I will try to run a 32-bit kernel asap. Thank you for your suggestion!
So this will be fixed in a new release.