Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393479 - sys-libs/glibc-2.13-r4 - /bin/sh: /var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2: cannot execute binary file
Summary: sys-libs/glibc-2.13-r4 - /bin/sh: /var/tmp/portage/sys-libs/glibc-2.13-r4/wor...
Status: RESOLVED DUPLICATE of bug 326693
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 08:46 UTC by Marek Królikowski
Modified: 2015-03-27 20:37 UTC (History)
0 users

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


Attachments
Compresed version of build.log (build.7z,168.55 KB, application/x-7z)
2011-12-07 17:55 UTC, Marek Królikowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Królikowski 2011-12-07 08:46:00 UTC
After try compiling stable version glibc-2.13-r4 on AMD64 got crash.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge glibc
3.
Actual Results:  
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2: cannot execute binary file
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xyppasswd.stmp] Error 126
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2: cannot execute binary file
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xklm_prot.stmp] Error 126
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2: cannot execute binary file
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.13-r4/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.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2: cannot execute binary file
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2: cannot execute binary file
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.stmp] Error 126
/bin/sh: /var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2: cannot execute binary file
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/rstat.stmp] Error 126
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.13-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/yppasswd.stmp] Error 126
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.13-r4/work/glibc-2.13/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.13-r4/work/glibc-2.13'
make: *** [all] Error 2
emake failed


Expected Results:  
Compile with no problem

NEW-PLK2 ~ # emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 3.1.4 x86_64)
=================================================================
System uname: Linux-3.1.4-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 07 Dec 2011 07:45:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/www/localhost/htdocs/squirrelmail/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="https://gentoo.tktelekom.pl/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.po.opole.pl/ http://gentoo.zie.pg.gda.pl/ http://gentoo.prz.rzeszow.pl/"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j25"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.tktelekom.pl/gentoo-portage"
USE="acl amd64 apache2 autofs berkdb bidi bzip2 cli cracklib crypt ctype cxx devfs dri fontconfig foomaticdb fortran gd gdbm gif gpm iconv imap ipv6 jpeg md5sum mmx modules mudflap multilib ncurses nls no-htdocs nptl nptlonly openmp pam pcre perl perlsuid php png pppd python ra readline ruby sasl scriptdev2 session slang snmp sse sse2 ssl svg symlink sysfs tcpd truetype unicode vda xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Agostino Sarubbo gentoo-dev 2011-12-07 08:55:35 UTC
PLease add full build log as attachment
Comment 2 Marek Królikowski 2011-12-07 09:28:05 UTC
The file you are trying to attach is 11590 kilobytes (KB) in size. Attachments cannot be more than 1000 KB. 
Can`t upload here this file :(
build.log is 11MB file.

Download from here mayby:
https://rapidshare.com/files/306437888/build.log

Thanks
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-07 13:16:15 UTC
(In reply to comment #2)
> The file you are trying to attach is 11590 kilobytes (KB) in size. Attachments
> cannot be more than 1000 KB. 
> Can`t upload here this file :(
> build.log is 11MB file.

Compress the file, then attach it.
Comment 4 Marek Królikowski 2011-12-07 17:55:52 UTC
Created attachment 295099 [details]
Compresed version of build.log
Comment 5 SpanKY gentoo-dev 2011-12-07 20:30:14 UTC
does your kernel support 32bit binaries ?  what does this show:

echo 'main(){puts("HI");}' | gcc -x c - -m32 -o a.out
./a.out
Comment 6 Marek Królikowski 2011-12-07 20:54:40 UTC
# ./a.out
-bash: ./a.out: cannot execute binary file



But i compile 64bit version not 32...
Comment 7 SpanKY gentoo-dev 2011-12-07 22:53:24 UTC
if you want to do multilib, you need to enable the required features in your kernel (such as 32bit support)
Comment 8 Marek Królikowski 2011-12-07 23:09:19 UTC
So mayby ebuuild check this because old version i compile without any problem.
For me still bug.
Comment 9 SpanKY gentoo-dev 2011-12-07 23:38:45 UTC
there is no support for native multilibs when the kernel lacks support for said multilibs.  this is not a bug.

if you don't want multilibs, then use a no-multilib profile.
Comment 10 SpanKY gentoo-dev 2015-03-27 20:37:24 UTC

*** This bug has been marked as a duplicate of bug 326693 ***