public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] emerge sandbox is using the wrong host id
@ 2006-09-26 11:18 Peter Humphrey
  2006-09-26 12:17 ` Simon Stelling
  2006-09-26 12:20 ` [gentoo-amd64] " Duncan
  0 siblings, 2 replies; 10+ messages in thread
From: Peter Humphrey @ 2006-09-26 11:18 UTC (permalink / raw
  To: gentoo-amd64

Well, I decided to forge ahead while I still have the steam. I'm upgrading 
GCC from 3.4.4 to 4.1.1-r1.

I followed the instructions thus:

# emerge -uav gcc
# gcc-config i686-pc-linux-gnu-4.1.1
# source /etc/profile
# fix_libtool_files.sh 3.4.4
# emerge --oneshot -av libtool

I then decided, before emerging -e system and risking confusion of GCC 
versions as before, to remove 3.4.4 and emerge libtool again to check that 
the compiler works ok. That went without a problem, so I do have a working 
4.1.1 compiler.

Now, during emerge -e system, emerge of sandbox (the ninth package of 114) 
falls over with the dreaded "C compiler cannot create executables". I 
followed its own advice and ran:
FEATURES="-sandbox" emerge sandbox
which failed at the same point. Here are some extracts 
from /var/tmp/portage/sandbox-1.2.18.1/work/build-x86-x86_64-pc-linux-gnu/config.log:

Invocation command line was
$ ../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-multili
b --build=i686-pc-linux-gnu

Note the "--host=i686-pc-linux-gnu". I think that's wrong: it should 
say "--host=x86_64-pc-linux-gnu", no? Continuing the log extract:

configure:1533: checking for a BSD-compatible install
configure:1588: result: /bin/install -c
configure:1599: checking whether build environment is sane
configure:1642: result: yes
configure:1707: checking for gawk
configure:1723: found /bin/gawk
configure:1733: result: gawk
configure:1743: checking whether make sets $(MAKE)
configure:1763: result: yes
configure:1942: checking for i686-pc-linux-gnu-gcc
configure:1958: found /usr/bin/i686-pc-linux-gnu-gcc
configure:1968: result: i686-pc-linux-gnu-gcc
configure:2250: checking for C compiler version
configure:2253: i686-pc-linux-gnu-gcc --version </dev/null >&5
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which 
compiler to use.  Invalid CTARGET or CTARGET has no selected profile.

Indeed, issuing commands manually I get this:

$ i686-pc-linux-gnu-gcc --version
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which 
compiler to use.  Invalid CTARGET or CTARGET has no selected profile.
$ which i686-pc-linux-gnu-gcc
/usr/bin/i686-pc-linux-gnu-gcc
$ eselect compiler list
Available compilers for CTARGET i686-pc-linux-gnu
  [1]   x86_64-pc-linux-gnu-4.1.1/x86-vanilla
Available compilers for CTARGET x86_64-pc-linux-gnu
  [2]   x86_64-pc-linux-gnu-4.1.1/amd64-vanilla

Activated profiles:
[null]
$ x86_64-pc-linux-gnu-gcc --version
x86_64-pc-linux-gnu-gcc (GCC) 4.1.1 (Gentoo 4.1.1-r1)
[...copyright notice...]

[End of log extracts]

Other packages are compiling as I write, having got to package 38 of 105, so 
the environment is broadly correct.

Anyone any ideas?

-- 
Rgds
Peter
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-09-27 14:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 11:18 [gentoo-amd64] emerge sandbox is using the wrong host id Peter Humphrey
2006-09-26 12:17 ` Simon Stelling
2006-09-26 22:23   ` Peter Humphrey
2006-09-26 12:20 ` [gentoo-amd64] " Duncan
2006-09-26 12:29   ` Simon Stelling
2006-09-26 22:40   ` Peter Humphrey
2006-09-27 12:21   ` Peter Humphrey
2006-09-27 13:49     ` Duncan
2006-09-27 14:01       ` Peter Humphrey
2006-09-27 14:50         ` Peter Humphrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox