Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441780 - sys-libs/glibc-2.16.0 - Build fails with sunrpc/cross-rpcgen: cannot execute binary file
Summary: sys-libs/glibc-2.16.0 - Build fails with sunrpc/cross-rpcgen: cannot execute ...
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 Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-04 21:10 UTC by Wonko
Modified: 2012-11-10 10:52 UTC (History)
1 user (show)

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


Attachments
Build log (sys-libs:glibc-2.16.0:20121103-110502.log.bz2,141.09 KB, application/octet-stream)
2012-11-04 21:13 UTC, Wonko
Details
Output of less sunrpcgen.txt (sunrpcgen.txt,34.69 KB, text/plain)
2012-11-07 22:26 UTC, Wonko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wonko 2012-11-04 21:10:40 UTC
I'm getting an error building glibc-2.16.0:

.././scripts/mkinstalldirs /var/portage/tmpfs/portage/sys-libs/glibc-2.16.0/work/build-x86-x86_64-pc-linux-gn
u-nptl/sunrpc/rpcsvc
mkdir /var/portage/tmpfs/portage/sys-libs/glibc-2.16.0/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc
CPP='x86_64-pc-linux-gnu-gcc -m32 -E -x c-header' /var/portage/tmpfs/portage/sys-libs/glibc-2.16.0/work/build
-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen -Y ../scripts -h rpcsvc/key_prot.x -o /var/portage/tmpfs/po
rtage/sys-libs/glibc-2.16.0/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/key_prot.T
/bin/sh: /var/portage/tmpfs/portage/sys-libs/glibc-2.16.0/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cros
s-rpcgen: cannot execute binary file
make[2]: *** [/var/portage/tmpfs/portage/sys-libs/glibc-2.16.0/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/key_prot.stmp] Error 126

I did not investigate this further, and do not care much about it personally, but I thought I'd file a report.


Portage 2.2.0_alpha142 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.6.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.6.4-gentoo-x86_64-AMD_FX-tm-4100_Quad-Core_Processor-with-gentoo-2.2
Timestamp of tree: Sun, 04 Nov 2012 08:45:01 +0000
ld GNU ld (GNU Binutils) 2.23
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.8 [disabled]
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.6.8, 2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4                                                           
sys-devel/binutils:       2.23                                                                               
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.3                                                                
sys-devel/gcc-config:     1.7.3                                                                              
sys-devel/libtool:        2.4.2                                                                              
sys-devel/make:           3.82-r4                                                                            
sys-kernel/linux-headers: 3.6 (virtual/os-headers)                                                           
sys-libs/glibc:           2.15-r3                                                                            
Repositories: gentoo zugaina nx kde enlightenment emacs dfreise proaudio science gamerlay-stable xarthisius sunrise local                                                                                                 
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                               
ACCEPT_LICENSE="* -@EULA"                                                                                    
CBUILD="x86_64-pc-linux-gnu"                                                                                 
CFLAGS="-pipe -march=amdfam10 -O2          -floop-interchange -floop-strip-mine -floop-block          -msse -msse2 -msse3 -msse4a -msse4.1 -msse4.2 -m3dnow          -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx          --param l1-cache-size=16          --param l1-cache-line-size=64          --param l2-cache-size=2048"                                                                                                          
CHOST="x86_64-pc-linux-gnu"                                                                                  
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"                                                                   
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /usr/share/X11/xkb /usr/share/openvpn/easy-rsa"                          
CXXFLAGS="-pipe -march=amdfam10 -O2          -floop-interchange -floop-strip-mine -floop-block          -msse -msse2 -msse3 -msse4a -msse4.1 -msse4.2 -m3dnow          -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx          --param l1-cache-size=16          --param l1-cache-line-size=64          --param l2-cache-size=2048"                                                                                                        
DISTDIR="/var/portage/distfiles"                                                                             
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y --load-average=6.0"                                         
FCFLAGS="-O2 -pipe"                                                                                          
FEATURES="assume-digests binpkg-logs buildpkg buildsyspkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.netcologne.de/gentoo/ http://gentoo.mneisen.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="--jobs --load 5"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/portage/tmpfs"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/layman/zugaina /var/portage/layman/nx /var/portage/layman/kde /var/portage/layman/enlightenment /var/portage/layman/emacs /var/portage/layman/dfreise /var/portage/layman/pro-audio /var/portage/layman/science /var/portage/layman/gamerlay /var/portage/layman/xarthisius /var/portage/layman/sunrise /var/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aim alsa amd64 apache2 apm audiofile bash-completion bcmath berkdb bluetooth branding bzip2 cairo calendar cdda cdparanoia cdr cli consolekit cracklib crypt ctype cups cvs cxx dbus declarative dga directfb dri dts dvb dvd dvdr emacs emboss encode exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm ggi gif gimp ginac git gnutls gphoto2 gpm gtk handbook hddtemp iconv icu ieee1394 imagemagick imlib ipv6 jabber jack java javascript jbig jpeg jpeg2k kde kipi latex lcms ldap libnotify lm_sensors lzma mad maildir matroska matrox mikmod mime mmx mng modplug modules motif mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz nas ncurses nls nptl nsplugin ogg openal opengl openmp oss pam pango pch pcre pdf phonon php plasma plotutils png policykit ppds pppd qt3support qt4 quicktime radius rdesktop readline recode ruby samba scanner sdl semantic-desktop session slang slp smp sndfile sockets sox speex spell sse sse2 sse3 ssl startup-notification subversion svg tcpd theora threads tiff truetype udev udisks unicode upower usb videos vim-syntax visualization vnc vorbis wma wmf wxwidgets wxwindows x264 xattr xcb xcomposite xine xinerama xml xosd xpm xscreensaver xv xvid 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="cgi alias auth_basic authn_file authz_groupfile authz_host authz_owner authz_user dir mime userdir" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="serial" MISDN_CARDS="avmfritz" PHP_TARGETS="php5-3 php5-4" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="canon_pp microtek plustek_pp" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-libs/glibc-2.15-r3 was built with the following:
USE="(consolekit) gd (multilib) (policykit) -debug (-hardened) -profile (-selinux) -vanilla"
CFLAGS="-pipe -march=amdfam10 -O2 -fno-strict-aliasing"
CXXFLAGS="-pipe -march=amdfam10 -O2 -fno-strict-aliasing"
Comment 1 Wonko 2012-11-04 21:13:15 UTC
Created attachment 328356 [details]
Build log
Comment 2 SpanKY gentoo-dev 2012-11-05 16:46:08 UTC
126 is permission denied.  do you have funky mount options with your tmpfs ?
Comment 3 Wonko 2012-11-05 18:43:29 UTC
No:

