Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141463 - emerging sandbox fails: C compiler cannot create executables
Summary: emerging sandbox fails: C compiler cannot create executables
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-22 21:10 UTC by Patrick Hahn
Modified: 2006-07-23 10:24 UTC (History)
0 users

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


Attachments
config.log (config.log,7.62 KB, text/plain)
2006-07-22 21:11 UTC, Patrick Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Hahn 2006-07-22 21:10:44 UTC
Have tried sandbox-1.2.17 and 1.2.18, same error. Emerging with FEATURES=-sandbox and FEATURES='-sandbox', no change.

I searched on the keywords sandbox and executables, no results. Apologies if I missed and this is a dupe.

-snip-
$ sudo emerge sandbox
Calculating dependencies... done!

>>> Emerging (1 of 1) sys-apps/sandbox-1.2.17 to /
 * 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/sandbox-1.2.17/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/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
 * 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/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 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  sandbox-1.2.17.ebuild, line 84:   Called econf '--libdir=/usr/lib32' '--enable-multilib'
  ebuild.sh, line 541:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
-snip-

-snip emerge info-
# emerge --info
Portage 2.1.1_pre3-r3 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-beyond4 x86_64)
=================================================================
System uname: 2.6.16-beyond4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/break-my-gentoo-main /usr/portage/local/layman/science /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/break-my-gentoo-main /usr/portage/local/layman/science /usr/portage/local/layman/gentoo-de"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa avi bash-completion berkdb bitmap-fonts bzip2 cjk cli crosscompile crypt cups dlloader doc dri dts eds emboss encode exif expat fam fastcgi firefox flac font-server foomaticdb fortran fuse gdbm gif gimp glep glut gnome gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms lm_sensors lzw lzw-tiff mad mng motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly ntfs nvidia ogg oggvorbis opengl oss pam pcre pdf pdflib perl pic png postgres pppd python qt qt3 qt4 quicktime readline realtcgi reflection ruby samba sdl session silc slang sox spell spl sqlite ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 vorbis xinerama xml2 xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
-snip-
Comment 1 Patrick Hahn 2006-07-22 21:11:36 UTC
Created attachment 92531 [details]
config.log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-23 02:17:07 UTC
I don't see what are you trying to do here, but your emerge --info doesn't match the config.log

> /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/bin/ld: >crt1.o: No such file: No such file or directory

> Portage 2.1.1_pre3-r3 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r3

Upgrade your gcc properly next time - http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 3 Patrick Hahn 2006-07-23 09:50:22 UTC
I'm not doing anything special and I haven't upgraded gcc on this box. Its still 3.4.6. 

For some reason, the sandbox build process and only the sandbox build process thinks my machine is i686. I had installed crossdev previously and perhaps it is picking up on that but still it is only the sandbox ebuild. I have no problems building any other packages. 

 * Configuring sandbox for ABI=x86...

I don't know anything about the intricacies of the build process but clearly this isn't correct. Setting ABI=amd64 in make.conf didn't change this. 

Again, this behavior only occurs when emerging sandbox. All other packages build and merge fine. 

I'm reopening the bug because I believe that there is still a bug somewhere that is specific to this ebuild. 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-07-23 09:58:48 UTC
(In reply to comment #3)
> I'm not doing anything special and I haven't upgraded gcc on this box. Its
> still 3.4.6. 

Read the config log... It's clearly using gcc-4.1.0 paths, so you have/had that gcc version installed and didn't run fix_libtool_fixes.sh or whatever -> your system is apparently screwed. Run fix_libtool_fixes.sh 4.1.0; emerge -1 libtool and try again.
Comment 5 Patrick Hahn 2006-07-23 10:24:16 UTC
I assume you meant fix_libtool_files.sh. I ran that, it scanned 27/27 directories and didn't output that it had found anything. This didn't fix the sandbox issue, but your mention of 4.1.0 paths made me check gcc-config and apparently crossdev installed gcc-4.1.0 as a cross compiler. Setting my cross-compiler to i686-pc-linux-gnu-3.4.5 and emerging fixed the sandbox bug. 

Should the ebuild be listening to the cross-compiler's setup over the system compiler's setup? This seems counter intuitive to me, especially if you needed a 4.1.0 cross compiler but a 3.5 local compiler. Why does this only appear in the sandbox build?

Thanks very much for your help, I never would have figured it out on my own. :)