Re: Kernel compile trouble

From: Bernd Petrovitsch (bernd@gams.at)
Date: Sun Jan 07 2001 - 07:52:09 EST


In message <3A57FA27.348780BC@mountain.net>, Tom Leete wrote:
>You don't show your .config, but I'll make a wild guess you're compiling for
>SMP+3DNow (probably by selecting Athlon processor). If so pick one of:

For me it is the same.

> a) Deselect SMP, make clean make dep, etc.

gives:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.0/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -malign-functions=4 -DEXPORT_SYMTAB -c ksyms.c
In file included from /usr/src/linux-2.4.0/include/linux/modversions.h:93,
                 from /usr/src/linux-2.4.0/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:84: warning: `cpu_data' redefined
/usr/src/linux-2.4.0/include/asm/processor.h:78: warning: this is the location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:88: warning: `smp_num_cpus' redefined
/usr/src/linux-2.4.0/include/linux/smp.h:80: warning: this is the location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:90: warning: `cpu_online_map' redefined
/usr/src/linux-2.4.0/include/linux/smp.h:88: warning: this is the location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:92: warning: `synchronize_irq' redefined
/usr/src/linux-2.4.0/include/asm/hardirq.h:37: warning: this is the location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:104: warning: `smp_call_function' redefined
/usr/src/linux-2.4.0/include/linux/smp.h:87: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.0/include/linux/modversions.h:117,
                 from /usr/src/linux-2.4.0/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.0/include/linux/modules/ksyms.ver:504: warning: `del_timer_sync' redefined
/usr/src/linux-2.4.0/include/linux/timer.h:34: warning: this is the location of the previous definition
/usr/src/linux-2.4.0/include/linux/kernel_stat.h: In function `kstat_irqs':
In file included from ksyms.c:17:
/usr/src/linux-2.4.0/include/linux/kernel_stat.h:48: `smp_num_cpus' undeclared (first use in this function)
/usr/src/linux-2.4.0/include/linux/kernel_stat.h:48: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.0/include/linux/kernel_stat.h:48: for each function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.0/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.0/kernel'
make: *** [_dir_kernel] Error 2

> b) Downgrade processor selection to i686 or k6

Does not help (for me).

> c) See the patch I posted here Tuesday.

see above - SMP not selected.

        Bernd



Bernd Petrovitsch Email : bernd@gams.at
G.A.M.S GmbH Fax : +43 1 8958499-60
Stiegerg. 15-17/8 A-1150 Vienna/Austria/Europe
                     LUGA : http://www.luga.at



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:28 EST