[vox-tech] kernel-compilation frustration

Ken Bloom kabloom at ucdavis.edu
Fri May 27 17:23:13 PDT 2005


On Fri, May 27, 2005 at 03:50:47PM -0700, Henry House wrote:
> 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    -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?

See http://www.linuxquestions.org/questions/history/315219 for a fix.
Your GCC version is probably too new for the kernel sources, and you
can fix the error by editing the source code.

--Ken Bloom

-- 
I usually have a GPG digital signature included as an attachment.
see http://www.gnupg.org/ for info about these digital signatures.
-------------- 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/c55a5da4/attachment.bin


More information about the vox-tech mailing list