Ever since CVS was updated to work with 2.4.20-rc kernels I have been unable to
successfully compile with SMP not enabled.
If I have it enabled via make menuconfig all works well.
If I make that one change, then make dep; make bzImage, it errors out with the
below.
Am I doing something wrong, or is there a generic problem with this kernel?
==== Error Message (this is with the 2.4.20-rc4 Keith just put in cvs.)
gcc -D__KERNEL__ -I/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix
include -DKBUILD_BASENAME=ksyms -DEXPORT_SYMTAB -c ksyms.c
In file included from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modversions.h:67,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/module.h:21,
from ksyms.c:14:
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modules/dec_and_lock.ver:2:
warning: `atomic_dec_and_lock' redefined
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/spinlock.h:65:
warning: this is the location of the previous definition
In file included from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modversions.h:127,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/module.h:21,
from ksyms.c:14:
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modules/i386_ksyms.ver:82:
warning: `cpu_data' redefined
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/asm/processor.h:80:
warning: this is the location of the previous definition
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modules/i386_ksyms.ver:86:
warning: `smp_num_cpus' redefined
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/smp.h:80:
warning: this is the location of the previous definition
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modules/i386_ksyms.ver:88:
warning: `cpu_online_map' redefined
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/smp.h:88:
warning: this is the location of the previous definition
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modules/i386_ksyms.ver:102:
warning: `smp_call_function' redefined
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/smp.h:87:
warning: this is the location of the previous definition
In file included from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modversions.h:156,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/module.h:21,
from ksyms.c:14:
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modules/ksyms.ver:578:
warning: `del_timer_sync' redefined
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/timer.h:30:
warning: this is the location of the previous definition
In file included from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/interrupt.h:45,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/asm/highmem.h:25,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/highmem.h:11,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/vmalloc.h:8,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/asm/io.h:47,
from
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/blkdev.h:11,
from ksyms.c:15:
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/asm/hardirq.h:37:
warning: `synchronize_irq' redefined
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/modules/i386_ksyms.ver:90:
warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/kernel_stat.h: In
function `kstat_irqs':
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/kernel_stat.h:57:
`smp_num_cpus' undeclared (first use in this function)
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/kernel_stat.h:57:
(Each undeclared identifier is reported only once
/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/include/linux/kernel_stat.h:57:
for each function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory
`/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory
`/usr/local/TruStore/xfs_src/linux-2.4-xfs/linux/kernel'
make: *** [_dir_kernel] Error 2
Greg Freemyer
Internet Engineer
Deployment and Integration Specialist
Compaq ASE - Tru64 v4, v5
Compaq Master ASE - SAN Architect
The Norcross Group
www.NorcrossGroup.com
|