Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322453 - sys-libs/glibc-2.11.1 multilib build fails when 32bit is disabled in kernel
Summary: sys-libs/glibc-2.11.1 multilib build fails when 32bit is disabled in kernel
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 08:54 UTC by Nicklas M. Hansen
Modified: 2010-06-06 15:39 UTC (History)
1 user (show)

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


Attachments
complete build log (build.log.tar.gz,242.17 KB, application/octet-stream)
2010-06-02 09:55 UTC, Nicklas M. Hansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicklas M. Hansen 2010-06-02 08:54:01 UTC
During a complete "emerge -pvD world" it failed to compile sys-libs/glibc-2.11.1



Reproducible: Always

Steps to Reproduce:
1. emerge -pvD world
2. or "emerge -v glibc"


Actual Results:  
Fails every time:

/bin/sh: /var/tmp/portage/sys-libs/glibc-2.11.1/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.11.1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] Error 126
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.11.1/work/glibc-2.11.1/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.11.1/work/glibc-2.11.1'
make: *** [all] Error 2
 * ERROR: sys-libs/glibc-2.11.1 failed:
 *   make for x86 failed
 * 
 * Call stack:
 *           ebuild.sh, line   54:  Called src_compile
 *         environment, line 3872:  Called eblit-run 'src_compile'
 *         environment, line 1261:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  199:  Called src_compile
 *         environment, line 3872:  Called eblit-run 'src_compile'
 *         environment, line 1261:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  207:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  123:  Called die
 * The specific snippet of code:
 *              make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.11.1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.11.1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.11.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.11.1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.11.1/work/glibc-2.11.1'

>>> Failed to emerge sys-libs/glibc-2.11.1, Log file:

>>>  '/var/tmp/portage/sys-libs/glibc-2.11.1/temp/build.log'

 * Messages for package sys-libs/glibc-2.11.1:

 * ERROR: sys-libs/glibc-2.11.1 failed:
 *   make for x86 failed
 * 
 * Call stack:
 *           ebuild.sh, line   54:  Called src_compile
 *         environment, line 3872:  Called eblit-run 'src_compile'
 *         environment, line 1261:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  199:  Called src_compile
 *         environment, line 3872:  Called eblit-run 'src_compile'
 *         environment, line 1261:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  207:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  123:  Called die
 * The specific snippet of code:
 *              make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.11.1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.11.1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.11.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.11.1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.11.1/work/glibc-2.11.1'

Expected Results:  
successful compile

emerge --info                                                                                                                                                         
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.3.4, glibc-2.11-r1, 2.6.33-gentoo x86_64)                                                                                    
=================================================================                                                                                                                         
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-gentoo-2.0.1                                                                                          
Timestamp of tree: Tue, 01 Jun 2010 20:45:01 +0000                                                                                                                                        
ccache version 2.4 [enabled]                                                                                                                                                              
app-shells/bash:     4.1_p2                                                                                                                                                               
dev-java/java-config: 2.1.11                                                                                                                                                              
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.klid.dk/gentoo/ http://ftp.klid.dk/ftp/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.ds.karen.hj.se/gentoo/ http://ftp.ds.karen.hj.se/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="da"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jpeg jpg kde lcms ldap libnotify lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thumbnail tiff truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="da" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-06-02 09:36:12 UTC
You need to post full build.log. 

It might be quite large, glibc's or gcc's build.log usually is, so try compressing it or uploading it to some reliable site and posting link here.
Comment 2 Nicklas M. Hansen 2010-06-02 09:55:49 UTC
Created attachment 233835 [details]
complete build log
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2010-06-02 23:28:15 UTC
Did you do an gcc upgrage as well?

Please attach the following command outputs

1)gcc-config -l
2)binutils-config -l

Did you try to rebuild binutils and gcc?
Comment 4 Nicklas M. Hansen 2010-06-04 08:45:37 UTC
(In reply to comment #3)
> Did you do an gcc upgrage as well?
> 
> Please attach the following command outputs
> 
> 1)gcc-config -l
> 2)binutils-config -l
> 
> Did you try to rebuild binutils and gcc?
> 

Hi here's the output:

# gcc-config -l
 [1] x86_64-pc-linux-gnu-4.3.4 *
 [2] x86_64-pc-linux-gnu-4.4.3
# binutils-config -l
 [1] x86_64-pc-linux-gnu-2.20.1 *

I've tried reemerging binutils - no difference.
but when I try to emerge gcc, ther's a new version and it's fails to compile.

# emerge -pv gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-devel/gcc-4.4.3-r2 [4.4.3] USE="fortran gtk* mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB                                                                                                               

Total: 1 package (1 upgrade), Size of downloads: 0 kB

The error on the update of gcc is apperently an duplicate bug of: http://bugs.gentoo.org/show_bug.cgi?id=322565

What to do next?

Regards - Nicklas

Comment 5 Markos Chandras (RETIRED) gentoo-dev 2010-06-04 08:50:47 UTC
# gcc-config -l
 [1] x86_64-pc-linux-gnu-4.3.4 *
 [2] x86_64-pc-linux-gnu-4.4.3

Why are you using the old gcc since you have a newer already installed?

Please run

gcc-config 2
source /etc/profile

then emerge again binutils,gcc ( the newer should work ), and glibc
Comment 6 Nicklas M. Hansen 2010-06-04 10:25:16 UTC
I've changed to the newer x86_64-pc-linux-gnu-4.4.3.
Reemerged binutils and gcc, but it still fails to emerge gcc.
I tried to emerge glibc also, but it still fails.

Comment 7 SpanKY gentoo-dev 2010-06-04 20:21:53 UTC
did you disable 32bit support in your kernel ?

does this work:
echo 'main{}()' > test.c
gcc -m32 test.c
./a.out
Comment 8 Nicklas M. Hansen 2010-06-04 21:49:31 UTC
(In reply to comment #7)
> did you disable 32bit support in your kernel ?
> 
> does this work:
> echo 'main{}()' > test.c
> gcc -m32 test.c
> ./a.out
> 
#echo 'main(){}' > test.c
#gcc -m32 test.c
# ./a.out
bash: ./a.out: cannot execute binary file

Does this mean that 32bit support is disabled in the kernel?
Comment 9 Nicklas M. Hansen 2010-06-06 15:39:00 UTC
yup - I have enabled 32bit support in kernel, recompiled the kernel, rebooted and now glibc and gcc compiles fine. 
Thanks for the help