This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: segmentation fault
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: fred dot cotton at oasincorp dot com, gcc-help at gcc dot gnu dot org
- Date: Tue, 5 Jun 2007 16:56:00 +0100
- Subject: Re: segmentation fault
- References: <20070605114929.9oalrlftyfc0gwkg@webmail1.covadhosting.biz> <18021.34555.407312.109835@zebedee.pink>
Andrew Haley writes:
> Redirected to gcc-help.
>
> fred.cotton@oasincorp.com writes:
> > With apologies for being new:
> > In porting a hardware configuration from gcc-3.4.1 to gcc-4.2.0, I'm getting the
> > following error message:
> >
> > In file included from /cygdrive/c/gcc-4.2.0/gcc/crtstuff.c:68:
> > /cygdrive/c/gcc-4.2.0/gcc/tsystem.h:53: internal compiler error: Segmentation
> > fault.
> >
> > Lines 52-54 of tsystem.h are:
> >
> > #ifndef malloc
> > extern void *malloc (size_t);
> > #endif
> >
> > If I remove these lines, all the other extern statements fail also.
> > What precisely does Segmentation fault mean in this context? Is it referring to
> > the underlying Windows XP?
> > What sort of compiler, configuration or operating system parameters could be the
> > cause?
> > Where should I be looking?
>
> Your gcc-4.2.0 is broken. You need to look at exactly how it was
> built. Did you build it yourself from source?
Or, does this perhaps happen when you are building gcc-4.2.0 with gcc-3.4.1?
Andrew.