Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149162 - emerge sandbox gives configure: error: C compiler cannot create executables
Summary: emerge sandbox gives configure: error: C compiler cannot create executables
Status: RESOLVED DUPLICATE of bug 133209
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 164739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-26 04:22 UTC by Ramana Kumar
Modified: 2007-01-31 19:11 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/sandbox-1.2.18.1/work/build-x86-x86_64-pc-linux-gnu/config.log (config.log,6.49 KB, text/plain)
2006-09-26 04:42 UTC, Ramana Kumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ramana Kumar 2006-09-26 04:22:18 UTC
FEATURES=-sandbox emerge sandbox
Calculating dependencies... done!

>>> Emerging (1 of 1) sys-apps/sandbox-1.2.18.1 to /
 * sandbox-1.2.18.1.tar.bz2 MD5 ;-) ...                                                                                                               [ ok ]
 * sandbox-1.2.18.1.tar.bz2 RMD160 ;-) ...                                                                                                            [ ok ]
 * sandbox-1.2.18.1.tar.bz2 SHA1 ;-) ...                                                                                                              [ ok ]
 * sandbox-1.2.18.1.tar.bz2 SHA256 ;-) ...                                                                                                            [ ok ]
 * sandbox-1.2.18.1.tar.bz2 size ;-) ...                                                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking sandbox-1.2.18.1.tar.bz2 ;-) ...                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking sandbox-1.2.18.1.tar.bz2 to /var/tmp/portage/sandbox-1.2.18.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sandbox-1.2.18.1/work/sandbox-1.2.18.1 ...
 * If configure fails with a 'cannot run C compiled programs' error, try this:
 * FEATURES=-sandbox emerge sandbox
!!! Problem with sandbox binary. Disabling...

 * Configuring sandbox for ABI=x86...
 * econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating sandbox-1.2.18.1/config.sub with /usr/share/gnuconfig/config.sub
../sandbox-1.2.18.1//configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --enable-multilib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sandbox-1.2.18.1/work/build-x86-x86_64-pc-linux-gnu/config.log

!!! ERROR: sys-apps/sandbox-1.2.18.1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  sandbox-1.2.18.1.ebuild, line 83:   Called econf '--libdir=/usr/lib32' '--enable-multilib'
  ebuild.sh, line 539:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-09-26 04:25:01 UTC
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!!
/var/tmp/portage/sandbox-1.2.18.1/work/build-x86-x86_64-pc-linux-gnu/config.log
Comment 2 Ramana Kumar 2006-09-26 04:42:17 UTC
Created attachment 98111 [details]
/var/tmp/portage/sandbox-1.2.18.1/work/build-x86-x86_64-pc-linux-gnu/config.log

sorry - here it is =)
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-09-26 04:47:31 UTC
what's the output of "zgrep IA32 /proc/config.gz"? I bet you didn't compile your kernel with 32bit emulation.
Comment 4 Ramana Kumar 2006-09-26 04:57:46 UTC
grep IA32 /usr/src/linux/.config
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y

does that look ok? 
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2006-09-26 05:13:50 UTC
yes it is correct.. looking at the log:

configure:2253: i686-pc-linux-gnu-gcc --version </dev/null >&5
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Unable to determine executable.

There are two possibilities:

a) You are using eselect-compiler and/or >=gcc-config-2.0. They are masked because of bugs, I assume you have it unmasked locally. You should remove eselect-compiler and downgrade to =gcc-config-1.3*

b) You have a cross-compiler installed. this is bug 133209, the workaround is to unmerge it.

*** This bug has been marked as a duplicate of 133209 ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-01-31 19:11:31 UTC
*** Bug 164739 has been marked as a duplicate of this bug. ***