Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255341 - sys-apps/sandbox-1.2.18.1-r2 emerge fails when sys-devel/crossdev installed on amd64
Summary: sys-apps/sandbox-1.2.18.1-r2 emerge fails when sys-devel/crossdev installed o...
Status: RESOLVED DUPLICATE of bug 202811
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-18 04:01 UTC by Owen Mann
Modified: 2009-01-20 23:34 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log (config.log,7.90 KB, text/plain)
2009-01-18 04:45 UTC, Owen Mann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Mann 2009-01-18 04:01:33 UTC
ref. bugs 133209 & 135688.
configure finds first and uses crossdev gcc for the "* Building sandbox for ABI=x86..." portion. This runs before the ABI=amd64 side, so the emerge fails almost immediately.
Renaming the crossdev gcc (/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.1.2/i686-pc-linux-gnu-gcc) allows the emerge to succeed.
Another workaround is: CC=x86_64-pc-linux-gnu-gcc emerge sandbox



Reproducible: Always

Steps to Reproduce:
1. gentoo on amd64
2. emerge crossdev, build a 32-bit toolchain
3. emerge sandbox

Actual Results:  
build ~ # emerge -v sys-apps/sandbox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/sandbox-1.2.18.1-r2 [1.2.17] 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-apps/sandbox-1.2.18.1-r2 to /
 * 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/sys-apps/sandbox-1.2.18.1-r2/work
 * Applying sandbox-1.2.18.1-open-normal-fail.patch ...                                                                               [ ok ] * Applying sandbox-1.2.18.1-open-cloexec.patch ...                                                                                   [ ok ]>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/sandbox-1.2.18.1 ...
 * 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.18.1/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess
../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... /usr/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.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log

!!! ERROR: sys-apps/sandbox-1.2.18.1-r2 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  sandbox-1.2.18.1-r2.ebuild, line 87:   Called econf '--libdir=/usr/lib32' '--enable-multilib'
  ebuild.sh, line 578:   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.18.1-r2/temp/build.log'.


Expected Results:  
successful ebuild

icecc & distcc are installed but disabled.

build ~ # emerge --info
Portage 2.1.2.9 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-gentoo-r8-3 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8-3 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 17 Jan 2009 10:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.16.1-r3, 2.17
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks keepwork metadata-transfer noinfo parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j -l3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://portage/gentoo-portage"
USE="amd64 apache2 bash-completion bzip2 cli glibc-omitfp gpm mad mmx multilib multislot multitarget ncurses no-old-linux nocxx nosendmail nptl nptlonly pcre perl readline session spl sse sse2 udev zlib" ELIBC="glibc" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Owen Mann 2009-01-18 04:45:28 UTC
Created attachment 178856 [details]
/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log
Comment 2 Owen Mann 2009-01-18 05:03:09 UTC
One other thing - this machine has never had eselect-compiler installed and I'm not doing cross-dev, and I'd like to work thru the bug and am willing to spend the time trying things and reporting back with logs and etc as necessary to do so (ref: Bug 133209 comment #48).

build ~ # binutils-config -l
 [1] amd64-pc-linux-uclibc-2.17 *

 [2] i386-pc-linux-gnu-2.17 *

 [3] i586-pc-linux-gnu-2.17 *

 [4] i686-pc-linux-gnu-2.17
 [5] i686-pc-linux-gnu-2.19 *

 [6] i686-pc-linux-uclibc-2.17 *

 [7] x86_64-pc-linux-gnu-2.16.1
 [8] x86_64-pc-linux-gnu-2.17 *

 [9] x86_64-pc-linux-uclibc-2.17 *
Comment 3 Wormo (RETIRED) gentoo-dev 2009-01-20 05:52:01 UTC
Could you try building the ~amd64 sandbox and see if it has the same problem? I don't have a 686 toolchain installed here, but from reading the ebuilds it looks like 1.3 ebuilds should work better.
Comment 4 Owen Mann 2009-01-20 06:27:27 UTC
Hmm, I can't emerge anything with .lzma patches (including sys-apps/sandbox-1.3.2), and I'm guessing its because I need to be on a newer portage, but portage depends on sandbox.
I'm caught in the middle trying to upgrade my profile from amd64-2007.0 to amd64-2008.0 What do you suggest? Emerge using a workaround, then see if I can build the newer ~amd64 version?
Comment 5 SpanKY gentoo-dev 2009-01-20 23:34:49 UTC

*** This bug has been marked as a duplicate of bug 202811 ***