[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help with kernel compiling



A long time ago, in a galaxy far, far way, someone said...

> Hi, 
> 
> When I try to compile 2.2.12 at gateway2000 (pentium 200 with MMX), I got the 
> following message, I install hamm on it, and upgrade it to potato now. But I 
> failed in kernel compiling every time. I try 2.0.36 2.0.38, but failed at some
> delay system call. Any suggestion? Thanks!
> 
> Have a nice weekend!
> 
> Jianbo
> 
> make[2]: Leaving directory `/usr/src/linux/arch/i386/mm'
> make[1]: Leaving directory `/usr/src/linux/arch/i386/mm'
> make -C  arch/i386/lib
> make[1]: Entering directory `/usr/src/linux/arch/i386/lib'
> make all_targets
> make[2]: Entering directory `/usr/src/linux/arch/i386/lib'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
> -fomit-f
> rame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 
> -malign-loops
> =2 -malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o checksum.o checksum.c
> checksum.c: In function `csum_partial':
> checksum.c:94: Invalid `asm' statement:
> checksum.c:94: fixed or forbidden register 2 (cx) was spilled for class CREG.
> checksum.c: In function `csum_partial_copy':
> checksum.c:192: Invalid `asm' statement:
> checksum.c:192: fixed or forbidden register 2 (cx) was spilled for class CREG.
> checksum.c: At top level:
> checksum.c:200: redefinition of `csum_partial_copy'
> checksum.c:105: `csum_partial_copy' previously defined here
> checksum.c: In function `csum_partial_copy':
> checksum.c:287: Invalid `asm' statement:
> checksum.c:287: fixed or forbidden register 2 (cx) was spilled for class CREG.
> make[2]: *** [checksum.o] Error 1
> make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
> make: *** [_dir_arch/i386/lib] Error 2

1) Change the config to reflect the fact that you have a 586-class CPU.
2) What version of binutils are you running?  That sounds like an error
   you'd see if that was out of date.  Running 'as --version' at the
   command prompt will tell you what you that.

-- 
----------------------------------------------------------------------
Phil Brutsche					pbrutsch@creighton.edu

"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein


Reply to: