[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Kernel build problem (2.4.18 no SMP)



My Debian 2.4.18 kernel was originally built with SMP enabled.  After
seeing reference to sound problems with the SMP kernel, I decided to
rebuild without SMP support.  I ran 'make config' and changed only the
SMP option.  Then 'make dep' and finally 'make', which fails with a
large number of warnings and an error when trying to compile ksyms.c. 
The final error message is that smp_num_cpus is undeclared.

My machine is a P4.

The (rather large) output follows:

make CFLAGS="-D__KERNEL__ -I/usr/src/kernel-source-2.4.18/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 " -C  kernel
make[1]: Entering directory `/usr/src/kernel-source-2.4.18/kernel'
make all_targets
make[2]: Entering directory `/usr/src/kernel-source-2.4.18/kernel'
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.18/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686   -DKBUILD_BASENAME=ksyms  -DEXPORT_SYMTAB -c ksyms.c
In file included from
/usr/src/kernel-source-2.4.18/include/linux/modversions.h:64,
                 from
/usr/src/kernel-source-2.4.18/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/kernel-source-2.4.18/include/linux/modules/dec_and_lock.ver:2:
warning: `atomic_dec_and_lock' redefined
/usr/src/kernel-source-2.4.18/include/linux/spinlock.h:48: warning: this
is the location of the previous definition
In file included from
/usr/src/kernel-source-2.4.18/include/linux/modversions.h:117,
                 from
/usr/src/kernel-source-2.4.18/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/kernel-source-2.4.18/include/linux/modules/i386_ksyms.ver:80:
warning: `cpu_data' redefined
/usr/src/kernel-source-2.4.18/include/asm/processor.h:79: warning: this
is the location of the previous definition
/usr/src/kernel-source-2.4.18/include/linux/modules/i386_ksyms.ver:84:
warning: `smp_num_cpus' redefined
/usr/src/kernel-source-2.4.18/include/linux/smp.h:80: warning: this is
the location of the previous definition
/usr/src/kernel-source-2.4.18/include/linux/modules/i386_ksyms.ver:86:
warning: `cpu_online_map' redefined
/usr/src/kernel-source-2.4.18/include/linux/smp.h:88: warning: this is
the location of the previous definition
/usr/src/kernel-source-2.4.18/include/linux/modules/i386_ksyms.ver:100:
warning: `smp_call_function' redefined
/usr/src/kernel-source-2.4.18/include/linux/smp.h:87: warning: this is
the location of the previous definition
In file included from
/usr/src/kernel-source-2.4.18/include/linux/modversions.h:144,
                 from
/usr/src/kernel-source-2.4.18/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/kernel-source-2.4.18/include/linux/modules/ksyms.ver:526:
warning: `del_timer_sync' redefined
/usr/src/kernel-source-2.4.18/include/linux/timer.h:30: warning: this is
the location of the previous definition
In file included from
/usr/src/kernel-source-2.4.18/include/linux/interrupt.h:45,
                 from ksyms.c:21:
/usr/src/kernel-source-2.4.18/include/asm/hardirq.h:37: warning:
`synchronize_irq' redefined
/usr/src/kernel-source-2.4.18/include/linux/modules/i386_ksyms.ver:88:
warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/src/kernel-source-2.4.18/include/linux/kernel_stat.h: In function
`kstat_irqs':
/usr/src/kernel-source-2.4.18/include/linux/kernel_stat.h:48:
`smp_num_cpus' undeclared (first use in this function)
/usr/src/kernel-source-2.4.18/include/linux/kernel_stat.h:48: (Each
undeclared identifier is reported only once
/usr/src/kernel-source-2.4.18/include/linux/kernel_stat.h:48: for each
function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.4.18/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.18/kernel'
make: *** [_dir_kernel] Error 2

What do I need to do to make the build work OK?

thanks
Gib
-- 
--------------------------------------------
Gib Bogle              bogle@ihug.co.nz
1/44 Arthur St         Tel: (64-9) 525-6878
Ellerslie, N.Z.        Fax: (64-9) 525-6878
--------------------------------------------


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: