I'm trying to make a chroot on a corei7 desktop to do emerge for an atom media-center. So I prepare my chroot as describe in http://www.gentoo.org/doc/fr/handbook/handbook-amd64.xml (stage3-amd64-20130816.tar.bz2). make some modification in make.conf : CFLAGS="-march=atom -O2 -mssse3 -mfpmath=sse -pipe" ACCEPT_KEYWORDS="~amd64" Then I follow the http://www.gentoo.org/doc/fr/gcc-upgrading.xml process. All was right until the 'emerge -eav system'. At this point I was unable to upgrade glibc. Whatever I tried since, it failed with : >>> Merging sys-libs/glibc-2.17 to / * Defaulting /etc/host.conf:multi to on /var/tmp/portage/sys-libs/glibc-2.17/temp/environment: line 2330: 25085 Illegal instruction ./ld-*.so --library-path . ${x} > /dev/null * ERROR: sys-libs/glibc-2.17::gentoo failed (preinst phase): * simple run test (/bin/date) failed * * Call stack: * ebuild.sh, line 93: Called pkg_preinst * environment, line 3015: Called eblit-run 'pkg_preinst' * environment, line 943: Called eblit-glibc-pkg_preinst * environment, line 757: Called glibc_sanity_check * environment, line 2336: Called die * The specific snippet of code: * ./ld-*.so --library-path . ${x} > /dev/null || die "simple run test (${x}) failed"; Reproducible: Always Steps to Reproduce: 1. emerge sys-libs/glibc Actual Results: >>> Merging sys-libs/glibc-2.17 to / * Defaulting /etc/host.conf:multi to on /var/tmp/portage/sys-libs/glibc-2.17/temp/environment: line 2330: 25085 Illegal instruction ./ld-*.so --library-path . ${x} > /dev/null * ERROR: sys-libs/glibc-2.17::gentoo failed (preinst phase): * simple run test (/bin/date) failed * * Call stack: * ebuild.sh, line 93: Called pkg_preinst * environment, line 3015: Called eblit-run 'pkg_preinst' * environment, line 943: Called eblit-glibc-pkg_preinst * environment, line 757: Called glibc_sanity_check * environment, line 2336: Called die * The specific snippet of code: * ./ld-*.so --library-path . ${x} > /dev/null || die "simple run test (${x}) failed"; Expected Results: >>> Merging sys-libs/glibc-2.17 to / [OK]
Created attachment 357148 [details] emerge --info '=sys-libs/glibc-2.17::gentoo'
the Atom architecture includes support for an insn "movbe" which other Intel platforms (like the core i7) do not include. hence the crash makes sense -- the code you built uses the "movbe" insn which is illegal on the system you're compiling.