LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-14-2002, 03:00 PM   #1
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Question Kernel Compilation Trouble


Well.. My lilo boot disk recently crashed (again...) but this time I have real trouble compiling my kernel.
I got a new (full) version of kernel 2.4.17 but I have the same error so my archive isn't corrupted.

Make mrproper --------->No Problem
Make menuconfig------->No Problem
Make dep----------------->No Problem

then, No matter wich command I try I get the same error msg
Make bzImage----------->/usr/include/linux/errno.h:4:asm/errno.h: No Such Files or dirrectory

I get the same error If I do Make Install or Make Modules or Make Modules_Install or anything

It,s look like to be an error with a symlink or something
I tried to change the installation directory (so /usr/src/linux-2.4.7 to /usr/src/linux to /usr/src/test ) nothing work

It's not the first time I compile my kernel but the last time was some time ago and I was with someone better than me...

any idea someone?
 
Old 02-14-2002, 03:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well asm/errno.h comes from the kernel-headers rpm if you're using an rpm kernel. so if you install the hedares for you default kernel it should work. however the files should also be in /usr/src/linux-x.y.z/include/asm-i386 so there may be a way to define the use of that point instead of the default rpm ones.

stop press. learning curve alert.

ok, so the asm headers are defined by a link in /usr/src/linux-x.y.z/include/ FROM asm-*your arch name here* to just asm, check that link is there, if not, make it, and you might be ok. seems like a very strange problem. I'd presume that link is made within the menuconfig section... hmmm
 
Old 02-14-2002, 09:12 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
I'm not using rpm i'm on slakware so it can't work anyway. Hum I will try to make the link but hum.. I recently change the size of my linux partition (and It make lilo to crash...) but can it cause trouble about symlink?
Dunno maybe symlink need disk sector? hum?
 
Old 02-14-2002, 09:55 PM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
I had this problem recently after recompiling up to 2.4.16. The symlink isn't there by default so you need to make it. errno.h is looking at the asm@ symlink in /usr/include that points to /usr/src/linux/asm so that's ok if you are using linux as the compile dir. If not, edit that one and change the linux to linux-2.4.x then as said above, go to /usr/src/linux/include and you'll see asm directories up the wazoo. Just type: ln -s asm-i386 asm
Then you should be all set with no more errno's about asm anyhow.
 
Old 02-14-2002, 09:55 PM   #5
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
I had this problem recently after recompiling up to 2.4.16. The symlink isn't there by default so you need to make it. errno.h is looking at the asm@ symlink in /usr/include that points to /usr/src/linux/asm so that's ok if you are using linux as the compile dir. If not, edit that one and change the linux to linux-2.4.x then as said above, go to /usr/src/linux/include and you'll see asm directories up the wazoo. Just type: ln -s asm-i386 asm
Then you should be all set with no more errno's about asm anyhow.
 
Old 02-14-2002, 09:57 PM   #6
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Sorry about the dual-post, i've been having some connection probs lately.
 
Old 02-15-2002, 06:20 PM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
This is what I do in slack,
1.
Add the below entires to your lilo.conf
# Backup Image
image = /vmlinuz.old
root = /dev/hda1
label = oldlinux
Note: replace /dev/hda1 with your boot partition.
2.
make mrproper (I dont do this most of the time since it will remove your .config)
make menuconfig (ncurses based kernel configuration menu system)
make dep (fixor up them dependencies)
make clean (get rid of old o files and stuff)
make bzImage (build it)
make install (read the note below for this one)
make modules (build the modules)
make modules_install (install the modules)
Note: "make install" is one that most don't use but if you run Slackware it will work fine. What it does is: copies, moves, and renames all the files to where they need to be. It also updates lilo for you. This method is very clean fast and easy to use. If your new kernel fails to work you can boot the old one by hitting the left shift key at the lilo prompt during bootup and typing oldlinux.
 
Old 02-19-2002, 06:15 PM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
Soooo that's the next part of my history.

Hum the kernel problem was about symlink,thanx taz.devil, really :0)

But I still having troubles... I can compilate my kernel but my lilo boot isn't working. When I try to "make install" it says something like "/dev/hda7 doesn't contains a primary partition table near line xx il /etc/lilo.conf....
But hum I tried few thing... These error seems to be about my dos partition,so I comment this part... It was not so bad until I restarted my box... Lilo said something like /dev/hda7 look like to not contain linux files partition etc...

Oh? Normal,when I boot my linux (with a bootable cd) I boot it from /dev/hd8. So I edited my lilo.conf again,change my partition... but my stupid lilo still try booting hda7.

Someone tell me to re"start" lilo (so ./lilo) but I'm booting from a lilo disk, so I dont have lilo installed on my hard drive.

But I recently resized my partition? Is this problem can be cause by a oversized linux partition? over hda8 may cause problem with swap so maybe it can cause problem over hd7 with linux ext? hum?
What if I move my partition to a "closer" sector (closer of the zero sector of course) ?
 
Old 02-20-2002, 10:52 PM   #9
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
Hum... I'm just scared about moving my partition... Please answer someone
 
  


Reply



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 compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 01:08 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 07:33 AM
GCC Compilation Trouble Permaximus Linux - Software 3 11-03-2004 02:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:48 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