sys-apps/sandbox-2.6 fails to build. Emerging it with "FEATURES=-sandbox emerge sandbox", as suggested by portage, doesn't help either. Always reproducible.
File uploads don't work for me here (don't know why), so I'm pasting this here: * Package: sys-apps/sandbox-2.6 * Repository: gentoo * Maintainer: sandbox@gentoo.org * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU * FEATURES: sandbox >>> Unpacking source... >>> Unpacking sandbox-2.6.tar.xz to /tmp/portage/sys-apps/sandbox-2.6/work * Applying sandbox-2.6-trace-hppa.patch ... [ ok ] >>> Source unpacked in /tmp/portage/sys-apps/sandbox-2.6/work >>> Compiling source in /tmp/portage/sys-apps/sandbox-2.6/work/sandbox-2.6 ... * Configuring sandbox for ABI=amd64... * econf: updating sandbox-2.6/config.sub with /usr/share/gnuconfig/config.sub * econf: updating sandbox-2.6/config.guess with /usr/share/gnuconfig/config.guess * Configuring sandbox for ABI=x86... ../sandbox-2.6//configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 * econf: updating sandbox-2.6/config.sub with /usr/share/gnuconfig/config.sub * econf: updating sandbox-2.6/config.guess with /usr/share/gnuconfig/config.guess ../sandbox-2.6//configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 checking for a BSD-compatible install... /usr/bin/install -c checking for a BSD-compatible install... checking whether build environment is sane... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for a thread-safe mkdir -p... yes /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... checking whether make supports nested variables... yes yes checking whether make supports nested variables... (cached) yes checking whether make supports nested variables... checking environment state... ok checking for x86_64-pc-linux-gnu-gcc... gcc yes checking whether make supports nested variables... (cached) yes checking environment state... ok checking for i686-pc-linux-gnu-gcc... gcc -m32 checking whether the C compiler works... checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for C compiler default output file name... a.out checking for suffix of executables... no checking for suffix of object files... checking whether we are cross compiling... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... configure: error: in `/tmp/portage/sys-apps/sandbox-2.6/work/build-x86': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details none needed checking for style of include used by make... GNU checking dependency style of gcc... !!! Please attach the following file when seeking support: !!! /tmp/portage/sys-apps/sandbox-2.6/work/build-x86/config.log * ERROR: sys-apps/sandbox-2.6 failed (compile phase): * econf failed * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2561: Called multijob_child_init 'sb_configure' * environment, line 2079: Called sb_configure * environment, line 2508: Called econf * phase-helpers.sh, line 503: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of `emerge --info '=sys-apps/sandbox-2.6'`, * the complete build log and the output of `emerge -pqv '=sys-apps/sandbox-2.6'`. * If configure failed with a 'cannot run C compiled programs' error, try this: gcc3 checking whether gcc and cc understand -c and -o together... * FEATURES=-sandbox emerge sandbox /usr/lib64/portage/bin/isolated-functions.sh: line 214: wait: `econf failed': not a pid or valid job spec * The complete build log is located at '/tmp/sys-apps:sandbox-2.6:20120914-075046.log'. * For convenience, a symlink to the build log is located at '/tmp/portage/sys-apps/sandbox-2.6/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/sys-apps/sandbox-2.6/temp/environment'. * Working directory: '/tmp/portage/sys-apps/sandbox-2.6/work/build-x86' * S: '/tmp/portage/sys-apps/sandbox-2.6/work/sandbox-2.6' yes checking for library containing strerror... none required checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar checking the archiver (x86_64-pc-linux-gnu-ar) interface... ar checking whether make sets $(MAKE)... (cached) yes checking for gawk... (cached) gawk checking for egrep... (cached) /bin/grep -E checking for readelf... readelf checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump checking how to recognize dependent libraries... pass_all checking for x86_64-pc-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-pc-linux-gnu-ar... (cached) x86_64-pc-linux-gnu-ar checking for archiver @FILE support... @ checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for x86_64-pc-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for multiple personalities... x86_64:-m64 x86:-m32 x32:-mx32 checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for dirent.h... yes checking for dlfcn.h... (cached) yes checking for elf.h... yes checking for errno.h... yes checking for execinfo.h... yes checking for fcntl.h... yes checking for grp.h... yes checking for inttypes.h... (cached) yes checking for libgen.h... yes checking for limits.h... yes checking for memory.h... (cached) yes checking for pthread.h... yes checking for pwd.h... yes checking for siginfo.h... no checking for signal.h... yes checking for sigsegv.h... (cached) no checking for stdarg.h... yes checking for stdbool.h... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for syscall.h... yes checking for unistd.h... (cached) yes checking for utime.h... yes checking for sys/file.h... yes checking for sys/mman.h... yes checking for sys/param.h... yes checking for sys/ptrace.h... yes checking for sys/reg.h... yes checking for sys/stat.h... (cached) yes checking for sys/syscall.h... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking for sys/user.h... yes checking for sys/wait.h... (cached) yes checking for asm/ptrace.h... yes checking for linux/ptrace.h... yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for size_t... (cached) yes checking whether environ is declared... yes checking for ptrdiff_t... yes checking for sighandler_t... yes checking for sig_t... yes checking for __sighandler_t... yes checking for struct user_regs_struct... yes checking for struct pt_regs... yes checking size of struct user_regs_struct... 216 checking size of struct pt_regs... 168 checking for unistd.h... (cached) yes checking for working chown... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking whether lstat correctly handles trailing slash... yes checking whether lstat accepts an empty string... no checking whether lstat correctly handles trailing slash... (cached) yes checking return type of signal handlers... void checking whether stat accepts an empty string... no checking for backtrace... yes checking for creat64... yes checking for faccessat... yes checking for fchmodat... yes checking for fchownat... yes checking for fopen64... yes checking for ftruncate... yes checking for futimesat... yes checking for getcwd... yes checking for lchown... yes checking for linkat... yes checking for lutimes... yes checking for memmove... yes checking for memcpy... yes checking for memset... yes checking for mkdir... yes checking for mkdirat... yes checking for mkdtemp... yes checking for mkfifoat... yes checking for mknodat... yes checking for mkostemp... yes checking for mkostemp64... yes checking for mkostemps... yes checking for mkostemps64... yes checking for mkstemp... yes checking for mkstemp64... yes checking for mkstemps... yes checking for mkstemps64... yes checking for open64... yes checking for openat... yes checking for openat64... yes checking for pathconf... yes checking for ptrace... yes checking for realpath... yes checking for remove... yes checking for renameat... yes checking for rmdir... yes checking for setenv... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strndup... yes checking for strrchr... yes checking for strspn... yes checking for strstr... yes checking for strtok_r... yes checking for symlinkat... yes checking for truncate64... yes checking for unlinkat... yes checking for utime... yes checking for utimensat... yes checking for utimes... yes checking for stackoverflow_install_handler in -lsigsegv... (cached) false checking for __sync_lock_test_and_set... yes checking for va_copy... va_copy checking for library containing dlopen... -ldl checking for dlvsym... yes checking truncate argument type... off_t checking for RTLD_NEXT... yes checking libc path... /lib64/libc.so.6 checking libc version... libc.so.6 checking for /proc/self/fd... yes checking for /dev/fd... yes checking for /proc/self/cmdline... yes checking for /proc/1/cmdline... yes checking for /proc/16992/cmdline... yes checking how to enable exception handling... -fexceptions checking CFLAGS for maximum warnings... -Wall checking whether C compiler accepts -Winvalid-pch... yes checking whether C compiler accepts -fdata-sections... yes checking whether C compiler accepts -ffunction-sections... yes checking whether the linker accepts -Wl,--as-needed... yes checking whether the linker accepts -Wl,--gc-sections... yes checking whether the linker accepts -Wl,--no-undefined... yes checking whether the linker accepts -Wl,--version-script,conftest.map... yes configure: creating ./config.status config.status: creating src/sandbox.sh config.status: creating Makefile config.status: creating data/Makefile config.status: creating etc/Makefile config.status: creating etc/sandbox.d/00default config.status: creating etc/sandbox.d/Makefile config.status: creating libsandbox/Makefile config.status: creating libsbutil/Makefile config.status: creating scripts/Makefile config.status: creating src/Makefile config.status: creating tests/atlocal config.status: creating tests/Makefile config.status: creating tests/package.m4 config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing tests/atconfig commands
1) Please attach the entire build log to this bug report. 2) Please post your `emerge --info' output in a comment.
Comment 1 is the entire build log. The error message is not at the end because I use -j5 (not using it doesn't change much except putting that message at the end). emerge --info =sys-apps/sandbox-2.6 is: Portage 2.1.11.17 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r2, 3.5.3-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.5.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-2430M_CPU_@_2.40GHz-with-gentoo-2.2 Timestamp of tree: Fri, 14 Sep 2012 12:00:01 +0000 app-shells/bash: 4.2_p37 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.10.5 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.12.3 sys-devel/binutils: 2.22.90 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.5 (virtual/os-headers) sys-libs/glibc: 2.15-r2 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/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/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre pppd readline session sse sse2 ssl tcpd unicode vaapi 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" 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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel nouveau" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
!!! Please attach the following file when seeking support: !!! /tmp/portage/sys-apps/sandbox-2.6/work/build-x86/config.log Sorry, I meant config.log.
Created attachment 323782 [details] /tmp/portage/sys-apps/sandbox-2.6/work/build-x86/config.log
Ah, now file upload worked..
I (kind of) solved the problem by emerging with 'MULTILIB_ABIS="amd64" emerge sandbox'. Seems like the ebuild wants to configure for x86 and for x86_64, although my kernel is not compiled for running x86 binaries and although I use -multilib. This is because get_install_abis from /usr/portage/eclass/multilib.eclass returns x86 and x86_64. What's wrong there? Shouldn't portage detect that I'm running a x86_64-only kernel?
most likely you didn't enable 32bit support in your kernel
That's what I said in Comment 7. So why does get_install_abis tell the ebuild to configure for 32 bit?
because you configured your system for multilib by using a multilib stage and profile. the eclasses/ebuilds do not handle invalid configurations by design.