l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
January 6: Social gathering
Next Installfest:
TBD
Latest News:
Nov. 18: Club officer elections
Page last updated:
2005 May 28 04:58

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] kernel-compilation frustration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] kernel-compilation frustration



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.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.