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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > The Linux Kernel
Reload this Page Trouble compiling kernel 2.6.6
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

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

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)
Linux Guru
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,662
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.
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: Dublin, Ireland
Posts: 1,271
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
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 04:52 AM.




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

Content Relevant URLs by vBSEO 3.2.0