Lars Kellogg-Stedman wrote:
> 
> Howdy,
> 
> I'm trying to build a kernel on my Sparcstation 2:
> 
>   Linux 2.2.5 (RH 6.0)
>   egcs-2.91.66 (egcs-1.1.2-13)
> 
> While trying to compile 'linear.c' as a module, I'm seeing the following
> error:
> 
>   gcc -D__KERNEL__ -I/usr/src/linux-2.2.10/include -Wall -Wstrict-prototypes
>   -O2 -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
>   -DMODULE -DMODVERSIONS -include
>   /usr/src/linux-2.2.10/include/linux/modversions.h   -c -o linear.o linear.c
>   gcc: Internal compiler error: program cpp got fatal signal 11
>   make[2]: *** [linear.o] Error 1
>   make[2]: Leaving directory `/usr/src/linux-2.2.10/drivers/block'
> 
> If anyone else has run into this problem and found a solution I'd love to
> hear about it.  Alternately, any suggestions (upgrade compiler?
> downgrade?) would be appreciated.

I had this problem with an older egcs on an Alpha.  What I did was
took out the "-O2" option for just the one file.  Try compliling
linear.c by hand with O2 turned off.  If it works then re-run the
make

I have also seen gcc fail this way because of faulty RAM. but this
is normally random.  Marginal RAM would cause random seg faults

-- 
  Chris Albertson

  [EMAIL PROTECTED]                  Voice: 626-351-0089  X127
  Logicon, Pasadena California            Fax:   626-351-0699
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of the message to [EMAIL PROTECTED]

Reply via email to