LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-25-2007, 02:15 AM   #1
tataiermail
Member
 
Registered: Apr 2006
Location: calcutta, IND
Distribution: RHEL AS 4, openSUSE 10.2
Posts: 48

Rep: Reputation: 15
error 1 while ruuning "make bzImage" in RHEL 4


I have installed rpm for kernel dev. in /usr/src/ kernel and redhat directories are there.
after running make menuconfig i have configured the kernel as i need.
then when i run make bzImage, it gives:

CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
/bin/sh: arch/i386/kernel/asm-offsets.s: no such file or directory
UPD include/asm-i386/asm_offsets.h
mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': no such file or directory
make: *** [include/asm-i386/asm-offsets.h] Error 1

please advice what to do?

suman
 
Old 03-25-2007, 08:47 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: 58
Sorry, but your reading/using old knowledge for building a new kernel. The steps are;

make mrproper (or make clean)
make menuconfig (or make xconfig or make gconfig)
make
make modules_install
make install

The last one does the work to install the new kernel (copying the files and running mkinitrd) and updates the bootloader.

Please download for reference:

http://www.kernel.org/pub/linux/kern...a_nutshell.pdf

.
 
Old 04-02-2007, 01:25 PM   #3
tataiermail
Member
 
Registered: Apr 2006
Location: calcutta, IND
Distribution: RHEL AS 4, openSUSE 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
Smile u r right

yes,

u r right.
"old knowledge for new kernel"

for everybody viewing this thread: since rhel 4 red hat does not include
kernel-devel-* rpm
bur it gives a seperate rpm for kernel source
in the SRPMS directory of the distribution.
u have to get that rpm unpack the source code tree by rpmbuild command in /usr/src directory.
then the rest is same with RHEL 3.

thanx it has been working nicely now.

regards,

suman
 
  


Reply



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 compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 09:16 AM
Error while creating "bzImage". soner Linux - General 3 10-29-2004 07:46 PM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
help with "make" error "Missing seperator" hrishikesh Linux - Software 1 07-18-2003 01:40 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration