Re: Problem in compiling kernel

Kevin J. Cummings (
Sat, 28 Sep 96 21:06 EDT

> I was trying to compile kernel 2.0.7, but it stopped with segmentation
> faulth at kernel.o
> Today, I tried with 1.3.28 and the same thing happened.
> I'm using 1.2.13, gcc 2.6.3, I face no problem in compiling 1.2.13 or
> 1.2.1 (the kernels I use).
> I've reinstalled gcc, but nothing improved. Why is this happening?

I thought you had to use gcc 2.7.2 to compile the 1.3.x kernels and beyond
(at least as of some particular 1.3.x release). This was about the time the
dev teams "abandoned" a.out for ELF in the "official" releases. I don't
remember the reasons why, but an optimization bug in gcc would seem to be the
most likely reason (either the optimizer seg faults like you are reporting,
or it would generate non-working code).