Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556068 - sys-libs/glibc-2.21-r1: cannot execute binary file: Exec format error
Summary: sys-libs/glibc-2.21-r1: cannot execute binary file: Exec format error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-27 19:23 UTC by Vasco Gervasi
Modified: 2015-07-27 20:33 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.tar.gz,251.45 KB, application/gzip)
2015-07-27 19:24 UTC, Vasco Gervasi
Details
emerge.info (emerge.info,17.61 KB, text/plain)
2015-07-27 19:24 UTC, Vasco Gervasi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vasco Gervasi 2015-07-27 19:23:49 UTC
Hi all,
I am trying to emerge sys-libs/glibc-2.21-r1 but I get this error:

mkdir -p -- /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: cannot execute binary file: Exec format error
Makefile:200: recipe for target '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp' failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] Error 126
make[2]: *** Waiting for unfinished jobs....
mkdir -p -- /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: cannot execute binary file: Exec format error
Makefile:200: recipe for target '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.stmp' failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.stmp] Error 126
CPP='x86_64-pc-linux-gnu-gcc -m32 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -E -x c-header' /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T
CPP='x86_64-pc-linux-gnu-gcc -m32 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -E -x c-header' /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen -Y ../scripts -h rpcsvc/nlm_prot.x -o /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.T
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: cannot execute binary file: Exec format error
Makefile:190: recipe for target '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp' failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] Error 126
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: cannot execute binary file: Exec format error
Makefile:190: recipe for target '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.stmp' failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.stmp] Error 126
make[2]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/glibc-2.21/sunrpc'
Makefile:214: recipe for target 'sunrpc/others' failed
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/glibc-2.21'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl'


Reproducible: Always

Steps to Reproduce:
1. emerge -a glibc
2.
3.
Actual Results:  
Error

Expected Results:  
Emerge
Comment 1 Vasco Gervasi 2015-07-27 19:24:15 UTC
Created attachment 407750 [details]
build.log
Comment 2 Vasco Gervasi 2015-07-27 19:24:50 UTC
Created attachment 407752 [details]
emerge.info
Comment 3 Ben Kohler gentoo-dev 2015-07-27 19:39:51 UTC
Is your kernel missing CONFIG_IA32_EMULATION ?
Comment 4 Vasco Gervasi 2015-07-27 19:43:58 UTC
# CONFIG_IA32_EMULATION is not set
Comment 5 Ben Kohler gentoo-dev 2015-07-27 19:46:44 UTC
You are attempting to build a multilib-enabled glibc but your kernel is not capable of running the 32bit code.  This won't work.  You need to add 32bit support to your kernel, or switch to no-multilib.
Comment 6 Vasco Gervasi 2015-07-27 19:48:44 UTC
How can I switch to no-multilib with systemd?
Comment 7 Ben Kohler gentoo-dev 2015-07-27 19:52:56 UTC
All you need for systemd is USE="systemd udev -consolekit" really, you can look at the rest of the details of the systemd-specific profiles in /usr/portage/profiles/targets/systemd/ .  I'd just pick a no-multilib profile and add a few flags from this systemd profile dir.

Or just enable 32bit support on your kernel.

For further help on this you should use one of our support venues like forums or IRC, this is not a bug so the bug tracker is not the right place to get support.
Comment 8 Vasco Gervasi 2015-07-27 20:33:24 UTC
Thanks