LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-01-2005, 02:40 PM   #1
Jonescity
Member
 
Registered: Jul 2004
Location: Jacksonville
Distribution: Slackware Current - (Using Slapt-get!)
Posts: 51

Rep: Reputation: 15
Errors Compiling 2.6.10 Kernel! Please Help!


Ok recently I did a bare install of slackware 10 (no X11, kde, gnome, apps, etc yet ) I do this every time I install slackware 10. Well anyway every time I do a bare install I download a fresh kernel with links (text based broswer). well when finishing configuring my kernel I save my changes and make my bzImage well during that process of compiling (text flying by) every once in a while I get a:

/usr/src/linux-2.6.10/scripts/mkcompile.h: line 72: Cmp: Command not found

then a few minutes later it will stop with this error:

/bin/sh: line1: cmp: Command not found
in consistent Kallsys data
Try setting CONFIG_KALLSYS_EXTRA_PASS
make: *** [vmlinux] Error 1

I dont know what else to do. This is a brand new Shuttle SK83G Athlon 64 2800+ System (I just built by the way) I'm compiling my kernel on and I made sure I included support for my processor. I've been trying to compile the 2.6.10 kernel for at least 3 days and I keep getting the same errors even if I zero my drive with killdisk and start over again. Since I don't have a working operating system right now I'm typing this from a live distribution called SLAX (slackware based obviously). I'm all out of Ideas

By the way - when I built this system I could not connect to the internet with links like I did with my old system because my nic on this system is not supported or not compiled in the default slackware 10 2.4.24 kernel. So I boot into knoppix download the kernel to my root slackware partitiion reboot into slackware and compile from there!

Thank You very much in advance!! You guys are Great!
 
Old 01-01-2005, 02:55 PM   #2
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
http://slackware.com/pb/download.php...s-2.8.1-i386-1

THat should help.
 
Old 01-01-2005, 03:10 PM   #3
Jonescity
Member
 
Registered: Jul 2004
Location: Jacksonville
Distribution: Slackware Current - (Using Slapt-get!)
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by shilo
http://slackware.com/pb/download.php...s-2.8.1-i386-1

THat should help.
whats this? I went to the slackware website package broswer and found this discription:
diffutils (finds differences between files)
The GNU diff utilities finds differences between files. A major use
for this package is to make source code patches.


what is it used for? and what does it do as far a compiling a kernel?

 
Old 01-01-2005, 03:26 PM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
shilo did put you on a good direction as /usr/bin/cmp is installed by this package.

The cmp program is used in kernel main Makefile to set System.map and it is surelly used in
Makefiles from subdirectories too
 
Old 01-01-2005, 03:28 PM   #5
Jonescity
Member
 
Registered: Jul 2004
Location: Jacksonville
Distribution: Slackware Current - (Using Slapt-get!)
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Cedrik
shilo did put you on a good direction as /usr/bin/cmp is installed by this package.

The cmp program is used in kernel main Makefile to set System.map and it is surelly used in
Makefiles from subdirectories too
Thank you very much I'll install that and see what happens!
 
Old 01-01-2005, 04:05 PM   #6
Jonescity
Member
 
Registered: Jul 2004
Location: Jacksonville
Distribution: Slackware Current - (Using Slapt-get!)
Posts: 51

Original Poster
Rep: Reputation: 15
ok the diif tools allowed me to compile the rest of my kernel the I modified the lilo.conf entry and reboot but, when I reboot
it will boot the kernel for a second and stop at this text:

Uncompressing Linux... ok, booting the kernel.
Linux version 2.6.10 (root@linux) (gcc version 3.3.4) #3 Sat jan 1 15:38:10 EST

why is it showing my hostname, date, time, etc and most important the version of gcc i'm using is it outdated already?
if so do slackware have a updated package for it? becasue I googled it and nothing.

update : Does anyone recommend un taring it and starting all over again? IF I can get inside linux which I still can't!

Last edited by Jonescity; 01-01-2005 at 04:20 PM.
 
Old 01-02-2005, 11:57 AM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Are you sure you did copy the correct file in /boot ? That should be arch/i386/boot/bzImage
from the kernel tree.