wonko@weird ~ $ mount | grep /var/portage/tmpfs
tmpfs on /var/portage/tmpfs type tmpfs (rw,size=5G)

And the same happens when I compile without tmpfs.
Comment 4 SpanKY gentoo-dev 2012-11-05 21:09:17 UTC
what if you use sane CFLAGS ?  drop all the extraneous cruft.

i'm guessing there isn't anything in `dmesg` ...
Comment 5 Wonko 2012-11-07 22:24:44 UTC
Same error when I set CFLAGS/CXXFLAGS to "-O2 -pipe".

 *             ABI:   x86
 *          CBUILD:   x86_64-pc-linux-gnu
 *           CHOST:   x86_64-pc-linux-gnu
 *         CTARGET:   x86_64-pc-linux-gnu
 *      CBUILD_OPT:   i686-pc-linux-gnu
 *     CTARGET_OPT:   i686-pc-linux-gnu
 *              CC:   x86_64-pc-linux-gnu-gcc -m32
 *         ASFLAGS:   
 *          CFLAGS:   -pipe -O2 -fno-strict-aliasing
 *        CPPFLAGS:   
 *        CXXFLAGS:   -pipe -O2 -fno-strict-aliasing
 *         LDFLAGS:   -Wl,-O1 -Wl,--as-needed
 *       Manual CC:   x86_64-pc-linux-gnu-gcc -m32

Is the -m32 normal?
Comment 6 Wonko 2012-11-07 22:26:06 UTC
Created attachment 328752 [details]
Output of less sunrpcgen.txt

I viewed the file that cannot be executed with less.
Comment 7 SpanKY gentoo-dev 2012-11-08 17:05:32 UTC
is the file +x ?

what if you do:
cd /var/portage/tmpfs/portage/sys-libs/glibc-2.16.0/work/
echo 'main(){}' > test.c
gcc test.c -static -m32
./a.out
Comment 8 Wonko 2012-11-09 19:39:15 UTC
gcc-co
Comment 9 Wonko 2012-11-09 21:55:23 UTC
Thanks, SpanKY. The error is triggered by the -m32, and has nothing to do with glibc. If anyone has an idea what is going on there, I'd like to hear that. But don't spend your time on this, it's not an important issue, and I'd better ask for help on the gentoo-user mailing list, if I cannot find out the solution for myself. So I closed the bug and say thanks for having looked into this.
Comment 10 SpanKY gentoo-dev 2012-11-10 04:40:01 UTC
you probably need to enable 32bit support in your kernel
Comment 11 Wonko 2012-11-10 10:52:53 UTC
Yes, that's it - Executable file formats / Emulations -> IA32 Emulation. Now I remember I had accidentally unchecked the very first kernel option, 64-bit kernel, by typing in the wrong shell. Apparently is it not enough to simply enable it again.

Sorry for the noise, guys!