Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 482634

Summary: =sys-libs/glibc-2.17 - ...//temp/environment: line 2330: 25085 Illegal instruction ./ld-*.so --library-path . ${x} > /dev/null
Product: Gentoo Linux Reporter: Charles Nérot <charles>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=sys-libs/glibc-2.17::gentoo'

Description Charles Nérot 2013-08-27 07:45:29 UTC
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]
Comment 1 Charles Nérot 2013-08-27 07:46:27 UTC
Created attachment 357148 [details]
emerge --info '=sys-libs/glibc-2.17::gentoo'
Comment 2 SpanKY gentoo-dev 2013-08-27 16:12:32 UTC
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.