Re: Building the kernel with gcc 7.0

David Mosberger-Tang (davidm@cs.arizona.edu)
Tue, 4 Jul 1995 22:33:22 -0700


>>>>> On Mon, 3 Jul 1995 14:53:32 +1000 (EST), "Matthew Geier" <matthew@staff.cs.su.oz.au> said:

Matthew> On my noname, with gcc 2.7.0,the ncr scsi driver will not
Matthew> compile. First it compilains about preprocessor directives
Matthew> in macros being illegal, and then latter dies with Syntax
Matthew> errors.. ( Probably cause by the improper treatment of the
Matthew> #ifdef 0 complained about earlier.

I just built a kernel with the gcc-2.7.0 tools distributed by Bob and
it worked for me (just be sure to include the line ".set singlegp" in
entry.S---the kernel will crash otherwise). Stripping the kernel
doesn't work properly (it changes OMAGIC into ZMAGIC!) but booting an
unstripped kernel works just fine.

--david