Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9087 - gentoo-sources will not compile with SMP disabled in menuconfig
Summary: gentoo-sources will not compile with SMP disabled in menuconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-13 16:12 UTC by Michael Brailsford
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
failing .config (.config,17.20 KB, text/plain)
2002-12-24 12:12 UTC, Phil Almquist
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Brailsford 2002-10-13 16:12:54 UTC
In an attempt to get APM to work, I was going to disable SMP in the kernel.  I
did that and the build failed.  After the build failed I enabled SMP again and
it built fine.  Then I disabled *only* SMP and the build failed.  It fails in
"make bzImage" stage.
Comment 1 Brandon Low (RETIRED) gentoo-dev 2002-10-13 19:03:25 UTC
which version of gentoo sources? do you have IO-APIC enabled?
Comment 2 Brandon Low (RETIRED) gentoo-dev 2002-10-13 23:15:39 UTC
send me a .config
Comment 3 Brandon Low (RETIRED) gentoo-dev 2002-10-15 14:32:24 UTC
I'm testing this on gentoo-sources-2.4.19-r10 since yer .config was from -r9 
this may make all the difference (I know -r10 is still masked)
Comment 4 Brandon Low (RETIRED) gentoo-dev 2002-10-15 14:46:35 UTC
that .config works on -r10, are you making sure to make mrproper between 
compiles when switching things like SMP and preempt?
Comment 5 Phil Almquist 2002-12-24 12:12:09 UTC
Created attachment 6723 [details]
failing .config

im having this exact problem on r10 and isolated it to just the SMP option,
heres the last bit compiling gives me...

		 from ksyms.c:14:
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/i386_ksyms.ver:88:
warning: `cpu_data' redefined
/usr/src/linux-2.4.19-gentoo-r10/include/asm/processor.h:80: warning: this is
the location of the previous definition
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/i386_ksyms.ver:92:
warning: `smp_num_cpus' redefined
/usr/src/linux-2.4.19-gentoo-r10/include/linux/smp.h:81: warning: this is the
location of the previous definition
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/i386_ksyms.ver:94:
warning: `cpu_online_map' redefined
/usr/src/linux-2.4.19-gentoo-r10/include/linux/smp.h:91: warning: this is the
location of the previous definition
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/i386_ksyms.ver:108:
warning: `smp_call_function' redefined
/usr/src/linux-2.4.19-gentoo-r10/include/linux/smp.h:90: warning: this is the
location of the previous definition
In file included from
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modversions.h:158,
		 from
/usr/src/linux-2.4.19-gentoo-r10/include/linux/module.h:21,
		 from ksyms.c:14:
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/ksyms.ver:584: warning:
`del_timer_sync' redefined
/usr/src/linux-2.4.19-gentoo-r10/include/linux/timer.h:80: warning: this is the
location of the previous definition
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/ksyms.ver:678: warning:
`set_cpus_allowed' redefined
/usr/src/linux-2.4.19-gentoo-r10/include/linux/sched.h:531: warning: this is
the location of the previous definition
In file included from
/usr/src/linux-2.4.19-gentoo-r10/include/linux/interrupt.h:45,
		 from ksyms.c:21:
/usr/src/linux-2.4.19-gentoo-r10/include/asm/hardirq.h:41: warning:
`synchronize_irq' redefined
/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/i386_ksyms.ver:96:
warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/src/linux-2.4.19-gentoo-r10/include/linux/kernel_stat.h: In function
`kstat_irqs':
/usr/src/linux-2.4.19-gentoo-r10/include/linux/kernel_stat.h:46: `smp_num_cpus'
undeclared (first use in this function)
/usr/src/linux-2.4.19-gentoo-r10/include/linux/kernel_stat.h:46: (Each
undeclared identifier is reported only once
/usr/src/linux-2.4.19-gentoo-r10/include/linux/kernel_stat.h:46: for each
function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.19-gentoo-r10/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.19-gentoo-r10/kernel'
make: *** [_dir_kernel] Error 2
Comment 6 Phil Almquist 2002-12-24 12:33:17 UTC
update to previous attatchment / comment

make mrproper and starting from scratch seems to fix this problem, maybe this
could be considered a documentation bug then? ;)