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:
August 5: Social gathering
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2005 May 29 00:26

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)
[vox-tech] kernel-compilation frustration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] kernel-compilation frustration



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>.

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:
EDGE Tech Corp.
For donating some give-aways for our meetings.