Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166442 - emerge sandbox complains about c compiler not beeing able to create executables
Summary: emerge sandbox complains about c compiler not beeing able to 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: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 00:17 UTC by Philipp Strube
Modified: 2007-02-12 01:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Strube 2007-02-12 00:17:55 UTC
>>> Emerging (1 of 1) sys-apps/sandbox-1.2.17 to /
 * sandbox-1.2.17.tar.bz2 MD5 ;-) ...                                                                                                                  [ ok ]
 * sandbox-1.2.17.tar.bz2 RMD160 ;-) ...                                                                                                               [ ok ]
 * sandbox-1.2.17.tar.bz2 SHA1 ;-) ...                                                                                                                 [ ok ]
 * sandbox-1.2.17.tar.bz2 SHA256 ;-) ...                                                                                                               [ ok ]
 * sandbox-1.2.17.tar.bz2 size ;-) ...                                                                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking sandbox-1.2.17.tar.bz2 ;-) ...                                                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking sandbox-1.2.17.tar.bz2 to /var/tmp/portage/sys-apps/sandbox-1.2.17/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.2.17/work/sandbox-1.2.17 ...
 * 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.17/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating sandbox-1.2.17/config.sub with /usr/share/gnuconfig/config.sub
../sandbox-1.2.17//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/sys-apps/sandbox-1.2.17/work/build-x86-x86_64-pc-linux-gnu/config.log

!!! ERROR: sys-apps/sandbox-1.2.17 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3288:   Called src_compile
  sandbox-1.2.17.ebuild, line 84:   Called econf '--libdir=/usr/lib32' '--enable-multilib'
  ebuild.sh, line 577:   Called die

!!! 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.2.17/temp/build.log'.


Reproducible: Always

Steps to Reproduce:
1.emerge sandbox




I do not know if this is really a bug or my own fault. So you are welcome to blame me, if you have any suggestion how to fix this would be great anyway.
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2007-02-12 00:19:29 UTC

*** This bug has been marked as a duplicate of bug 133209 ***
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2007-02-12 00:32:05 UTC
looks like you didn't enable IA32 emulation in your kernel config, which you absolutely should. See http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#kernel
Comment 3 Philipp Strube 2007-02-12 01:40:20 UTC
The bug you found as a duplicate and the suggestions therein worked for me. Thanks a lot. I don't know why I didn't find that one when i was searching bugzilla before posting. I really did! :-)

Well just for your information:

I do have ia32emulation in my kernel. Actually I have no problems with executing 32bit binaries. Whethere it is mplayer-bin, firefox-bin or a game like quake4. I just today tried to switch my CFLAGS to the ones which now are suggested in the gentoo amd64 document you linked. And the emerge -e world stopped because of said sandbox error. Actually all the other ebuild worked fine. I even recompiled ggc and glibc with the new CFLAGS already. Just in case...

logon linux # cat /usr/src/linux-2.6.18-gentoo-r4/.config |grep IA32
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y

Thanks a lot again for helping me.