LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Problem in kernel compilation (https://www.linuxquestions.org/questions/linux-kernel-70/problem-in-kernel-compilation-580198/)

sid18 08-27-2007 12:12 PM

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

jailbait 08-27-2007 01:35 PM

Quote:

Originally Posted by sid18 (Post 2872339)
[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

sid18 09-02-2007 12:29 AM

Quote:

Originally Posted by jailbait (Post 2872409)
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

ravime 09-02-2007 01:21 AM

Install GCC
 
Goto this link

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

will explain how to install gcc and where to get rpm.

johnhamiltion 09-02-2007 07:05 AM

Quote:

Originally Posted by sid18 (Post 2872339)
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

sid18 09-03-2007 04:09 AM

Quote:

Originally Posted by johnhamiltion (Post 2878511)
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..

sid18 09-05-2007 07:26 AM

Quote:

Originally Posted by sid18 (Post 2879468)
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..

johnhamiltion 09-05-2007 08:26 AM

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.

sid18 09-05-2007 09:23 AM

Quote:

Originally Posted by johnhamiltion (Post 2881955)
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?

sid18 09-05-2007 10:49 AM

Quote:

Originally Posted by johnhamiltion (Post 2881955)
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

johnhamiltion 09-06-2007 09:53 AM

Quote:

Originally Posted by sid18 (Post 2882091)
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?).

sid18 09-07-2007 04:33 AM

Quote:

Originally Posted by johnhamiltion (Post 2883282)
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?

johnhamiltion 09-07-2007 08:33 AM

Quote:

Originally Posted by sid18 (Post 2884180)
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.

sid18 09-07-2007 09:01 AM

Quote:

Originally Posted by johnhamiltion (Post 2884382)
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..

johnhamiltion 09-07-2007 09:07 AM

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


All times are GMT -5. The time now is 06:27 AM.