Click to See Complete Forum and Search --> : compiling new kernel (long)


rloc
02-20-2001, 03:16 PM
I would appreciate any assistance with the following problem.

I am running Mandrake 7.0 (Air), kernel2.2.14-15mdk on a Celeron 466 box and I am attempting to upgrade to kernek 2.4.0.

This is what I did:-

(All done in a konsole window with KDE running)

Downloaded linux-2.4.1.tar.gz to /usr/src
tar -xzf linux-2.4.1.tar.gz
make xconfig

system then returned the following messages:-

rm -f include/asm

(cd include ; ln -sf asm -i386.asm)

make -C scripts kconfig.tk

make [1]: entering directory 'usr/src/linux/scripts'

Gcc -Wall -Wstrict-prototypes -02 -fomit-frame-pointer -c -o tkparse.o tkparse.c

tkparse.c:48:stdio.h:no such file or dir
tkparse.c:49:stdlib.h: "
tkparse.c:50:string.h: "

make [1]:*** [tkparse.o] error 1

make [1]: leaving directory 'usr/src/linux/scripts'

make:*** [xconfig] error 2

After a lot of abortive fiddling I then did:-

make config

This appeared to go O.K

The I did this:-

make dep && make bzimage && make modules && make modules_install

The system then returned the following:-

gcc -Wall -Wstrict-prototypes -02 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c

scripts/mkdep.c:27:ctype.h: no such file or dir

scripts/mkdep.c:28:fcntl.h: no such file or dir

" :29:stdio.h: "
" :30:stdlib.h: "
" :31:string.h: "
" :32:unistd.h: "
" :34:sys/fcntl.h "
" :35:sys/mman.h "
" :36:sys/stat.h "
" :37:sys/types.h "

I then checked for the following versions

have require

gnu c ver 2.95.2 2.91.66
gnu make ver 3.77 3.77
binutils ver 2.9.5 2.9.1.0.25
util-linux ver 2.10b 2.10b
modutils ver 2.1.121 2.4.0 *
e2fsprogs ver 1.18 1.19 *
ppp ver 2.3.10 2.4.0b1 *

I then downloaded the .tar.gz files for those
files marked with * above, but I can not get
the ./configure command to work.

The ./configure returns:-

checking for gcc... cc
checking whether the c compiler (cc) works ..no

configure:error:installation or configuration problem:c compiler cannot create executables
This is my first attempt at compiling a kernel so I am completely lost at this point.

Thanks for your help

Robert

prince_kenshi
02-20-2001, 07:25 PM
I think the last part is because you have too old of a compiler. The new kernel requires a recent gcc. Go look on www.freshmeat.com (http://www.freshmeat.com) for the newest gcc package. I have an idea about the xconfig utility. Are you actually running make xconfig from within X? I ran it in a terminal with X running in another workstation before realizing that wouldn't work. Make sure you're running it in XTerm. And I read to run "make mrproper" before even running xconfig. I'd just delete the source and unzip it again and start all over. I hope it works.

rloc
02-22-2001, 02:25 PM
Thanks for the reply

I have a later version of gcc (2.95.2), than what is required (2.91.66), so I don't understand the cause of my problem.

As regards running Xconfig in X, tried runnning it in konsole not in xterm. Will this make a difference?

Thanks

robert