Subject: i386 MP build error
To: None <tech-smp@netbsd.org>
From: Mihai Chelaru <kefren@netbsd.ro>
List: tech-smp
Date: 05/17/2002 20:14:22
Hello,

While compiling the MP kernel i got these errors:

making sure the compat library is up to date...
`libcompat.a' is up to date.
making sure the kern library is up to date...
`libkern.o' is up to date.
ld -T ../../../../arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o 
netbsd ${SYSTEM_OBJ} vers.o
locore.o: In function `start':
locore.o(.text+0x97): undefined reference to `cpu_info_primary'
locore.o: In function `try586':
locore.o(.text+0x16a): undefined reference to `cpu_info_primary'
init_main.o: In function `main':
init_main.o(.text+0x739): undefined reference to 
`cpu_boot_secondary_processors'
kern_sysctl.o: In function `sysctl_docptime':
kern_sysctl.o(.text+0x295): undefined reference to `cpu_info_list'
kern_sysctl.o: In function `sysctl_ncpus':
kern_sysctl.o(.text+0x2ef): undefined reference to `cpu_info_list'
autoconf.o: In function `cpu_configure':
autoconf.o(.text+0x84): undefined reference to `cpu_init_idle_pcbs'
db_interface.o: In function `db_resume_others':
db_interface.o(.text+0xeb): undefined reference to `cpu_info'
db_interface.o: In function `db_mach_cpu':
db_interface.o(.text+0x3ed): undefined reference to `cpu_debug_dump'
db_interface.o(.text+0x413): undefined reference to `cpu_info'
gdt.o: In function `setgdt':
gdt.o(.text+0x30): undefined reference to `cpu_info_list'
gdt.o: In function `gdt_grow':
gdt.o(.text+0x292): undefined reference to `cpu_info_list'
machdep.o: In function `i386_proc0_tss_ldt_init':
machdep.o(.text+0x4a3): undefined reference to `cpu_info_primary'
machdep.o: In function `initgdt':
machdep.o(.text+0x25b6): undefined reference to `cpu_info_primary'
machdep.o: In function `init386':
machdep.o(.text+0x2601): undefined reference to `cpu_info_primary'
machdep.o(.text+0x260b): undefined reference to `cpu_info_primary'
machdep.o(.text+0x261f): undefined reference to `cpu_info_primary'
machdep.o(.text+0x2ea6): more undefined references to `cpu_info_primary' 
follow
mtrr_i686.o: In function `i686_mtrr_reload':
mtrr_i686.o(.text+0x86): undefined reference to `cpus_running'
pmap.o: In function `pmap_extract':
pmap.o(.text+0xf1e): undefined reference to `cpu_info_list'
pmap.o(.text+0x1032): undefined reference to `cpu_info_list'
pmap.o: In function `pmap_do_remove':
pmap.o(.text+0x1992): undefined reference to `cpu_info_list'
pmap.o(.text+0x1c42): undefined reference to `cpu_info_list'
pmap.o(.text+0x1f4e): undefined reference to `cpu_info_list'
pmap.o(.text+0x2231): more undefined references to `cpu_info_list' follow
mptramp.o: In function `cpu_spinup_trampoline':
mptramp.o(.text+0x60): undefined reference to `cpu_info'
mptramp.o: In function `cpu_spinup_trampoline_end':
mptramp.o(.text+0xd0): undefined reference to `cpu_hatch'
ipifuncs.o: In function `i386_broadcast_ipi':
ipifuncs.o(.text+0xf9): undefined reference to `cpu_info_list'
ipifuncs.o: In function `i386_multicast_ipi':
ipifuncs.o(.text+0x155): undefined reference to `cpu_info_list'
npx.o: In function `npxattach':
npx.o(.text+0x28e): undefined reference to `cpu_info_primary'
mpbios.o: In function `mpbios_scan':
mpbios.o(.text+0x57a): undefined reference to `cpu_info_primary'
mpbios.o(.text+0x582): undefined reference to `cpu_info_primary'
lapic.o: In function `lapic_map':
lapic.o(.text+0x2f): undefined reference to `cpu_init_first'
*** Error code 1

Stop.
make: stopped in /sys/arch/i386/compile/Kefren.MP

Any ideas ?
Thanks,
Mihai