LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-28-2006, 04:33 PM   #1
Trey395
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Rep: Reputation: 0
kernel 2.6.17 make problem...


I'm trying to compile my 2.6.17 kernel by running 'make bzImage' and run into the following error...

Code:
CHK     include/linux/version.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'.  Stop.
make: *** [init] Error 2
tring 'make clean' also results in the following error (which i think is what the real issue is)...

Code:
scripts/Makefile.clean:17: /usr/src/kernels/2.6.17-1.2174_FC5-i686/drivers/infiniband/ulp/srp/Makefile: No such file or directory
make[3]: *** No rule to make target `/usr/src/kernels/2.6.17-1.2174_FC5-i686/drivers/infiniband/ulp/srp/Makefile'.  Stop.
make[2]: *** [drivers/infiniband/ulp/srp] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [_clean_drivers] Error 2
There is no Makefile in the infiniband/ulp/srp directory?

I have tried everything I can think of (de-selecting the driver in the config menu does not help) and googled extensively, it looks like other people are having the same issue, but nobody has an answer.

Can someone please HELP!!!
 
Old 08-28-2006, 04:47 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Please see my first reply here;

http://www.linuxquestions.org/questi...d.php?t=478012

Notice the order and the make commands listed, these are the correct steps in order to use to build a new kernel. The 'make bzImage' and 'make modules' commands is not used with the 2.6 kernel series they have been replaced by the single 'make' command. Notice that no 'make clean' command is used in the process.
 
Old 08-28-2006, 04:47 PM   #3
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
You don't use the ' make bzImage ' in 2.6 kernels. That was the way in 2.4 kernels. Follow this link.
http://www.linuxquestions.org/questi...36#post1401136

Brian1
 
Old 08-28-2006, 05:04 PM   #4
Trey395
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I followed the directions to copy my current config to a .config file in the /usr/src directory and then typed 'make' to get the following error...

Code:
CHK     include/linux/version.h
scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
  SPLIT   include/linux/autoconf.h -> include/config/*
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'.  Stop.
make: *** [init] Error 2
 
Old 08-28-2006, 05:14 PM   #5
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Do you have the kernel source installed and where is it located?

Brian1
 
Old 08-28-2006, 06:43 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Extracting or installing the kernel source;

rpm -ivh kernel-<version>.src.rpm

After extracting and before building (this is required);

cd /usr/src/redhat/SPECS
rpmbuild -bp --target $(arch) kernel-2.6.spec
 
Old 08-29-2006, 12:46 PM   #7
Trey395
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Brian1 - I installed the kernel-devel package off yum for the version of the kernel I am running. (kernel-devel-2.6.17-1.2174_FC5) It installed to the /usr/src/kernels/2.6.17-1.2174_FC5-i686 directory.

Lenard - I didn't understand in your response what the rpmbuild command would have to do with compiling a new kernel?
 
Old 08-29-2006, 02:49 PM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
The kernel source is not ready for building all the patches have to be applied.

From man rpmbuild;

Code:
       -bp    Executes  the  "%prep"  stage from the spec file. Normally this
              involves unpacking the sources and applying any patches.

And from the FC5 release notes;

http://fedora.redhat.com/docs/releas...ISO/#id3126937
 
  


Reply

Tags
build, compile, error, kernel, make


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
Kernel 2.6.17.1 'make modules' problem Shioni Linux - Kernel 2 06-30-2006 10:28 AM
Problem in make menuconfig for 2.6.8 kernel Nitin Jerath Linux - Kernel 1 05-23-2006 06:10 AM
need help! make kernel problem...... ljx Linux - Distributions 1 01-20-2005 11:13 AM
Kernel 2.6.5 make modules_install problem ss_ffs Linux - General 0 05-06-2004 05:54 AM


All times are GMT -5. The time now is 11:04 PM.

Main Menu
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