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

Re: help..kernel compile



solved the problem;

it turned out that I was getting an error line right after I do "make
menuconfig". the error was (cd include;..) cannot be found.
of course that drove me crazy for couple of days. it seems according
to the Makefile it's supposed to cd to the include dir and create a
symlink for the right asm dir. I had no idea why it kept complaining
about not found cd.
the temporary solution was to read the Makefile and make stuff by hand
that were supposed to be made automatically. more search on the net and
I found that other people had the same problem and one of the
solutions is to do this:
	make SHELL=bash bzImage 

for some reason make was not able to figure out that the SHELL is
	supposed to be bash from the Makefile, although it's setup there
	right (it shows SHELL=/bin/sh and sh is a symlink to bash)

now the kernel had compiled fine :)

thanks for your help though...


Once upon a time Ayman Haidar (haidara@usol.com) wrote:

   > 
   > 
   > Hello,
   > 
   > I am a new convert from Mandrake to Debian and so far I love it. I am
   > having a problem compiling my kernel though. I have done it in the past
   > with no problems. I tried initially to compile kernel-source-2.2.18pre21
   > ther kernel-2.2.17 but I get the same problem.
   > here is what I am doing:
   > untar the source after apt-get install kernel-source... in /usr/src. cd
   > to the dir and make menuconfig, I choose the default (I tried to set it
   > my way with the same problem) save and exit. then I ran make-kpkg
   > --revision=sony.1 kernel_image. things scroll and I end up with errors.
   > here is a snap shot of the errors:
   > the errors starts like this :
   > 
   > make[1]: Entering directory `/usr/src/kernel-source-2.2.17'
   > gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
   > scripts/split-include include/linux/autoconf.h include/config
   > gcc -D__KERNEL__ -I/usr/src/kernel-source-2.2.17/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce -mpreferred-stack-boundary=2 -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686  -c -o init/main.o init/main.c
   > In file included from /usr/src/kernel-source-2.2.17/include/linux/sched.h:13,
   >                  from /usr/src/kernel-source-2.2.17/include/linux/mm.h:4,
   >                  from /usr/src/kernel-source-2.2.17/include/linux/slab.h:14,
   >                  from /usr/src/kernel-source-2.2.17/include/linux/malloc.h:4,
   >                  from /usr/src/kernel-source-2.2.17/include/linux/proc_fs.h:5,
   >                  from init/main.c:15:
   > /usr/src/kernel-source-2.2.17/include/linux/times.h:5: parse error before `clock_t'
   > /usr/src/kernel-source-2.2.17/include/linux/times.h:5: warning: no semicolon at end of struct or union
   > /usr/src/kernel-source-2.2.17/include/linux/times.h:6: warning: type defaults to `int' in declaration of `tms_stime'
   > .
   > .
   > .
   > .
   > .
   > and continues with about 1000 lines and it ends with this:
   > .
   > .
   > ..
   > 
   > /usr/src/kernel-source-2.2.17/include/linux/coda.h:261: storage size of `va_atime' isn't known
   > /usr/src/kernel-source-2.2.17/include/linux/coda.h:262: storage size of `va_mtime' isn't known
   > /usr/src/kernel-source-2.2.17/include/linux/coda.h:263: storage size of `va_ctime' isn't known
   > /usr/src/kernel-source-2.2.17/include/linux/coda.h:563: storage size of `attr' isn't known
   > /usr/src/kernel-source-2.2.17/include/linux/fs.h:426: storage size of `f_owner' isn't known
   > /usr/src/kernel-source-2.2.17/include/linux/sched.h:288: storage size of `times' isn't known
   > {standard input}: Assembler messages:
   > {standard input}:2099: Error: Ignoring attempt to re-define symbol
   > {standard input}:2099: Error: Rest of line ignored. First ignored character is `,'.
   > {standard input}:2234: Fatal error: Symbol "open" is already defined as "*COM*"/4.
   > make[1]: *** [init/main.o] Error 1
   > make[1]: Leaving directory `/usr/src/kernel-source-2.2.17'
   > make: *** [stamp-build] Error 2
   > 
   > any help is greatly appreciated.
   > 
   > PS: 
   > Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
   > gcc version 2.95.2 20000220 (Debian GNU/Linux)
   > 
   > latest binutils from potato and bin86
   > 
   > thanks
   > 
-- 
 -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
|        Ayman Haidar                                                   |
|        haidara@usol.com                                               |
|        just another linux and vim lover.                              |
 -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-



Reply to: