LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-19-2002, 01:53 PM   #1
theabyyss
Member
 
Registered: Aug 2001
Location: CT
Distribution: Debian Sarge (2.6.9-albooksleep) on a PPC
Posts: 64

Rep: Reputation: 15
Kernel compile error


trying to compile my own kernel, i ran make xconfig, configured everything, but using

make dep;make clean;make zImage;make modules

to compile didn't work. I got two "Error 2"s after a few minutes. the last line of output was "make: *** [_mod_drivers] Error 2]" after a "Leaving directory ;.usr/src/linux/drivers'". What's wrong? how can I fix it? If it's any help, i'm running red hat 7.0, and trying to install kernel 2.4.17.
this is my first time compiling the kernel. help me please!
 
Old 03-19-2002, 02:46 PM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
#1: make xconfig && make dep && make clean && make bzImage && make modules && make modules_install

the && will make sure the next command does NOT execute if the previous one didn't exit cleanly.

#2: On your error, does it say what module is failing? THere should be some kind of source code reference or linking reference. Just saying that you had a problem in [_mod_drivers] doesn't really say much.
 
Old 04-07-2002, 08:45 PM   #3
theabyyss
Member
 
Registered: Aug 2001
Location: CT
Distribution: Debian Sarge (2.6.9-albooksleep) on a PPC
Posts: 64

Original Poster
Rep: Reputation: 15
that didn't work. i get the same errors. it doesn't tell me what module it is, it just says it had an error in that directory.
 
Old 04-08-2002, 04:12 AM   #4
pierre
LQ Newbie
 
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
try this

make xconfig; make dep; make clean; make modules; make modules_install; make zImage
 
Old 04-08-2002, 04:36 AM   #5
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Are you sure that you got all the sources installed?
You can try buildkernel at http://buildkernel.stearns.org that will install the latest stable sources and the kernel.
You can always modify the kernel afterwards.
 
  


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
Kernel Compile error JTR Debian 2 08-03-2005 12:54 PM
Compile kernel 2.6.11-2 error subaruwrx Debian 2 03-10-2005 01:10 AM
Kernel compile error theMagus Fedora 2 05-31-2004 03:09 PM
kernel 2.4.24 compile error german Linux - Software 6 01-30-2004 06:31 PM
Compile kernel error Lokii13 Linux - Newbie 1 02-26-2003 05:26 PM

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

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