This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: segmentation fault


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]