Can't make with SMP off and Modules on

From: Larry Colen - Open Source Group (lrc@inow.com)
Date: Thu May 25 2000 - 22:56:48 EST


On a Redhat 6.1 installation, I have the 2.2.14 kernel. If I configure
it with SMP off and Modules on, I get the following errors.

gcc -D__KERNEL__ -I/u/usr/src/clunix/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malig
n-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DEXPORT_SYMTAB -c ksym
s.c
In file included from /u/usr/src/clunix/linux/include/linux/modversions.h:17,
                 from /u/usr/src/clunix/linux/include/linux/module.h:19,
                 from ksyms.c:14:
/u/usr/src/clunix/linux/include/linux/modules/i386_ksyms.ver:62: warning: `cpu_da
ta' redefined
/u/usr/src/clunix/linux/include/asm/processor.h:96: warning: this is the location
 of the previous definition
/u/usr/src/clunix/linux/include/linux/modules/i386_ksyms.ver:72: warning: `smp_nu
m_cpus' redefined
/u/usr/src/clunix/linux/include/linux/smp.h:77: warning: this is the location of
the previous definition
/u/usr/src/clunix/linux/include/linux/modules/i386_ksyms.ver:98: warning: `smp_ca
ll_function' redefined
/u/usr/src/clunix/linux/include/linux/smp.h:83: warning: this is the location of
the previous definition
In file included from /u/usr/src/clunix/linux/include/linux/interrupt.h:51,
                 from ksyms.c:21:
/u/usr/src/clunix/linux/include/asm/hardirq.h:23: warning: `synchronize_irq' rede
fined
/u/usr/src/clunix/linux/include/linux/modules/i386_ksyms.ver:78: warning: this is
 the location of the previous definition
In file included from /u/usr/src/clunix/linux/include/linux/interrupt.h:52,
                 from ksyms.c:21:
/u/usr/src/clunix/linux/include/asm/softirq.h:72: warning: `synchronize_bh' redef
ined
/u/usr/src/clunix/linux/include/linux/modules/i386_ksyms.ver:80: warning: this is
 the location of the previous definition
/u/usr/src/clunix/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
In file included from ksyms.c:17:
/u/usr/src/clunix/linux/include/linux/kernel_stat.h:44: `smp_num_cpus' undeclared
 (first use in this function)
/u/usr/src/clunix/linux/include/linux/kernel_stat.h:44: (Each undeclared identifi
er is reported only once
/u/usr/src/clunix/linux/include/linux/kernel_stat.h:44: for each function it appe
ars in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/u/usr/src/clunix/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/u/usr/src/clunix/linux/kernel'
make: *** [_dir_kernel] Error 2

===============================================================
This also happened on a "stock 2.2.12-20" kernel on a 6.1 system, but
when a friend tried it with 2.2.13 on a Suse 6.4(?) system, it built
fine for him. I can get it to compile if I turn either SMP on, or
Modules off. Unfortunately, Vmware complains if I try to run with SMP
on, on a uniprocessor machine. It also complains if I try to run with
modules turned off.

Has anyone else seen this build problem with the 2.2 kernel? Is there a
known solution?

  Thanks for any help,
     Larry

-- 
     Larry Colen				 lrc@opensourcegroup.com
www.opensourcegroup.com               The open source solutions integrator

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



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:15 EST