Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12814 - GCC 3.2.1R6 fails to build kernel, GCC 3.2.1 works fine.
Summary: GCC 3.2.1R6 fails to build kernel, GCC 3.2.1 works fine.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-27 19:09 UTC by Kevin N. Carpenter
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin N. Carpenter 2002-12-27 19:09:34 UTC
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
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-12-28 13:55:03 UTC
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.
Comment 2 Kevin N. Carpenter 2002-12-28 16:10:49 UTC
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.