Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 8476

Summary: Configuring kernel without SMP causes compilation errors
Product: Gentoo Linux Reporter: John (EBo) David <ebo>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: josh, lostlogic, mholzer
Priority: High    
Version: 1.4_rc1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John (EBo) David 2002-09-27 13:21:01 UTC
General Description:

  In an attempt to get power management working on a laptop I turned SMP support 
off.  This caused a compilation error in linux/kernel/ksyms (smp_num_cups 
undefined).

Reproduction:

  turn off SMP support and recompile as normal


EBo --
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2002-10-07 03:46:02 UTC
same as here

default linux-2.4.19-gentoo-r9
turned off SMP and changes arch to mmx(i586)

gcc 2.95.4
gentoo 1.2 

Comment 2 Martin Holzer (RETIRED) gentoo-dev 2002-10-10 06:28:40 UTC
same with linux-2.4.19-openmosix-r5
disabling smp causes this error

please change version, it's version independend
Comment 3 Chad Huneycutt (RETIRED) gentoo-dev 2002-10-21 17:16:30 UTC
Have you done a make mrproper?  Once you compile SMP in, you have to first clean
out the source directory:

# cd /usr/src/linux
 - save your config file
# cp .config ../config.save
# make mrproper
# mv ../config.save .config
# make menuconfig
 - make sure everything is as you want it (no SMP)
# make dep && make -j3 bzImage modules && make modules_install

Comment 4 Martin Holzer (RETIRED) gentoo-dev 2002-11-28 04:54:33 UTC
works for me

maybe this should be documented (FAQ) ?
Comment 5 Roman Majer 2003-02-05 10:35:43 UTC
 
it is known feature... smp is breaking the compile..  
I allways switch off the SMP (anyway, 99% users has only one proc!!! so why 
is it switched on by default ???). 
 
cp .config /out/of/kernel/tree ; make mrproper; cp .config /back 
is must after this game 
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-03-04 12:49:09 UTC
*** Bug 16831 has been marked as a duplicate of this bug. ***
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-03-12 17:55:17 UTC
closing this