This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Built gcc 4.0.0, without C++ support
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: Jeroen Scheerder <Jeroen dot Scheerder at phil dot uu dot nl>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, Julian Brown <julian at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: Mon, 11 Jul 2005 14:03:58 +0200 (MEST)
- Subject: Re: Built gcc 4.0.0, without C++ support
- References: <20050423163306.GA11309@phil.uu.nl><Pine.LNX.4.61.0504231637440.29767@digraph.polyomino.org.uk><20050423190006.GA10138@phil.uu.nl><yddd5sjf8vx.fsf@xayide.TechFak.Uni-Bielefeld.DE><p06110408bef7df47fce5@[10.0.0.6]>
Jeroen Scheerder writes:
> Rainer Orth (25/4/05 12:28 +0200) [Re: Built gcc 4.0.0, without C++
> support]:
>
> >> Partial success only. I think I'll be able to build it without C++
> >> support, but compilation per your instruction does choke on
> >>libstdc++.so.6.0.4.
> >
> >I've had the same problem and think I know what's going on.
>
> [...]
>
> >So obviously Sun ld doesn't have the necessary support for COMDAT groups
> >(even with GNU ld, a quite recent version seems to be required).
> >Unfortunately, gcc's configure.ac doesn't check for this, but should.
>
> FWIW, I just started building gcc 4.0.1, and ran into this problem once
> again; and setting HAVE_GAS_COMDAT_GROUP to 0 in gcc/auto-host.h seems
> once again to be a valid workaround.
I think this was fixed on mainline by this patch (or a slightly modified
version actually committed):
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00540.html
It should probably be backported to the 4.0 branch.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University