LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 06-25-2007, 09:23 PM   #1
math_physics
LQ Newbie
 
Registered: Jul 2005
Posts: 22

Rep: Reputation: 15
Smile upgrade to kernel 2.6.16.1 : "make bzImage" print "parse error"


I tried to upgrade from 2.4.20 to 2.6.16.1 .

The problem is :

when I run "make bzImage", it prints the following error message:

ld:arch/linux/kernel/vmlinux.lds:xxxx: parse error

I open this file, and find the line xxxx. It is:

OUTPUT_ARCH(1)

I comment this line, then "make bzImage" is Ok.

Why? What is this line for?

Last edited by math_physics; 06-25-2007 at 09:26 PM.
 
Old 06-28-2007, 04:49 AM   #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
One does not use 'make bzImage' with a 2.6 kernel in the Red hat family. Upgrading from the 2.4 kernel series to the 2.6 kernel family takes a bit more then building/installing a 2.6 kernel also.

I suggest that you learn how to build a 2.6 kernel for the Red Hat family, the basic steps are:

make mrproper
make menuconfig
make
make modules_install
make install

Please review: http://www.kernel.org/pub/linux/kern...kn_pdf.tar.bz2

As a suggestion: http://www.centos.org/
 
Old 06-29-2007, 11:04 PM   #3
math_physics
LQ Newbie
 
Registered: Jul 2005
Posts: 22

Original Poster
Rep: Reputation: 15
Lenard: Thank you for you help

I tried to modify "OUTPUT_ARCH(1)" to "OUTPUT_ARCH(i386)", then run "make bzImage". It passed without error.
 
  


Reply


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
error 1 while ruuning "make bzImage" in RHEL 4 tataiermail Linux - Enterprise 2 04-02-2007 01:25 PM
kernel compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 09:16 AM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
kernel 2.6.0 compliation problems: "parse error before 'va_list'" sohmc Linux - General 6 12-21-2003 04:45 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


All times are GMT -5. The time now is 11:52 AM.

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