Was reported here that by using this kgcc in /usr/src/linux/Makefile HOSTCC = gcc is the solution for the error ... cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-fr ame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops= 2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o extable.o extable.c rm -f mm.o ld -m elf_i386 -r -o mm.o init.o fault.o ioremap.o extable.o make[2]: Leaving directory `/usr/src/linux/arch/i386/mm' make[1]: Leaving directory `/usr/src/linux/arch/i386/mm' make -C arch/i386/lib make[1]: Entering directory `/usr/src/linux/arch/i386/lib' make all_targets make[2]: Entering directory `/usr/src/linux/arch/i386/lib' cc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__ -traditional -c checksu m.S -o checksum.o checksum.S:231: badly punctuated parameter list in #define checksum.S:237: badly punctuated parameter list in #define make[2]: *** [checksum.o] Error 1 make[2]: Leaving directory `/usr/src/linux/arch/i386/lib' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux/arch/i386/lib' make: *** [_dir_arch/i386/lib] Error 2 I did this in a fresh new sources tree of 2.2.17 and 2.2.18-pre14 and the error was the same... How about a downgrade of gcc ?
Just set CC to kgcc, like this export CC=kgcc make dep clean bzImage ...
Well, I get the same error msg and as a result get no bzImage -- with or without the "export CC=kgcc" before the make.
Aha. Found the problem! I really did forget to do the 'make mrproper' first! So with makr mrproper and 'export CC=kgcc', the kernel compiled just fine (thank you!) and the outcome was the bzImage file I wanted. Yippee! Thanks again.