LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-27-2007, 12:12 PM   #1
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Rep: Reputation: 0
Problem in kernel compilation


hi everybody,
I am new to linux and trying to compile linux kernel 2.6.9 & other 2.6 series.. as stated in many procedures i downloaded kernel source code ( tsr.bz2) file.. then when i execute make menuconfig i get following

[root@localhost linux-2.6.9]# make menuconfig
HOSTCC scripts/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/fixdep] Error 127
make: *** [scripts/fixdep] Error 2
[root@localhost linux-2.6.9]#

I tried it with fedora core 1 and core 7 .. but no change.. also i get same error for other kernel versions.. plz help me to get rid of this error..
thank you
 
Old 08-27-2007, 01:35 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by sid18 View Post
[root@localhost linux-2.6.9]# make menuconfig
HOSTCC scripts/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/fixdep] Error 127
make: *** [scripts/fixdep] Error 2
[root@localhost linux-2.6.9]#
This error message means that make could not find the gcc compiler. Do you have the gcc compiler installed?

-----------------
Steve Stites
 
Old 09-02-2007, 12:29 AM   #3
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
This error message means that make could not find the gcc compiler. Do you have the gcc compiler installed?

-----------------
Steve Stites
i m very new to all this.. so m not sure bt mostly it is not installed coz when i execute make mrproper i get error as scripts/gcc-version.sh line1: gcc command not found..plz tell me how to install it
i wl try to install it and then wl compile again
thank you
 
Old 09-02-2007, 01:21 AM   #4
ravime
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Rep: Reputation: 15
Install GCC

Goto this link

http://unclean.org/howto/gcchowto.html

will explain how to install gcc and where to get rpm.
 
Old 09-02-2007, 07:05 AM   #5
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by sid18 View Post
hi everybody,
/bin/sh: line 1: gcc: command not found
This line means you do not have the C-compiler installed.

Install it and take a look at this page:

"Compiling yourself a new Kernel (with Reiser4 support)."
http://linuxhelp.150m.com/installs/compile-kernel.htm
 
Old 09-03-2007, 04:09 AM   #6
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnhamiltion View Post
This line means you do not have the C-compiler installed.

Install it and take a look at this page:

"Compiling yourself a new Kernel (with Reiser4 support)."
http://linuxhelp.150m.com/installs/compile-kernel.htm
hi everybody,
In the kernel compilation i execute make modules.. it executes successfully..
then i execute make modules_install to install the modules.. it gives me following error-

INSTALL sound/synth/emux/snd-emux-synth.ko
INSTALL sound/synth/snd-util-mem.ko
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usb-lib.ko
INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.10; fi
/bin/sh: line 1: 11965 Terminated /sbin/depmod -ae -F System.map 2.6.10
make: *** [_modinst_post] Error 143

plz help me to overcome this problem..

Last edited by sid18; 09-03-2007 at 11:46 AM.
 
Old 09-05-2007, 07:26 AM   #7
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sid18 View Post
hi everybody,
In the kernel compilation i execute make modules.. it executes successfully..
then i execute make modules_install to install the modules.. it gives me following error-

INSTALL sound/synth/emux/snd-emux-synth.ko
INSTALL sound/synth/snd-util-mem.ko
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usb-lib.ko
INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.10; fi
/bin/sh: line 1: 11965 Terminated /sbin/depmod -ae -F System.map 2.6.10
make: *** [_modinst_post] Error 143

plz help me to overcome this problem..

hi everybody,
Plz guide me for the problem i mentioned above..
 
Old 09-05-2007, 08:26 AM   #8
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
When you compiled the kernel the System.map should have been created in the top directory.

It doesn't seem to be there. Check and see.
 
Old 09-05-2007, 09:23 AM   #9
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnhamiltion View Post
When you compiled the kernel the System.map should have been created in the top directory.

It doesn't seem to be there. Check and see.
system.map file is there in top directory of the kernel to be compiled.. also bzImage is stored at arch/i386/boot/bzImage in that directory..
Problem doesnt occur while executing make modules.
then what may be the problem?
 
Old 09-05-2007, 10:49 AM   #10
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnhamiltion View Post
When you compiled the kernel the System.map should have been created in the top directory.

It doesn't seem to be there. Check and see.
System.map file is there in top directory... also bzImage is there and no error occured in make modules.. so what must be this problem
 
Old 09-06-2007, 09:53 AM   #11
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by sid18 View Post
System.map file is there in top directory... also bzImage is there and no error occured in make modules.. so what must be this problem
Why don't you use a more recent kernel, like 2.6.22. There may have been a problem with some really old kernels (a little sabotage maybe?).
 
Old 09-07-2007, 04:33 AM   #12
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnhamiltion View Post
Why don't you use a more recent kernel, like 2.6.22. There may have been a problem with some really old kernels (a little sabotage maybe?).
i will try recent kernel, but my friends could compile older 1.. they also dont know about this problem.. why that error occurs?
 
Old 09-07-2007, 08:33 AM   #13
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by sid18 View Post
i will try recent kernel, but my friends could compile older 1.. they also dont know about this problem.. why that error occurs?
Try running (as root)

/sbin/depmod -ae -F System.map 2.6.10

and see what happens.
 
Old 09-07-2007, 09:01 AM   #14
sid18
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnhamiltion View Post
Try running (as root)

/sbin/depmod -ae -F System.map 2.6.10

and see what happens.
when i run [root@localhost ~]# /sbin/depmod -ae -F System.map 2.6.10
it gives - no such file or directory...
does that mean that system.map for that kernel is not created??..if so then what is going wrong?
and i did same with 2.6.20.2 kernel
m getting same error..
 
Old 09-07-2007, 09:07 AM   #15
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
It means that your system is not finding the program depmod. Enter the command (as root)

which depmod

that should tell you where it is, if you have it.

OR perhaps it is not finding the System.map

You are in the top directory of the kernel source aren't you? If not enter the full path to System.map

Last edited by johnhamiltion; 09-07-2007 at 09:12 AM.
 
  


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 2.6.22 compilation problem tanveer Linux - General 4 07-22-2007 12:51 AM
kernel compilation problem SirrusX Slackware 8 03-07-2005 07:13 AM
Kernel 2.6.8 compilation problem. Mingthefirst Debian 5 08-23-2004 01:57 PM
Kernel Compilation Problem 2.6.7 ultrix Slackware 4 08-11-2004 05:31 AM
Problem after 2.6.3 kernel compilation frzburn Linux - General 3 03-11-2004 07:12 AM

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

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