error in "make zImage" during 2.6.4 kernel compliation
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
error in "make zImage" during 2.6.4 kernel compliation
Evening everybody!
I decided to test my linux skills by attempt to upgrade my kernel from 2.4.20-8 to 2.6.4. I'm following the directions to the letter, but I've hit a rather serious wall. I'm nearing the end of the compilation, but I can't make either a zImage or bzImage of the new kernel. Here is the output from the shell when I give the make zImage command:
[root@jimb linux-2.6.4]# make zImage
Makefile:392: .config: No such file or directory
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts] Error 2
after that it simply returns to the shell. I though it may be that I needed make bzImage, but that give a nearly identical output, with the same 2 errors at the end, then it quits.
I may have the machinestuck between kernels, but maybe not since I didn't even completely make the new kernel image. I'd like to know how to get around this problem, but I'd also like to understand the output of the make zImage command, because I don't understand most of it.
Makefile:392: .config: No such file or directory
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
1st: What is the /usr/include/bits directory? i never saw that before :/
Let me Google it, i'll be back w/ infos , maybe another member will have answer you before
EDIT : Glibc, you have a problem with the GLibc's files ..
** Search In Progress
I have no idea what either the /usr/include bits directory is, nor what Glibc is.
When I installed RH9, I put every package on the 3 CDs on my machine, so I would be somewhat surprised if it was a dependency issue.
Thanks for the help so far, and hopefully your googling skills far surpass mine, because I didn't find jack. I tend to strike out on goole. I too often phrase my questions like I am speaking to a human, and as good as Google's engine is, it still can't "yet" deal with me as a human being. Soon for that, I hope!
2.6.x is not like 2.4, first you do the make mrproper then make menuconfig (xconfig if u like that better), then you simply type make, just "make" it will make a bzImage for you, make zimage and make bzImage are not necessary, and make dep is gone all together. then do a make modules and make modules_install for the modules.
Cool. I'm trying to get glibc from rpmfind, and the redhat 9 rpms are all giving "too many user" errors. As soon as I can get a copy of it, I'll install it and see if that improves the situation.
I did a mrproper and a make config prior to getting the errors I talked about above. Here is the output from just "make"
[root@jimb linux-2.6.4]# make
Makefile:392: .config: No such file or directory
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts] Error 2
[root@jimb linux-2.6.4]#
doing a make menuconfig gives a similiar string of garbage:
[jim@jimb linux-2.6.4]$ make menuconfig
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2
[jim@jimb linux-2.6.4]$
ok, I should have read more of the other poss, but my info will hopefully help when u get further :-P
wiBo, no, no links. just experiance, when I started 5 years ago I got slackware 7.1 witht he 50 or so page essentals guide, it talked about the kernel and gave the basic 5 lines of instructions for compiling it, compiling my kernel was the first thing I ever did in linux cause I love features and customisation. so when 2.6.x-test came out I jumped on it, I did the make mrproper; make menuconfig and then make dep and it said there is no make dep just type make, so I did, then the modules stuff I did eventhough I may not need to. it just kinda made sence to me.
on another note, get your install cd's and install all the development tools rpm's. that should fix the /usr/include dependancies
Originally posted by exodist ok, I should have read more of the other poss, but my info will hopefully help when u get further :-P
wiBo, no, no links. just experiance, when I started 5 years ago I got slackware 7.1 witht he 50 or so page essentals guide, it talked about the kernel and gave the basic 5 lines of instructions for compiling it, compiling my kernel was the first thing I ever did in linux cause I love features and customisation. so when 2.6.x-test came out I jumped on it, I did the make mrproper; make menuconfig and then make dep and it said there is no make dep just type make, so I did, then the modules stuff I did eventhough I may not need to. it just kinda made sence to me.
on another note, get your install cd's and install all the development tools rpm's. that should fix the /usr/include dependancies
I downloaded glibc-2.3.2-27.9.7.i386.rpm, tried to install it, and got the message package glibc-2.3.2-27.9.7 is already installed. I thought maybe there was a problem with it in some way, so I'd remove it, and then reinstall it. I tried using the command apt-get remove glibc, and after much work it reported:
0 packages upgraded, 0 newly installed, 1341 removed and 0 not upgraded.
Need to get 0B of archives.
After unpacking 4076MB disk space will be freed.
I didn't go through with that, as that would be about half of my machine!
Any suggestions as to what my next step should be would be greatly appreciated.
By the way, I installed EVERY package when I installed redhat, so there is nothing that I should be missing, development tools or otherwise.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.