Bug 45248 - Kernel will not rebuild if SMP is disabled and modules enabled
Summary: Kernel will not rebuild if SMP is disabled and modules enabled
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 7.1
Hardware: i586
OS: Linux
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brock Organ
: 52526 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2001-06-21 01:54 UTC by Ken Cobler
Modified: 2007-04-18 16:33 UTC (History)
0 users

Clone Of:
Last Closed: 2001-06-21 08:05:02 UTC

Attachments (Terms of Use)

Description Ken Cobler 2001-06-21 01:54:20 UTC
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.

Any suggestions?

Ken Cobler

How reproducible:

Steps to Reproduce:
1.make mrproper
2.make menuconfig
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

Additional info:

if I disable modules or enable SMP, the smp_num_cpus definition is satisified

Comment 1 Arjan van de Ven 2001-06-21 08:04:58 UTC
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)

Comment 2 August Treubig 2001-08-25 21:27:35 UTC
*** Bug 52526 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.