prob building kernel

prob building kernel

Post by David Embre » Sun, 26 Mar 2000 04:00:00



I am attemping to build a kernel for the first time. I did the following
and compilation starts but I get the following error message can anyone
help decipher it for me. Thanks

:cd /usr/include
:rm -vrf asm linux scsi
:ln -s /usr/src/linux/include/asm-i386 asm
:ln -s /usr/src/linux/include/linux linux
:ln -s /usr/src/linux/include/scsi scsi
:cd /usr/src/linux
:make mrproper
:make config
*select all the features I want
:make dep
:make clean
:make bzImage

After compiling for a while it final comes up with this error.
make -C  arch/i386/lib
make[1]: Entering directory `/usr/src/linux-2.0.36/arch/i386/lib'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.0.36/arch/i386/lib'
gcc -D__KERNEL__ -I/usr/src/linux-2.0.36/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer  -pipe -fno-strength-reduce
-m386 -DCPU=386   -c -o checksum.o checksum.c
checksum.c:200: redefinition of `csum_partial_copy'
checksum.c:105: `csum_partial_copy' previously defined here
{standard input}: Assembler messages:
{standard input}:185: Fatal error: Symbol csum_partial_copy already
defined.
make[2]: *** [checksum.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.0.36/arch/i386/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.36/arch/i386/lib'
make: *** [_dir_arch/i386/lib] Error 2

Any ideas????????????????????

 
 
 

prob building kernel

Post by Paul Kimo » Sun, 26 Mar 2000 04:00:00



> I am attemping to build a kernel for the first time.
> make[2]: Entering directory `/usr/src/linux-2.0.36/arch/i386/lib'
> gcc -D__KERNEL__ -I/usr/src/linux-2.0.36/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer  -pipe -fno-strength-reduce
> -m386 -DCPU=386   -c -o checksum.o checksum.c
> checksum.c:200: redefinition of `csum_partial_copy'
> checksum.c:105: `csum_partial_copy' previously defined here
> {standard input}: Assembler messages:
> {standard input}:185: Fatal error: Symbol csum_partial_copy already
> defined.

*IF* you are trying to compile a 2.2.* kernel, then it appears you have put
the source code into a directory (/usr/src/linux-2.0.36) that contained
some old kernel source code (presumably 2.0.36).  I suggest that this may
be the problem because there is no (ix86) checksum.c file in the 2.2.*
kernels.  If that's the case, you could try deleting checksum.c, but it
would be better to delete the directory and start over (from unpacking the
kernel source code).

--


 
 
 

prob building kernel

Post by David Embre » Sun, 26 Mar 2000 04:00:00


thanks but now I have a new error.
make[1]: Entering directory `/usr/src/linux2.2.14/arch/i386/boot'
as86 -0 -a -o bootsect.o bootsect.s
make[1]: as86: Command not found
make[1]: *** [bootsect.o] Error 127
make[1]: Leaving directory `/usr/src/linux2.2.14/arch/i386/boot'
make: *** [boot] Error 2


> > I am attemping to build a kernel for the first time.

> > make[2]: Entering directory `/usr/src/linux-2.0.36/arch/i386/lib'
> > gcc -D__KERNEL__ -I/usr/src/linux-2.0.36/include -Wall
> > -Wstrict-prototypes -O2 -fomit-frame-pointer  -pipe -fno-strength-reduce
> > -m386 -DCPU=386   -c -o checksum.o checksum.c
> > checksum.c:200: redefinition of `csum_partial_copy'
> > checksum.c:105: `csum_partial_copy' previously defined here
> > {standard input}: Assembler messages:
> > {standard input}:185: Fatal error: Symbol csum_partial_copy already
> > defined.

> *IF* you are trying to compile a 2.2.* kernel, then it appears you have put
> the source code into a directory (/usr/src/linux-2.0.36) that contained
> some old kernel source code (presumably 2.0.36).  I suggest that this may
> be the problem because there is no (ix86) checksum.c file in the 2.2.*
> kernels.  If that's the case, you could try deleting checksum.c, but it
> would be better to delete the directory and start over (from unpacking the
> kernel source code).

> --


 
 
 

prob building kernel

Post by Hal Burgi » Mon, 27 Mar 2000 04:00:00



>thanks but now I have a new error.
>make[1]: Entering directory `/usr/src/linux2.2.14/arch/i386/boot'
>as86 -0 -a -o bootsect.o bootsect.s
>make[1]: as86: Command not found
>make[1]: *** [bootsect.o] Error 127
>make[1]: Leaving directory `/usr/src/linux2.2.14/arch/i386/boot'
>make: *** [boot] Error 2

You are missing the as86 package. On current RH, this is in the dev86
rpm. IIRC, older versions used bin86.

[...]

--
Hal B

--

 
 
 

1. Prob building kernel

I recently installed Lunux .59 from the Infomagic CD. No
problem. I'm trying to update to the .87 kernel. I updated
gcc and image and libc's. Everything ok (I think). I try to
make zImage (make dep was ok) and my machine chugs for a few HOURS
and then I get an internal compiler error. I have an IDE/8 meg/16 swap
of memory, a 2.5 yr old Gateway 486/50. Does anybody have any
suggestions?

             Dave P

If I get no responses I'll be more specific on the error but I'm
hoping it is something simple. Thanks!

2. D-Link 660 PCMCIA Networkcard

3. prob using gcc to build kernel

4. NFS Bug? R/W becomes RO.

5. building kernel from redhat kernel source

6. termcap.h problem in RedHat? Please help me

7. Kernel build freeze RH 4.1, kernel 2.0.27, AMD k5100

8. 2.2.16 / kernel-message: VM: do_try_to_free_pages failed for klogd...

9. HELP: kernel building / modular kernels

10. error building kernel module for cirrus graphic card - kernel 2.5.68

11. Building kernel with IFS = broken kernel?

12. Kernel Panic: Can't mount root - after building new kernel

13. massive kernel errors during kernel build