Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232530 - sys-apps/sandbox: ../sandbox-1.2.18.1//configure: line 2353: ./a.out: cannot execute binary file
Summary: sys-apps/sandbox: ../sandbox-1.2.18.1//configure: line 2353: ./a.out: cannot ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-21 02:07 UTC by Walter
Modified: 2008-11-08 14:39 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,7.16 KB, text/plain)
2008-07-21 02:08 UTC, Walter
Details
complete build log (build.log,2.58 KB, text/plain)
2008-07-22 17:31 UTC, Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter 2008-07-21 02:07:48 UTC
I have sys-apps/sandbox-1.2.17
I cannot emerge some packages (eg: vmware-modules, which dies with 'ACCESS VIOLATION') so I want to upgrade.
I try to upgrade to a higher sandbox, but get the error "configure: error: cannot run C compiled programs"

Reproducible: Always

Steps to Reproduce:
1. FEATURES="-sandbox -usersandbox" emerge sandbox

Actual Results:  
compile fails with "unable to produce executables"

Expected Results:  
Compile new (hopefully less buggy?) sandbox!

I have searched and read comments to the bugs: #135745, #135688, #133209 but have not had any success.

(I have never used crossdev, I have no old compiler-related symlinks in /bin -- checked as per the following...)

find /usr/bin | xargs strings -f 2> /dev/null | grep "Unable to determine executable" | cut -d : -f 1

My emerge --info output....
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz
Timestamp of tree: Sun, 20 Jul 2008 23:45:03 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.channelx.biz http://ftp.kaist.ac.kr/pub/gentoo/ http://gentoo.gg3.net/"
LINGUAS="en_GB en_US en zh_CN zh ja ko ja ko th vi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 audiofile berkdb bzip2 cddb cdr cgi cjk cli cracklib crypt cups curl dbus divx dri dvdr exif fastcgi ffmpeg firefox flac fortran gd gdbm gif gnome gphoto2 gpm gtk hdri iconv ieee1394 imlib immqt-bc ipv6 isdnlog java jbig jpeg jpeg2k jpg json libnotify lm_sensors mad memcache midi mmx mp3 mpeg mpg mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl php png povray pppd python qt3 readline reflection ruby samba scim session spl sse sse2 ssl svg tcpd ti tiff trayicon truetype type1 uim unicode vim vim-syntax vorbis wmf xml xorg xpm xulrunner xv zip 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 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="en_GB en_US en zh_CN zh ja ko ja ko th vi" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Walter 2008-07-21 02:08:46 UTC
Created attachment 160975 [details]
config.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-21 02:46:17 UTC
Try this (from bug #133209):
 FEATURES=-sandbox emerge sandbox
Comment 3 Walter 2008-07-22 01:47:52 UTC
(In reply to comment #2)
> Try this (from bug #133209):
>  FEATURES=-sandbox emerge sandbox

If you read the original bug report you can see:
Reproducible: Always

Steps to Reproduce:
1. FEATURES="-sandbox -usersandbox" emerge sandbox
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-22 06:18:11 UTC
../sandbox-1.2.18.1//configure: line 2353: ./a.out: cannot execute binary file

Are you by any chance using ACLs on /var/tmp or is noexec enabled?
Comment 5 Walter 2008-07-22 09:35:09 UTC
> ../sandbox-1.2.18.1//configure: line 2353: ./a.out: cannot execute binary file
> 
> Are you by any chance using ACLs on /var/tmp or is noexec enabled?

I've definitely not manually configured these.  How would I check if
they're active?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-22 16:16:01 UTC
Could you please post the entire sys-apps/sandbox build log?
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-22 16:28:39 UTC
I'm ruling out bug #216793 and bug #227947.

Bug #227947 and bug #202811 look similar because of:
'configure:1942: checking for i686-pc-linux-gnu-gcc'

Do you have anything called /usr/bin/i686-* ?
Comment 8 Walter 2008-07-22 17:30:41 UTC
> Bug #227947 and bug #202811 look similar because of:
> 'configure:1942: checking for i686-pc-linux-gnu-gcc'
> 
> Do you have anything called /usr/bin/i686-* ?

No.
Comment 9 Walter 2008-07-22 17:31:25 UTC
Created attachment 161108 [details]
complete build log
Comment 10 Laurence Withers 2008-08-18 20:13:44 UTC
I have the same problem on one of my machines (amd64). I can confirm that /var/tmp is *not* mounted noexec and that ACLs are not in use. I can also confirm that something like:

echo 'int main(void) { return 0; }' > foo.c
gcc foo.c
./a.out

works correctly as root.
Comment 11 Walter 2008-08-23 05:55:14 UTC
Anyone looking at this or should I rebuild my entire system?
Comment 12 Walter 2008-08-26 04:44:31 UTC
I'm done waiting for a response... five weeks is long enough.

I'm zapping the system in question for a total rebuild (there goes another two days).

Do hope the bug eventually gets solved... :(

This has to go in the 'worst gentoo experience yet' basket.
Comment 13 Laurence Withers 2008-08-27 21:14:30 UTC
After some judicious strace usage, and help from IRC, I found that gcc was creating a 32-bit ELF executable which was being run as part of configure. If the kernel option CONFIG_IA32_EMULATION is set to N then this of course fails as the kernel can't run 32-bit executables.

The solution is either to enable CONFIG_IA32_EMULATION or to use a no-multilib profile (which would cause sandbox to be compiled without 64-bit executables). You cannot mix and match the two.
Comment 14 SpanKY gentoo-dev 2008-11-08 14:39:11 UTC
if you use a multilib profile you had better well make sure your kernel is properly configured