Or maybe it is a video problem, did you configure video resolution in your bootloader conf
(lilo.conf, or grub.conf, or...) ?
 
Old 01-02-2005, 01:04 PM   #8
Jonescity
Member
 
Registered: Jul 2004
Location: Jacksonville
Distribution: Slackware Current - (Using Slapt-get!)
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Cedrik
Are you sure you did copy the correct file in /boot ? That should be arch/i386/boot/bzImage
from the kernel tree.

Or maybe it is a video problem, did you configure video resolution in your bootloader conf
(lilo.conf, or grub.conf, or...) ?
yes, but when I moved it I renamed it to vmlinuz-2.6.10 then made a sybolic link to it called vmlinuz how ever I did not change the resolution in the lilo.conf file because i didn't think that was required but, how ever I am going to reinstall slackware and try recompiling the kernel with difutils installed.
 
Old 01-02-2005, 01:22 PM   #9
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Install all d/ packages, so you will be sure to not miss anything
 
Old 01-03-2005, 03:06 AM   #10
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
And ALWAYS keep a copy of your working kernel, as well as the configuration for it in /etc/lilo.conf, so that you can fall back on it in case you can not boot your new kernel.

Also, the very first thing I do when I setup a new Slackware box is remove all those links in /boot as they can get confusing, to me anyway. Then fix /etc/lilo.conf and reinstall it. Actually do it during the installation, but... I name all of my kernels, including the one the Slackware installion installs, according to their version, as well as the config & System.map for them. Like so:

vmlinuz-2.6.10
System.map-2.6.10
config-2.6.10

vmlinuz-2.4.27
System.map-2.4.27
config-2.4.27

etc etc etc. Anything that needs the System.map file will find it when it is named this way.

Last edited by DaHammer; 01-03-2005 at 03:08 AM.
 
Old 01-03-2005, 11:51 AM   #11
Jonescity
Member
 
Registered: Jul 2004
Location: Jacksonville
Distribution: Slackware Current - (Using Slapt-get!)
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by DaHammer
And ALWAYS keep a copy of your working kernel, as well as the configuration for it in /etc/lilo.conf, so that you can fall back on it in case you can not boot your new kernel.

Also, the very first thing I do when I setup a new Slackware box is remove all those links in /boot as they can get confusing, to me anyway. Then fix /etc/lilo.conf and reinstall it. Actually do it during the installation, but... I name all of my kernels, including the one the Slackware installion installs, according to their version, as well as the config & System.map for them. Like so:

vmlinuz-2.6.10
System.map-2.6.10
config-2.6.10

vmlinuz-2.4.27
System.map-2.4.27
config-2.4.27

etc etc etc. Anything that needs the System.map file will find it when it is named this way.
Somtimes I do delete the old shortcuts before I compile a kernel. but, recently I just add the old kernel to lilo and keep the pre existing shortcuts intact since I've been having problems lately compiling the new kernel.
 
Old 02-26-2005, 08:54 AM   #12
steved123
Member
 
Registered: May 2002
Location: New Hampshire
Distribution: Fedora Core 6 X86-64
Posts: 82

Rep: Reputation: 15
cmp command

the cmp command is in a package called diffutils-2.8.1-i386-1 in Slackware 10.1 You can find this on disk 1 under the ap directory. Install that and give it another try.
 
Old 02-26-2005, 07:01 PM   #13
Jonescity
Member
 
Registered: Jul 2004
Location: Jacksonville
Distribution: Slackware Current - (Using Slapt-get!)
Posts: 51

Original Poster
Rep: Reputation: 15
I've since resolved this issue and also upgraded to slackware 10.1 just recently but, thankyou anyway!
 
  


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
Errors Compiling the 2.6.12.4 kernel zeroslack Linux - General 2 08-10-2005 10:02 AM
Errors when compiling kernel bornhj Slackware 18 04-14-2005 01:50 AM
Errors compiling kernel linuxgamer09483 Linux - Software 9 02-16-2004 10:58 AM
Kernel compiling errors krackerroot Slackware 4 10-27-2003 01:33 AM
Errors Compiling Kernel naesyllek Linux - General 2 07-26-2003 08:06 PM


All times are GMT -5. The time now is 02:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration