LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   error 1 while ruuning "make bzImage" in RHEL 4 (https://www.linuxquestions.org/questions/linux-enterprise-47/error-1-while-ruuning-make-bzimage-in-rhel-4-a-540383/)

tataiermail 03-25-2007 02:15 AM

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

Lenard 03-25-2007 08:47 AM

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

.

tataiermail 04-02-2007 01:25 PM

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


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