View Full Version : Kernel Compilation

10th April 2007, 08:08 AM
i am using FC6, i want to compile kernel, i compiled kernel in redhat 9. i was simple,

in fc6.

# cd /usr/src/kernels/2.6.18-1.2798.fc6-i586
# make menuconfig
# make bzImage

CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2

whats going on ?

so dowloaded from ftp.kernel.org linux-2.6.8.tar.gz
#mv linux-2.6.8.tar.gz /usr/src/
# tar xzvf linux-2.6.8.tar.gz
#cd linux-2.6.8
#make menuconfig

HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’ follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of ‘current_menu’ was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2

Any one know about these errors.

10th April 2007, 08:55 AM
The command sequence for kernel compilation has changed from Linux 2.4 used in RHL9. Use plain "make" instead of "make bzImage". Read the section "Preparing for Kernel Development" from the Release Notes (http://docs.fedoraproject.org/release-notes/fc6/en_US/sn-Kernel.html#id2980667) for instructions for building the Fedora kernel.