[vox-tech] kernel-compilation frustration

Henry House hajhouse at houseag.com
Fri May 27 15:50:47 PDT 2005


The last dozen or so times that I have tried to compile a kernel have
all failed with compiler errors. I have no idea why, since I have
compiled hundreds of kernels sucessfully before, am not compiling
experimental code, and am not using a particularly new kernel version.

Example of failure mode:

gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o softirq.o softirq.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o resource.o resource.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o sysctl.o sysctl.c
sysctl.c: In function `do_proc_dointvec':
sysctl.c:838: warning: use of cast expressions as lvalues is deprecated
sysctl.c: In function `proc_dointvec_minmax':
sysctl.c:991: warning: use of cast expressions as lvalues is deprecated
sysctl.c: In function `do_proc_doulongvec_minmax':
sysctl.c:1094: warning: use of cast expressions as lvalues is deprecated
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o acct.o acct.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o capability.o capability.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o ptrace.o ptrace.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o timer.o timer.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o user.o user.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DEXPORT_SYMTAB -c signal.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DEXPORT_SYMTAB -c sys.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DEXPORT_SYMTAB -c kmod.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DEXPORT_SYMTAB -c context.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o uid16.o uid16.c
gcc -D__KERNEL__ -I/home/hajhouse/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DEXPORT_SYMTAB -c ksyms.c
In file included from ksyms.c:49:
/home/hajhouse/linux/include/asm/checksum.h:72:30: missing terminating " character
In file included from ksyms.c:49:
/home/hajhouse/linux/include/asm/checksum.h: In function `ip_fast_csum':
/home/hajhouse/linux/include/asm/checksum.h:73: error: parse error before "movl"
/home/hajhouse/linux/include/asm/checksum.h:75:17: invalid suffix "f" on integer constant
/home/hajhouse/linux/include/asm/checksum.h:82:17: invalid suffix "b" on integer constant
/home/hajhouse/linux/include/asm/checksum.h:90:13: missing terminating " character
/home/hajhouse/linux/include/asm/checksum.h:105:17: missing terminating " character
/home/hajhouse/linux/include/asm/checksum.h: In function `csum_fold':
/home/hajhouse/linux/include/asm/checksum.h:106: error: parse error before "addl"
/home/hajhouse/linux/include/asm/checksum.h:108:17: missing terminating " character
/home/hajhouse/linux/include/asm/checksum.h:121:13: missing terminating " character
/home/hajhouse/linux/include/asm/checksum.h: In function `csum_tcpudp_nofold':
/home/hajhouse/linux/include/asm/checksum.h:122: error: parse error before "addl"
/home/hajhouse/linux/include/asm/checksum.h:126:9: missing terminating " character
/home/hajhouse/linux/include/asm/checksum.h:128: error: `__x' undeclared (first use in this function)
/home/hajhouse/linux/include/asm/checksum.h:128: error: (Each undeclared identifier is reported only once
/home/hajhouse/linux/include/asm/checksum.h:128: error: for each function it appears in.)
/home/hajhouse/linux/include/asm/checksum.h: At top level:
/home/hajhouse/linux/include/asm/checksum.h:128: error: parse error before ')' token
/home/hajhouse/linux/include/asm/checksum.h:161:17: missing terminating " character
/home/hajhouse/linux/include/asm/checksum.h: In function `csum_ipv6_magic':
/home/hajhouse/linux/include/asm/checksum.h:162: error: parse error before "addl"
/home/hajhouse/linux/include/asm/checksum.h:173:17: missing terminating " character
/home/hajhouse/linux/include/asm/checksum.h:176: error: `__x' undeclared (first use in this function)
/home/hajhouse/linux/include/asm/checksum.h:176: warning: no return statement in function returning non-void
/home/hajhouse/linux/include/asm/checksum.h: At top level:
/home/hajhouse/linux/include/asm/checksum.h:176: error: parse error before ')' token
/home/hajhouse/linux/include/asm/checksum.h:176: error: parse error before "__u32"
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/home/hajhouse/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/home/hajhouse/linux/kernel'
make: *** [_dir_kernel] Error 2

This is Linux 2.4.14 being compiled on i386. I have tried a few other 2.4.x
versions as well, also failing. GCC works fine to compile other programs.
Just to make sure my CPU was not failing I tried compiling vim (a rather
large program), which built flawlessly.

Does anyone have any ideas?

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system usually rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://ns1.livepenguin.com/pipermail/vox-tech/attachments/20050527/c8665aa1/attachment.bin


More information about the vox-tech mailing list