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
Created attachment 407750 [details] build.log
Created attachment 407752 [details] emerge.info
Is your kernel missing CONFIG_IA32_EMULATION ?
# CONFIG_IA32_EMULATION is not set
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.
How can I switch to no-multilib with systemd?
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.
Thanks