Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > Trouble compiling kernel 2.6.6

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-25-2004   #1 (permalink)
Just Joined!
 
Join Date: May 2004
Posts: 3
Send a message via Yahoo to udayask
Trouble compiling kernel 2.6.6

I have RH Fedora core 1 distribution installed in a local system. I downloaded the 2.6.6 kernel source and installed it. Then when ever I try to compile the source, "

make mrproper
make menuconfig (& do a do nothing save)
make
"

it gives the error,

make[1]: no rule to make target 'arch/i386/kernel/entry.o, needed by 'arch/i386/kernel/built-in.o'. Stop.
make: *** ...... Error 2.

I have gcc version 3.3.2 20031022 (RH Linux 3.3.2-1).

Previously, after I installed the source fresh, I had directly given make menuconfig -> make & was getting the error like

"invalid '(' symbol, in /arch/i386/kernel/entry.s at line no. 150".

What is the use of the patch file that is available for each version? Should I patch a 2.6.6.tar.gz source with a 2.6.6 patch.

I am still new to Linux.

Thanks in advance.
Uday
udayask is offline  



Reply With Quote
Old 05-25-2004   #2 (permalink)
Just Joined!
 
Join Date: May 2004
Posts: 2
Send a message via MSN to mattst88
Code:
cd /usr/src/linux
make menuconfig
make dep
make clean
make bzImage
make modules
cp /usr/Linux/src/arch/i386/boot/zImage /boot/newkernel
make modules_install
Generally thats how you are going to go about compiling a kernel.
Notice that there is no plain "make" command.
mattst88 is offline   Reply With Quote
Old 05-26-2004   #3 (permalink)
Just Joined!
 
Join Date: May 2004
Posts: 3
Send a message via Yahoo to udayask
I agree but, the compilation does not seem to be going beyond the first step.

Does anybody know if kernel 2.6.x compiles with GCC 3.3.2? Or if I have a source code problem?

Uday
udayask is offline   Reply With Quote
Old 05-26-2004   #4 (permalink)
Content Team
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,682
Try a make clean after the mrproper in your original method. If that doesn't work, I would get a new source tree and see if that fixes it.
__________________
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
sarumont is offline   Reply With Quote
Old 05-27-2004   #5 (permalink)
Just Joined!
 
Join Date: May 2004
Posts: 3
Send a message via Yahoo to udayask
Oh Ok! Thanks! That fixes it. The souirce tree was corrupted, I guess. I wonder why 'tar' or 'gunzip' didn't even warn me about it.

Kernel 2.6.6 runs very stable!

Uday
udayask is offline   Reply With Quote
Old 05-27-2004   #6 (permalink)
Linux Engineer
 
Join Date: Jul 2003
Location: Uppsala, Sweden
Posts: 1,276
for the 2.6 kernel you just run "make" without options so:

make && make clean bzImage
__________________
Proud to be a GNU/Gentoo Linux user!
variant is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:54 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1