Re: Can't compile kernel -Fixed

Linus Torvalds (Linus.Torvalds@cs.Helsinki.FI)
Thu, 27 Jul 1995 09:07:44 +0300

Gunnar Horrigmo: "Re: Can't compile kernel -Fixed" (Jul 25, 12:45):
> First of all; thanks to everyone that replied, some of you hit the nail on
> the spot, but as quite a few didn't I thought the solution might be of some
> public interrest.
> Anyway; the only thing that had to be done was to compile the kernel as ELF.
> This choice was marked no by default, and there was no reference as I could
> find that warned against non-elfing the 1.3.11 kernel with gcc 2.7.0. I guess
> Linus would save non-gurus a lot of bother by noting it in the README, or
> making the option 'yes' by default.

I suspect there is something broken in the ELF compilers in that case: I
certainly do _not_ compile as ELF, and I've been using various versions
of gcc to compile the 1.3.x source trees. If you get a "impossible
register spill", it's a gcc bug and just saying "compile it as ELF" is
not the fix, just a work-around.

(you can get impossible register spills from bad __asm__ statements, but
the ones in the linux kernel should be perfectly all right.)