LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 08-11-2004, 02:28 PM   #1
snl54
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
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.
 
Old 08-11-2004, 09:08 PM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
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".
 
Old 08-12-2004, 01:47 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 08-12-2004, 08:19 AM   #4
snl54
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 08-12-2004, 08:44 AM   #5
snl54
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 08-12-2004, 09:31 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 08-12-2004, 10:24 AM   #7
snl54
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 08-12-2004, 10:55 AM   #8
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
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
 
Old 08-12-2004, 11:06 AM   #9
snl54
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for that info 320mb, I had no idea!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems recompiling kernel in SUSE lalo_5_2000 Linux - Newbie 2 12-31-2004 09:36 PM
Problems recompiling 2.6.8 kernel in sarge 0ddba11 Debian 10 12-04-2004 04:28 PM
problems after recompiling the kernel hubabuba Linux - General 13 09-29-2004 07:54 PM
kernel 2.6.5 recompiling problems c31c Slackware 20 04-29-2004 04:56 PM
Problems recompiling a new kernel Soma Debian 3 09-20-2003 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration