Caught GCC 3.2.1R6 while snagging a few things overnight, and noticed that my kernel builds would quickly die. Backed out to 3.2.1 and all works again. Output from (cd /usr/src/linux) 'make > make.out 2>&1': . scripts/mkversion > .tmpversion gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon " -C hpc make[1]: Entering directory `/usr/src/linux-2.4.20-openmosix-r1/hpc' make all_targets make[2]: Entering directory `/usr/src/linux-2.4.20-openmosix-r1/hpc' gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=auto_syscalls -c -o auto_syscalls.o auto_syscalls.c In file included from /usr/src/linux-2.4.20-openmosix-r1/include/linux/wait.h:13, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/fs.h:12, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/capability.h:17, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/binfmts.h:5, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/sched.h:9, from auto_syscalls.c:4: /usr/src/linux-2.4.20-openmosix-r1/include/linux/kernel.h:10:20: stdarg.h: No such file or directory In file included from /usr/src/linux-2.4.20-openmosix-r1/include/linux/wait.h:13, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/fs.h:12, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/capability.h:17, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/binfmts.h:5, from /usr/src/linux-2.4.20-openmosix-r1/include/linux/sched.h:9, from auto_syscalls.c:4: /usr/src/linux-2.4.20-openmosix-r1/include/linux/kernel.h:74: parse error before "va_list" /usr/src/linux-2.4.20-openmosix-r1/include/linux/kernel.h:74: warning: function declaration isn't a prototype /usr/src/linux-2.4.20-openmosix-r1/include/linux/kernel.h:77: parse error before "va_list" /usr/src/linux-2.4.20-openmosix-r1/include/linux/kernel.h:77: warning: function declaration isn't a prototype /usr/src/linux-2.4.20-openmosix-r1/include/linux/kernel.h:81: parse error before "va_list" /usr/src/linux-2.4.20-openmosix-r1/include/linux/kernel.h:81: warning: function declaration isn't a prototype make[2]: *** [auto_syscalls.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.20-openmosix-r1/hpc' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.20-openmosix-r1/hpc' make: *** [_dir_hpc] Error 2
cd into /usr/src/linux then make mrproper and then show me the steps you're using to compile. Also, is this a new install? eg. did you just emerge system and then proceed onto compiling the kernel? You may have to log out and then back in.
I refetched gcc 3.2.1-r6 this afternoon, noticed it pulled down a new patch, and now cannot reproduce the problem. FWIW - I had completely rebooted the system while doing my original problem diagnostics. I had rerun "make dep", tried a variety of kernel options, etc. Once I captured the output, I noticed the problem with the include. Doing a simple "make" or "make install" caused the problem to surface during the first compile. Don't know what changed, but all is well now. Kevin C.