Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-11-2004, 02:28 PM
|
#1
|
LQ Newbie
Registered: Aug 2004
Posts: 5
Rep:
|
Problems recompiling kernel after success on other systems
I've recompiled the kernel using the exact same procedures everytime. It has worked on two machines, but when I get to this one, it will not work.
I am running Mandrake 9.2 on all of the machines.
1. Copy the linux-2.4.22-30mdk to /usr/src
2. Create link from /usr/src/linux -> /usr/src/linux-2.4.22-30mdk
(ln -s /usr/src/linux-2.4.22-30mdk /usr/src/linux )
3. From /usr/src/linux in Konsole run 'make mrproper'
At this step, it fails with:
rm: cannot remove `include/asm': Is a directory rm: cannot remove `net/ipsec/alg/perlasm': Is a directory make: *** [mrproper] Error 1
I've tried 'make -i mrproper' but when I try make on the rest (dep, bzImage, etc), I still have errors trying to run those.
Also, I am logged in as root and I've tried reinstalling Mandrake and recompiling. Any help given is much appreciated, thank you.
|
|
|
08-11-2004, 09:08 PM
|
#2
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
Hi snl54,
You don't need to execute "make mrproper". This make is to set the architecture of your source tree, when you download a vanilla kernel. As you are working with the customized kernel of your distribution, all you need is "make xconfig", "make dep", "make bzImage", etc.
Probably, the complaint you had is for some kind of mandrake customization. I suggest you to re-install the kernel again before proceed with the "makings".
|
|
|
08-12-2004, 01:47 AM
|
#3
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
make mrproper should not report any error
it just checks whether the kernel source tree is in proper architecture
personally i feel compiling from a kernel source from kernel.org is always better than compiling a kernel source from the distribution
regards
|
|
|
08-12-2004, 08:19 AM
|
#4
|
LQ Newbie
Registered: Aug 2004
Posts: 5
Original Poster
Rep:
|
Thank you osvaldomarques and masand for your inputs.
osvaldomarques: I attempted "make xconfig" and received the same error:
[root@localhost linux]# make xconfig
rm -f include/asm
rm: cannot remove `include/asm': Is a directory
make: *** [symlinks] Error 1
Then just trying "make dep" to see what would happen:
...
make -C 3rdparty fastdep
make[2]: Entering directory `/usr/src/linux-2.4.22-30mdk/3rdparty'
make[2]: *** No rule to make target `fastdep'. Stop.
make[2]: Leaving directory `/usr/src/linux-2.4.22-30mdk/3rdparty'
make[1]: *** [_sfdep_3rdparty] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-30mdk'
make: *** [dep-files] Error 2
(I'm still running commands from the /usr/src/linux dir)
I will now attempt to download the kernel source from kernel.org and see if that gets me anywhere.
|
|
|
08-12-2004, 08:44 AM
|
#5
|
LQ Newbie
Registered: Aug 2004
Posts: 5
Original Poster
Rep:
|
Just an update:
I downloaded the source from kernel.org and I'm getting much further. I am using the instructions in their readme and getting up to "make zImage/bzImage" at this point it halts with:
*****************
In file included from /usr/include/errno.h:36,
from scripts/split-include.c:26:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1
*****************
errno.h is available in
/usr/include
/usr/include/bits
/usr/include/sys
/usr/src/linux
and other directories.
I'm going to look into this right now, just wanted to update you all.
Thanks
|
|
|
08-12-2004, 09:31 AM
|
#6
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
hi i think u can get good help if u look into the newbie guide to kernel compiling by DrOZZ this will help u lot by getting some good advice by linux gurus.
i too got a good help down there
regards
gaurav
|
|
|
08-12-2004, 10:24 AM
|
#7
|
LQ Newbie
Registered: Aug 2004
Posts: 5
Original Poster
Rep:
|
thanks
Thank you gaurav,
I did as you said and got my kernel from kernel.org. I wasn't able to compile the 2.5 kernel but the 2.4.27 worked just fine. Thanks!
|
|
|
08-12-2004, 10:55 AM
|
#8
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
Re: thanks
Quote:
Originally posted by snl54
Thank you gaurav,
I did as you said and got my kernel from kernel.org. I wasn't able to compile the 2.5 kernel
|
Kernels with Odd numbered series are Beta's.............use the Even number kernels...........IE
2.4x OR 2.6x
|
|
|
08-12-2004, 11:06 AM
|
#9
|
LQ Newbie
Registered: Aug 2004
Posts: 5
Original Poster
Rep:
|
Thanks for that info 320mb, I had no idea!
|
|
|
All times are GMT -5. The time now is 02:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|