Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7983 - gentoo sources - Can't build kernel without smp support
Summary: gentoo sources - Can't build kernel without smp support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-16 07:25 UTC by Alistair McDonald
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair McDonald 2002-09-16 07:25:18 UTC
I am attempting to build a new kernel from gentoo sources (sys-kernel/gentoo-sources-2.4.19-r9), 
without SMP support (from "make menuconfig", "Processor Type and Features" page)

The build 
failed with the error shown below.

Now, going by what I've read about on the forums,this may be 
known about. I didn't see anything about it in the installation guide, and I can't find an existing 
bug. So I'm raising one.

(workaround: enable SMP support)

(BTW Gentoo rocks. Whoever 
works on gentoo, many thanks!)

-------------------------------------
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-
r7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-alia
sing -fno-common -fomit-
frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4    -nostdinc -I
 
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -DKBUILD_BASENAME=uid16  -c -o uid16.o 
uid16.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r7/include -Wall -Wstrict-prototypes -
Wno-trigraphs -O2 -fno-strict-alia
sing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-
boundary=2 -march=i686 -malign-functions=4    -nostdinc -I
 /usr/lib/gcc-lib/i686-pc-linux-
gnu/2.95.3/include -DKBUILD_BASENAME=ksyms  -DEXPORT_SYMTAB -c ksyms.c
In file included from 
/usr/src/linux-2.4.19-gentoo-r7/include/linux/modversions.h:69,
                 from /usr/src/linux-
2.4.19-gentoo-r7/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.19-
gentoo-r7/include/linux/modules/dec_and_lock.ver:2: warning: `atomic_dec_and_lock' 
redefined
/usr/src/linux-2.4.19-gentoo-r7/include/linux/spinlock.h:67: warning: this is 
the location of the previous definition
In file included from /usr/src/linux-2.4.19-gentoo-
r7/include/linux/modversions.h:135,
                 from /usr/src/linux-2.4.19-gentoo-
r7/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.19-gentoo-
r7/include/linux/modules/i386_ksyms.ver:84: warning: `cpu_data' 
redefined
/usr/src/linux-2.4.19-gentoo-r7/include/asm/processor.h:80: warning: this is 
the location of the previous definition
/usr/src/linux-2.4.19-gentoo-
r7/include/linux/modules/i386_ksyms.ver:88: warning: `smp_num_cpus' 
redefined
/usr/src/linux-2.4.19-gentoo-r7/include/linux/smp.h:80: warning: this is the 
location of the previous definition
/usr/src/linux-2.4.19-gentoo-
r7/include/linux/modules/i386_ksyms.ver:90: warning: `cpu_online_map' 
redefined
/usr/src/linux-2.4.19-gentoo-r7/include/linux/smp.h:90: warning: this is the 
location of the previous definition
/usr/src/linux-2.4.19-gentoo-
r7/include/linux/modules/i386_ksyms.ver:104: warning: `smp_call_function' 
redefined
/usr/src/linux-2.4.19-gentoo-r7/include/linux/smp.h:89: warning: this is the 
location of the previous definition
In file included from /usr/src/linux-2.4.19-gentoo-
r7/include/linux/modversions.h:165,
                 from /usr/src/linux-2.4.19-gentoo-
r7/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.19-gentoo-
r7/include/linux/modules/ksyms.ver:558: warning: `del_timer_sync' 
redefined
/usr/src/linux-2.4.19-gentoo-r7/include/linux/timer.h:30: warning: this is the 
location of the previous definition
In file included from /usr/src/linux-2.4.19-gentoo-
r7/include/linux/interrupt.h:45,
                 from ksyms.c:21:
/usr/src/linux-2.4.19-gentoo-
r7/include/asm/hardirq.h:37: warning: `synchronize_irq' redefined
/usr/src/linux-
2.4.19-gentoo-r7/include/linux/modules/i386_ksyms.ver:92: warning: this is the location of 
the previous d
efinition
In file included from ksyms.c:17:
/usr/src/linux-2.4.19-gentoo-
r7/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux-2.4.19-gentoo-
r7/include/linux/kernel_stat.h:46: `smp_num_cpus' undeclared (first use in this 
function)
/usr/src/linux-2.4.19-gentoo-r7/include/linux/kernel_stat.h:46: (Each 
undeclared identifier is reported only once
/usr/src/linux-2.4.19-gentoo-
r7/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-
r7/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-
2.4.19-gentoo-r7/kernel'
make: *** [_dir_kernel] Error 2
----------------------------
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2002-09-16 18:13:53 UTC
Gentoo sources -r9 has always worked fine here w/o smp and Local APIC and
IO_APIC on. AFAIK  there has been a problem with quota support. Make sure quota
support is off under FS. and try recompiling.
Comment 2 Alistair McDonald 2002-09-18 01:41:55 UTC
OK, that appears to work w/o quota support in XFS. 

So, is it documented that you must have SMP 
for XFS, or is this a bug? If so, is there an existing bug or is this the first one on the subject.

Comment 3 Brad Cowan (RETIRED) gentoo-dev 2002-09-18 01:55:52 UTC
Ok, your confusing me :) U say your building gentoo-sources -r9, but your
problems that you posted are from compiling -r7, and also -r9 does not have XFS
support you need to use the new XFS sources :)
Comment 4 Brandon Low (RETIRED) gentoo-dev 2002-09-18 14:11:08 UTC
:) (I like to start things off on a smily face)

Did you make distclean or make mrproper between builds?  Are you sure you have
your /usr/src symlinks setup right?  As Brad said, gentoo-sources for the time
being does not support XFS, if you need XFS support, please use xfs-sources
Comment 5 Alistair McDonald 2002-09-19 09:30:17 UTC
:) (following your good idea)

Hi guys. After emailing Brad offline, I realise that I'm not 
entirely right here. 

I raised the bug on r9, but I'm compiling r7, and at the moment I'm not 
actually in a position to retest on r9 due to pressure of other work. 

If you want to 
delete/close this bug, that's fine. I'll leave that up to you guys, if that's OK. 

When I really 
need to do this again, then I'll get the latest and greatest and try again. If it fails then, I'll 
resurrect this bug. 

For the record, I did a make mrproper. You're right about the symlinks, 
lostlogic, I forgot about that, hence building r7 when I had r9 on the machine (doh!). 

Thanks 
for all your help,
Alistair