Hi everybody, I am trying to compile a 2.0.38 kernel (because the atp870a driver for the Acard SCSI card is broken after 2.2 and I read claims that it worked at the time of 2.0 kernels) By the way, comments and info on this are welcome!
I grabbed the gcc272 package, issued a make xconfig, changed the Makefile to use gcc 2.72 and then "make bzImage". Compilation fails as follows: gcc272 -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o init/main.o init/main.c In file included from /usr/include/asm/processor.h:19, from /usr/include/linux/prefetch.h:13, from /usr/include/linux/list.h:6, from /usr/include/asm/rwsem.h:41, from /usr/include/linux/rwsem.h:27, from /usr/include/asm/semaphore.h:42, from /usr/src/linux/include/linux/sched.h:22, from /usr/include/linux/vmalloc.h:4, from /usr/include/asm/io.h:46, from init/main.c:15: /usr/include/linux/threads.h:12: warning: `NR_CPUS' redefined [...] In file included from /usr/include/linux/rwsem.h:27, from /usr/include/asm/semaphore.h:42, from /usr/src/linux/include/linux/sched.h:22, from /usr/include/linux/vmalloc.h:4, from /usr/include/asm/io.h:46, from init/main.c:15: /usr/include/asm/rwsem.h:47: parse error before `(' /usr/include/asm/rwsem.h:48: parse error before `(' /usr/include/asm/rwsem.h:49: parse error before `(' /usr/include/asm/rwsem.h: In function `__down_read': /usr/include/asm/rwsem.h:120: output operand constraint contains `+' [...] In file included from /usr/src/linux/include/linux/string.h:39, from /usr/src/linux/include/linux/mm.h:10, from /usr/include/linux/vmalloc.h:5, from /usr/include/asm/io.h:46, from init/main.c:15: /usr/include/asm/string.h:48: warning: static declaration for `strncpy' follows non-static /usr/include/asm/string.h:67: warning: static declaration for `strcat' follows non-static /usr/include/asm/string.h:84: warning: static declaration for `strncat' follows non-static /usr/include/asm/string.h:128: warning: static declaration for `strncmp' follows non-static /usr/include/asm/string.h:151: warning: static declaration for `strchr' follows non-static /usr/include/asm/string.h:170: warning: static declaration for `strrchr' follows non-static /usr/include/asm/string.h:346: warning: static declaration for `memmove' follows non-static /usr/include/asm/string.h:429: warning: static declaration for `strnlen' follows non-static /usr/include/asm/string.h:516: warning: static declaration for `memscan' follows non-static [...] init/main.c:946: void value not ignored as it ought to be init/main.c: In function `init': init/main.c:1094: warning: implicit declaration of function `setup' make: *** [init/main.o] Error 1 (I can post the full log if you need to see it.) Ok, so can anyone guess what's wrong? What other changes do I need to make except grabbing gcc272? My standard gcc compiler is gcc2.95, I am thinking of things like glibc for gcc2.95 not being backward compatible and similar issues... Can anyone help? thanks a lot, matteo --------------- Matteo Semplice Wadham College Oxford - UK -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]