Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get Sandbox/GCC to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
lissom
n00b
n00b


Joined: 29 Jan 2006
Posts: 18
Location: Stamford, CT, USA

PostPosted: Thu Jan 21, 2010 6:17 pm    Post subject: Cannot get Sandbox/GCC to compile Reply with quote

Hello,

I cannot get GCC, or upon attempting to emerge system -e to see if that would fix it, sandbox to compile. I tried `FEATURES=-sandbox emerge sandbox` and that didn't work either. I tried both the default/linux/amd64/10.0 and default/linux/amd64/10.0/server profile (using GCC-4.3.4 for both).
in the kernel IA32_EMULATION=y
Does anyone know what is wrong and why I cannot emerge sandbox/gcc.

Thanks,
lissom

`emerge sandbox`
>>> Unpacking source...
>>> Unpacking sandbox-1.6.tar.lzma to /var/tmp/portage/sys-apps/sandbox-1.6-r2/work
* Applying sandbox-1.6-disable-qa-static.patch ... [ ok ]
* Applying sandbox-1.6-disable-pthread.patch ... [ ok ]
* Applying 0001-libsandbox-handle-more-at-functions.patch ... [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-apps/sandbox-1.6-r2/work
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6 ...
* Configuring sandbox for ABI=x86...
* econf: updating sandbox-1.6/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating sandbox-1.6/config.sub with /usr/share/gnuconfig/config.sub
../sandbox-1.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 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 i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/var/tmp/portage/sys-apps/sandbox-1.6-r2/work/build-x86':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/build-x86/config.log
*
* ERROR: sys-apps/sandbox-1.6-r2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2628: Called econf
* ebuild.sh, line 534: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-apps/sandbox-1.6-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-1.6-r2/temp/environment'.
*
* If configure failed with a 'cannot run C compiled programs' error, try this:
* FEATURES=-sandbox emerge sandbox


emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Xeon-R-_CPU_E5530_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 21 Jan 2010 08:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.0_p35
dev-lang/python: 2.6.4
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j9"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 apm automount bash-completion berkdb bzip2 c++ caps chroot cli colordiff cracklib crypt cups cxx dahdi dbus dnotify dri expat fam fortran gdbm gpm gtk hpn iconv inotify iproute2 jabber jfs kqemu kvm ldap logrotate mmx modules mudflap multilib mysql ncurses new-login newt nfs nls nptl nptlonly openmp pam pcre perl posix postgres pppd python quotas readline reflection samba session sftp slp snmp speex spl sse sse2 ssl sysfs syslog tcpd threads truetype unicode vde xattr xml 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 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" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


/var/tmp/portage/sys-apps/sandbox-1.6-r2/temp/build.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by sandbox configure 1.6, which was
generated by GNU Autoconf 2.63. Invocation command line was

$ ../sandbox-1.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

## --------- ##
## Platform. ##
## --------- ##

hostname = apollo
uname -m = x86_64
uname -r = 2.6.31-gentoo-r6
uname -s = Linux
uname -v = #1 SMP Mon Jan 18 00:40:16 EST 2010

/usr/bin/uname -p = Intel(R) Xeon(R) CPU E5530 @ 2.40GHz
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/lib/ccache/bin
PATH: /usr/lib64/portage/bin/ebuild-helpers
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2152: checking for a BSD-compatible install
configure:2220: result: /usr/bin/install -c
configure:2231: checking whether build environment is sane
configure:2274: result: yes
configure:2299: checking for a thread-safe mkdir -p
configure:2338: result: /bin/mkdir -p
configure:2351: checking for gawk
configure:2367: found /bin/gawk
configure:2378: result: gawk
configure:2389: checking whether make sets $(MAKE)
configure:2411: result: yes
configure:2614: checking for i686-pc-linux-gnu-gcc
configure:2641: result: x86_64-pc-linux-gnu-gcc -m32
configure:2913: checking for C compiler version
configure:2921: x86_64-pc-linux-gnu-gcc -m32 --version >&5
x86_64-pc-linux-gnu-gcc (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2925: $? = 0
configure:2932: x86_64-pc-linux-gnu-gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5)
configure:2936: $? = 0
configure:2943: x86_64-pc-linux-gnu-gcc -m32 -V >&5
x86_64-pc-linux-gnu-gcc: '-V' must come at the start of the command line
configure:2947: $? = 1
configure:2970: checking for C compiler default output file name
configure:2992: x86_64-pc-linux-gnu-gcc -m32 -march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr -Wl,-O1 conftest.c >&5
configure:2996: $? = 0
configure:3034: result: a.out
configure:3053: checking whether the C compiler works
configure:3063: ./a.out
../sandbox-1.6//configure: line 3065: ./a.out: cannot execute binary file
configure:3067: $? = 126
configure:3074: error: in `/var/tmp/portage/sys-apps/sandbox-1.6-r2/work/build-x86':
configure:3078: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=set
ac_cv_env_CC_value='x86_64-pc-linux-gnu-gcc -m32'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='x86_64-pc-linux-gnu-gcc -m32'
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6/missing --run aclocal-1.10'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6/missing --run autoheader'
AUTOM4TE=''
AUTOMAKE='${SHELL} /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6/missing --run automake-1.10'
AWK='gawk'
CC='x86_64-pc-linux-gnu-gcc -m32'
CCDEPMODE=''
CFLAGS='-march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr'
CFLAG_EXCEPTIONS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_LIBSIGSEGV_FALSE=''
HAVE_LIBSIGSEGV_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='x86_64-pc-linux-gnu-ld -m elf_i386'
LDFLAGS='-Wl,-O1'
LDFLAG_VER=''
LIBC_PATH=''
LIBDL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='sandbox'
PACKAGE_BUGREPORT='sandbox@gentoo.org'
PACKAGE_NAME='sandbox'
PACKAGE_STRING='sandbox 1.6'
PACKAGE_TARNAME='sandbox'
PACKAGE_VERSION='1.6'
PATH_SEPARATOR=':'
RANLIB=''
READELF=''
SANDBOX_DEFINES=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.6'
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='$(SHELL) /var/tmp/portage/sys-apps/sandbox-1.6-r2/work/sandbox-1.6/install-sh'
libdir='/usr/lib32'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
lt_ECHO='echo'
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "sandbox"
#define PACKAGE_TARNAME "sandbox"
#define PACKAGE_VERSION "1.6"
#define PACKAGE_STRING "sandbox 1.6"
#define PACKAGE_BUGREPORT "sandbox@gentoo.org"
#define PACKAGE "sandbox"
#define VERSION "1.6"
#define SANDBOX_CONFIGURE_OPTS "--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 build_alias=i686-pc-linux-gnu host_alias=i686-pc-linux-gnu CC=x86_64-pc-linux-gnu-gcc -m32 CFLAGS=-march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr LDFLAGS=-Wl,-O1 CPPFLAGS="

configure: exit 1
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Jan 21, 2010 6:53 pm    Post subject: Reply with quote

remove -fforce-addr - afaik that option is deprecated or not support at all anymore ...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
lissom
n00b
n00b


Joined: 29 Jan 2006
Posts: 18
Location: Stamford, CT, USA

PostPosted: Thu Jan 21, 2010 9:47 pm    Post subject: Reply with quote

kernelOfTruth wrote:
remove -fforce-addr - afaik that option is deprecated or not support at all anymore ...

tried that, didn't fix it.
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Thu Jan 21, 2010 10:29 pm    Post subject: Reply with quote

Make sure you have 32 bit compatibility and a.out enabled in your kernel.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum