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
First:
- what is your current compiler
- what gcc-config do you have installed
- what profile do you use
- which USE-flags for gcc do you use


On 26-05-2008 22:55:08 +0200, Stefan Hoelldampf wrote:
> Hi, > > I'm not able to emerge gcc-4.2.3 on amd64-linux (on RHEL4). It > fails both during a bootstrap process and when re-emerging within an > already existing installation. The problem seems to be located somewhere > in the multilib area: > > The gcc-4.2.3/libstdc++v3/configure script, called within > build/x86_64-pc-linux-gnu/32/libstdc++-v3, is setting "gcc_no_link" in > line 2664 depending on the result of: > > > 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 > > Unfortunately, this fails with: > > > $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 > > $EPREFIX/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc > > collect2: ld returned 1 exit status > > configure:2667: $? = 1 > > Due to this failed run, "gcc_no_link" is set to "yes". > > It's obvious that work/build/gcc/libgcc.a is incompatible due to 64bit, > but work/build/gcc/32/libgcc.a has been created. > > > Later on, > > checking for ld that supports -Wl,--gc-sections... > fails with > > configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. > due to "gcc_no_link" set to "yes". > > > Any hints are appreciated! > > > Best regards, > Stefan > > -- > gentoo-alt@l.g.o mailing list >
-- Fabian Groffen Gentoo on a different level -- 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>