From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (Win98; U)
Description of problem:
I have been struggling with getting a kernel rebuilt with redhat 7.1.
I've read on the internet about using kgcc to build redhat 7.X kernels,
not the gcc 2.96 compiler that is shipped with redhat 7.1.
The kernel builds and boots, but hangs at a sleep statement in a
/etc/rc.d/rc.sysinit script. However, the stock redhat 7.1 CD loads and runs
fine on a single intel cpu system.
Well, I was finally able to get a kernel to build and load with redhat
7.1. I used the gcc 2.96 compiler (not the kgcc compiler). I had to
disable modules and disable SMP.. The SMP code, I believe, was causing
the kernel to hang at sleep statements in the /etc/rc.d/rc.sysinit
However, the only way I could get the SMP disabled code to compile was
to disable modules. If modules were enabled and SMP disabled, I would
get an undefined smp_num_cpus problem during compilation.
Steps to Reproduce:
3.enable modules. disable SMP
4. make dep
5. make bzImage (fails while trying to compile kernel/ksyms.c)
Actual Results: smp_num_cpus undefined in kernel_stat.h (included in kernel/ksyms.c)
Expected Results: a successful compilation
if I disable modules or enable SMP, the smp_num_cpus definition is satisified
EHm. If you switch from SMP to UP or the other way around, you have to rerun
make mrproper. (be aware, this erases your .config file so save it to an other
place, make mrproper, restore it back and run make oldconfig)
*** Bug 52526 has been marked as a duplicate of this bug. ***