[oe] GCC 4.3 fails to build glibc(-intermediate)

Khem Raj raj.khem at gmail.com
Wed May 28 07:01:48 UTC 2008


On Thu, 2008-05-22 at 16:11 +0200, Enric Balletbò i Serra wrote:
> Hi,
> 
> I have the same problem, but at this moment I don't have idea about solution.

I could reproduce this problem as well. I also tried to reduce the
issue. It is an ICE in GCC and I have made a small testcase which I am
able to reproduce on gcc-4_3-branch I have reported a gcc bug(PR36350)
for it  Meanwhile you can remove -frename-registers optimization pass
and ICE should go away.

Something like this might work around for glibc

Index: libc/iconv/Makefile
===================================================================
--- libc.orig/iconv/Makefile	2008-05-27 23:50:05.000000000 -0700
+++ libc/iconv/Makefile	2008-05-27 23:54:43.000000000 -0700
@@ -38,6 +38,8 @@
 CFLAGS-gconv_simple.c = -DSTATIC_GCONV
 endif
 
+CFLAGS-gconv_simple.c += -fno-rename-registers
+
 vpath %.c ../locale/programs ../intl
 
 iconv_prog-modules = iconv_charmap charmap charmap-dir linereader \


Thanks

-Khem

> 
> Regards,
>  Enric Balletbo i Serra
> 
> On Wed, May 7, 2008 at 7:33 AM, Matthijs van de Water
> matthijs.van.de.water at gmail.com wrote:
> 
> > Hi,
> >
> > I'm trying to get an ARM EABI build based on gcc 4.3 working. I'm not
> > having much luck with that so-far.
> >
> > The build fails at glibc-internal (tried both 2.6.1 and 2.7) with an
> > internal compiler error:
> > ../iconv/skeleton.c: In function '__gconv_transform_ucs4_internal':
> > ../iconv/skeleton.c:801: internal compiler error: Segmentation fault
> >
> > Am I missing something? Any ideas?
> >
> > Regards,
> >
> > Matthijs van de Water
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
> 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20080528/95b7db20/attachment-0002.sig>


More information about the Openembedded-devel mailing list