LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-17-2005, 02:33 AM   #1
LQer928
LQ Newbie
 
Registered: Apr 2005
Location: Australia
Distribution: Slackware 10.1
Posts: 17

Rep: Reputation: 0
Question Error message when compiling kernel-2.6.10


Hello , everyone ! A couple of days ago , I followed a kernel compilation guide written by acidjuice , which is a great how-to , very easy to understand , then I hit a bump just a few commands into it .
After I copied the new kernel and config file from Patrick into /usr/src , I typed in following commands :
/usr/src#rm linux
/usr/src#ln -s linux-2.6.10 linux
/usr/src#cd linux
/usr/src/linux#make mroproper , then I got a message saying :
make: ***No rule to make target 'mrproper' . Stop
I thought the purpose of that command was to clear all of the precedent files , since I was doing a fresh install , I tried to skip the step , so I typed in the next command : #make menuconfig , when got me the same message which only 'mrproper' was replaced by 'menuconfig' .
I have no idea what that means , and it's an awful feeling that I couldn't get this done when I had a good guide in my hand . Any help will be much appreciated .
 
Old 05-17-2005, 03:11 AM   #2
ArbiterOne
LQ Newbie
 
Registered: Oct 2004
Location: Munich, Germany
Distribution: Slackware 10.1
Posts: 18

Rep: Reputation: 0
Did you run ./configure first? Is there no makefile, but a file named Makefile.in?
If so, run ./configure as root.
 
Old 05-17-2005, 03:38 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Quote:
Originally posted by ArbiterOne
Did you run ./configure first? Is there no makefile, but a file named Makefile.in?
If so, run ./configure as root.
?! Since when do you have to run ./configure when compiling a kernel ?

LQer928, Show me a list of your directory

Code:
ls -a /usr/src/linux-2.6.10

Last edited by xushi; 05-17-2005 at 03:39 AM.
 
Old 05-17-2005, 03:50 AM   #4
ArbiterOne
LQ Newbie
 
Registered: Oct 2004
Location: Munich, Germany
Distribution: Slackware 10.1
Posts: 18

Rep: Reputation: 0
OK, I'm an idiot. Only thing I could think of offhand, however.
 
Old 05-17-2005, 03:52 AM   #5
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Quote:
Originally posted by ArbiterOne
OK, I'm an idiot. Only thing I could think of offhand, however.
I didn't say you were, i was querying to where you're getting the facts from. Drop the attitude, we're all here to help.
 
Old 05-17-2005, 03:57 AM   #6
ArbiterOne
LQ Newbie
 
Registered: Oct 2004
Location: Munich, Germany
Distribution: Slackware 10.1
Posts: 18

Rep: Reputation: 0
Nononono, I'm not copping an attitude. I don't mind being corrected
Only way I can learn.
Either way, it's possible his Makefile is borked.
 
Old 05-17-2005, 04:12 AM   #7
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Oh, my apologies then =) i misunderstood.. sorry (bad day.. last final exam in 2 days)

Either that, or maby i'm assuming he doesn't have a .config file.
 
Old 05-19-2005, 12:30 AM   #8
LQer928
LQ Newbie
 
Registered: Apr 2005
Location: Australia
Distribution: Slackware 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
Hello !
Sorry about the delay , I couldn't log on yesterday , maybe they were doing maintainance or something , but it gave me some time to reflect on what has been discussed here . You guys were right , I didn't notice anything was missing in my /usr/src/linux-2.6.10 directory until I compared it with /linux-2.4.22 , MAKE.RULE was not there and a few more ! That's some dodgy package.
Thanks for the hint !
And when the compilation is over , is it really necessary to do the following :
#mv ./config /config-2.6.10 ? Some how-to says yes , some doesn't mention it .
One more thing , I understand that I have to create a /sys directory for storing hotplug files under the new kernel , where should I make this directory if I built the kernel as an unprivelaged
user , only to install it as root ? Should it be in the root of the user or just the root ? I hope I've made myself clear enough for you to understand what I'm asking .
Many thanks in advance .
 
Old 05-19-2005, 07:26 AM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
Quote:
Originally posted by LQer928

And when the compilation is over , is it really necessary to do the following :
#mv ./config /config-2.6.10 ?
...that command will move the config-file to your root-dir.
that's not a good idea.
normally , after a kernel-compile, you save the config file to some place.
i copy them to my home-dir, some people use the /boot/ dir. and that's all ok.
it's just that running " make mrproper" will delete the config-file in the kernel-source tree.

Quote:
Originally posted by LQer928

One more thing , I understand that I have to create a /sys directory for storing hotplug files under the new kernel , where should I make this directory if I built the kernel as an unprivelaged
user , only to install it as root ? Should it be in the root of the user or just the root ? I hope I've made myself clear enough for you to understand what I'm asking .
Many thanks in advance .
the /sys dir must be in the root dir.
so simply " #mkdir /sys " will do the trick.
( but IIRC the startup script takes care of that, not sure.. )
making it yourself is not bad.

and if you want to make a kernel as a normal user, i guess you'll do that on some place inside your home-dir.
that's ok, but remember to keep the sources in place, so they can be found
by other programs that need them. ( like the ati or nvidia graph. drivers )

egag
 
Old 05-19-2005, 09:37 AM   #10
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
I thought they just took mrproper out of the makefile in the 2.6.x kernels? Anyhow, if you are getting errors about no rule for menuconfig, I would suspect that you have a broken source tree (or you misspelled it) and suggest you delete the directory, download new kernel sources and re-extract it.
 
Old 05-20-2005, 05:39 PM   #11
BenneJezzerette
Member
 
Registered: Mar 2005
Location: In a Box where Slackware Rocks
Distribution: Slackware 11 -current
Posts: 274

Rep: Reputation: 30
Linux 2.6.11.10 has the following

change the install.sh pointers from the top directory to the /boot direcoty, make any changes in the makefile and install.sh file that all points to the correct directories, if they have not already been fixed by the builder of this particular Kernel.

Make mrproper be sure to spell it right
make clean
make menuconfig
change all the needed adjustments to your kernel information reflecting your installed hardware.
esc (save y/n) yes
make
runs through, vcreates all files includeing modules you may have
make install
make modules_install


Then startx before rebooting, if you have KDE then go into the Control Center and System Administration and find the Lilo setttings and change it there. Exit the XWindow and reboot, if you did everything correctly, then you should be using the latest and grettes Linux Kernel.

With Slackware 10.1 the second CD is a Emergency Boot Disk if you mess somehting up, this will allow you to get back to fix it to go to the older kernel you have installed, and then fix what you need.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KERNEL 2.6 compilation error message xjm Red Hat 3 09-20-2005 07:21 AM
Odd kernel message error Seventh Linux - Software 3 07-05-2005 02:30 PM
Kernel Oops (error message) DigiCrime Linux - Software 1 02-09-2004 05:07 PM
Error message while compiling kernel 2.4.19 on mandrake 9.2 ibro Mandriva 0 11-23-2003 02:17 PM
same error message in every 2.6 test kernel apberzerk Linux - General 3 11-01-2003 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:28 AM.

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