When trying to emerge portage, I get this output: tortue root # emerge portage Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/portage-2.0.50-r3 to / >>> md5 src_uri ;-) portage-2.0.50-r3.tar.bz2 >>> Unpacking source... >>> Unpacking portage-2.0.50-r3.tar.bz2 to /var/tmp/portage/portage-2.0.50-r3/work >>> Source unpacked. ./create-localdecls Checking truncate argument type... off_t Checking libc version... libc.so.6 Checking glibc subversion... 2.3 gcc -march=i386 -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c gcc -march=i386 -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c sandbox_futils.c -o sandbox_futils.o gcc libsandbox.o sandbox_futils.o -shared -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox.so gcc -march=i386 -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c sandbox.c -o sandbox.o gcc -march=i386 -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall sandbox.o sandbox_futils.o getcwd.c -ldl -lc -o sandbox >>> Install portage-2.0.50-r3 into /var/tmp/portage/portage-2.0.50-r3/image/ category sys-apps /usr/sbin/ebuild.sh: line 1427: 17707 Illegal instruction ./setup.py install --root ${D} !!! ERROR: sys-apps/portage-2.0.50-r3 failed. !!! Function src_install, Line 94, Exitcode 132 !!! Failed to install missingos module I tried uncommenting the code block at lines 1424-1426, to no effect (this might be expected, I didn't read at all what it did - It was close to the failure point, only reason I tried it) Here is system info: Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-ck1) ================================================================= System uname: 2.6.4-ck1 i586 Pentium MMX Gentoo Base System version 1.4.3.13p1 distcc 2.13 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium-mmx -funroll-loops -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium-mmx -funroll-loops -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://mirror.clarkson.edu/pub/distributions/gentoo/ http://adelie.polymtl.ca/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://gentoo.noved.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="cups foomaticdb gif imlib jpeg mmx ncurses pam pic png readline samba ssl tcpd usb x86 zlib" Thanks!
Looks like a python problem to me, sure you used the right stage tarball ?
I tried re-emerging python, and it didn't change a thing. The only ebuild I can't fully merge is portage, all others work fine. This system has been installed over a year ago, and has worked fine until about the time were portage 2.0.50-r2 was out, then retracted a few hours later.
I was able to fix this: I commented out a test for the missingos module (whatever that is), and I was able to merge portage fine. Everything is working good since then (It's been a week or two since I fixed it, so I don't remember the line numbers I commented out to fix it. There doesn't seem to be any more lines about missingos in the ebuild.sh I currently have).
It very much sounds like your using the wrong stage tarball. As the test is a python script and the missingos module is C code, there aren't a lot more options. As you never answered that question, that is what I'm going with. Reopen if you believe it otherwise.