Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482634 - =sys-libs/glibc-2.17 - ...//temp/environment: line 2330: 25085 Illegal instruction ./ld-*.so --library-path . ${x} > /dev/null
Summary: =sys-libs/glibc-2.17 - ...//temp/environment: line 2330: 25085 Illegal instru...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-27 07:45 UTC by Charles Nérot
Modified: 2013-08-27 16:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=sys-libs/glibc-2.17::gentoo' (info.log,16.06 KB, text/plain)
2013-08-27 07:46 UTC, Charles Nérot
Details

Note You need to log in before you can comment on or make changes to this bug.
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.