Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: "Stefan Hoelldampf" <stefan@...>
Subject: Re: Emerging gcc-4.2.3 fails on amd64-linux
Date: Tue, 27 May 2008 17:26:14 +0200 (CEST)
On Tue, May 27, 2008 14:30, Fabian Groffen wrote:

>> $ rpm -qf /usr/bin/gcc
>> gcc-3.4.6-9 # RHEL4 system compiler
>
> I assume RHEL is a multilib system, is it?

Right, RHEL4 x86_64 is a multilib system.

>> $ emerge -p gcc-config
>> [ebuild   R   ] sys-devel/gcc-config-1.4.0-r04.3
>
> Can you list ${EPREFIX}/lib/libgcc_s* please?

$ ls -1 $EPREFIX/lib/libgcc_s.so*
$EPREFIX/lib/libgcc_s.so
$EPREFIX/lib/libgcc_s.so.1

$ file $EPREFIX/lib/libgcc_s.so*
$FILE/lib/libgcc_s.so:   ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, stripped
$EPREFIX/lib/libgcc_s.so.1: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, stripped

> Multilib indeed seems to be the problem, but the question is why it
> finds the wrong lib.  This can also be related to the linker (binutils)
> looking in wrong paths or something.

It does not seem to depend on the linker in $EPREFIX. Bootstrapping gcc
without emerging binutils lets it fail in the same way:

/usr/bin/ld: skipping incompatible
$EPREFIX/var/tmp/portage/sys-devel/gcc-4.2.3/work/build/./gcc/libgcc.a
when searching for -lgcc
/usr/bin/ld: cannot find -lgcc

So the system linker /usr/bin/ld is used in this case.

Best regards,
Stefan
-- 
gentoo-alt@g.o mailing list


References:
Emerging gcc-4.2.3 fails on amd64-linux
-- Stefan Hoelldampf
Re: Emerging gcc-4.2.3 fails on amd64-linux
-- Fabian Groffen
Re: Emerging gcc-4.2.3 fails on amd64-linux
-- Stefan Hoelldampf
Re: Emerging gcc-4.2.3 fails on amd64-linux
-- Fabian Groffen
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Emerging gcc-4.2.3 fails on amd64-linux
Next by thread:
Re: Emerging gcc-4.2.3 fails on amd64-linux
Previous by date:
Re: Emerging gcc-4.2.3 fails on amd64-linux
Next by date:
Re: [PREFIX] Problem compiling libperl on Solaris 11


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.