Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Emerging gcc-4.2.3 fails on amd64-linux
Date: Tue, 27 May 2008 08:41:49
Message-Id: 20080527084147.GB4362@gentoo.org
In Reply to: [gentoo-alt] Emerging gcc-4.2.3 fails on amd64-linux by Stefan Hoelldampf
1 First:
2 - what is your current compiler
3 - what gcc-config do you have installed
4 - what profile do you use
5 - which USE-flags for gcc do you use
6
7
8 On 26-05-2008 22:55:08 +0200, Stefan Hoelldampf wrote:
9 > Hi,
10 >
11 > I'm not able to emerge gcc-4.2.3 on amd64-linux (on RHEL4). It
12 > fails both during a bootstrap process and when re-emerging within an
13 > already existing installation. The problem seems to be located somewhere
14 > in the multilib area:
15 >
16 > The gcc-4.2.3/libstdc++v3/configure script, called within
17 > build/x86_64-pc-linux-gnu/32/libstdc++-v3, is setting "gcc_no_link" in
18 > line 2664 depending on the result of:
19 >
20 > > configure:2664: $EPREFIX/var/tmp/portage/sys-devel/gcc-4.2.3/work/build/./gcc/xgcc -B$EPREFIX/var/tmp/portage/sys-devel/gcc-4.2.3/work/build/./gcc/ -B$EPREFIX/usr/x86_64-pc-linux-gnu/bin/ -B$EPREFIX/usr/x86_64-pc-linux-gnu/lib/ -isystem $EPREFIX/usr/x86_64-pc-linux-gnu/include -isystem $EPREFIX/usr/x86_64-pc-linux-gnu/sys-include -m32 -o conftest conftest.c >&5
21 >
22 > Unfortunately, this fails with:
23 >
24 > > $EPREFIX/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible $EPREFIX/var/tmp/portage/sys-devel/gcc-4.2.3/work/build/./gcc/libgcc.a when searching for -lgcc
25 > > $EPREFIX/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
26 > > collect2: ld returned 1 exit status
27 > > configure:2667: $? = 1
28 >
29 > Due to this failed run, "gcc_no_link" is set to "yes".
30 >
31 > It's obvious that work/build/gcc/libgcc.a is incompatible due to 64bit,
32 > but work/build/gcc/32/libgcc.a has been created.
33 >
34 >
35 > Later on,
36 > > checking for ld that supports -Wl,--gc-sections...
37 > fails with
38 > > configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
39 > due to "gcc_no_link" set to "yes".
40 >
41 >
42 > Any hints are appreciated!
43 >
44 >
45 > Best regards,
46 > Stefan
47 >
48 > --
49 > gentoo-alt@l.g.o mailing list
50 >
51
52 --
53 Fabian Groffen
54 Gentoo on a different level
55 --
56 gentoo-alt@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] Emerging gcc-4.2.3 fails on amd64-linux Stefan Hoelldampf <stefan@××××××××××.net>