Red Hat Bugzilla – Bug 13531
System will not boot after kernel recompilation
Last modified: 2008-05-01 11:37:56 EDT
When the kernel is compiled, boot process stops right after MD driver load
message. This problem occurs regardless of system type (happens on Compaq
Steps to reproduce:
1. install RedHat 7.0 Beta2
2. compile the kernel
3. reboot the system
4. boot will stop after following message displays
"md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12"
Yes. For now, don't compile the kernel with gcc-2.96.
moved to beta3 since it still has GCC 2.96
It seems that gcc is still used for kernel compilations, not kernelcc. All
makefiles default to that, anyway. Were the necessary changes to kernel sources
forgotten or is there some magic involved?
I tried getting around this by creating symlink from /usr/bin/gcc to
kernelcc, but somehow I think the new compiler was still being used; there
were a _lot_ off odd assembler warnings, for instance, and the system
wouldn't boot (did that remotely, no idea what broke).
Still an issue in beta4.
Changing CC= (and HOSTCC=) to kgcc fixes this.
The Pinstripe kernel srpm does this correctly now.
kernel-source-2.2.16-22.i386 , as shipped with RHL 7.0
defaults again to (g)cc
I changed CC in makefile to kgcc , but make dep still
used gcc. Then I also changed HOSTCC in Makefile to kgcc,
then it was OK ( kgcc was used instead of gcc )