Subject: clue?
To: BSD-SMP List <tech-smp@netbsd.org>
From: Greywolf <greywolf@starwolf.com>
List: tech-smp
Date: 01/14/2002 01:06:32
Hello, all

I did this:

cd /sys
cvs update -d -P -D "12/29/2001 14:45:06 EST" .
cd arch/i386
cvs update -d -P -rsommerfeld_i386mp_1 .
cd conf
<make myself an MP config file>
config RIVENDELL.MP
cd ../compile/RIVENDELL.MP
make

And I get the following (I note that there is a cpu.c file which
never seems to turn into a cpu.o... but it seems to have all the
necessary references):

...
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'
locore.o: In function `kcopy':
locore.o(.text+0x370): undefined reference to `cpu_info'
locore.o(.text+0x3b4): undefined reference to `cpu_info'
locore.o(.text+0x3ee): undefined reference to `cpu_info'
locore.o: In function `i386_copyout':
locore.o(.text+0x44d): undefined reference to `cpu_info'
locore.o(.text+0x499): undefined reference to `cpu_info'
locore.o(.text+0x4f4): more undefined references to `cpu_info' follow
init_main.o: In function `main':
init_main.o(.text+0x74d): undefined reference to `cpu_boot_secondary_processors'
kern_clock.o: In function `hardclock':
kern_clock.o(.text+0x2f6): undefined reference to `cpu_info'
kern_clock.o: In function `statclock':
kern_clock.o(.text+0xd8a): undefined reference to `cpu_info'
kern_exit.o: In function `exit1':
kern_exit.o(.text+0x338): undefined reference to `cpu_info'
kern_exit.o: In function `reaper':
kern_exit.o(.text+0x3ba): undefined reference to `cpu_info'
kern_fork.o: In function `proc_trampoline_mp':
kern_fork.o(.text+0x722): undefined reference to `cpu_info'
kern_kthread.o(.text+0x134): more undefined references to `cpu_info' follow
kern_sysctl.o: In function `kern_sysctl':
kern_sysctl.o(.text+0x9e7): undefined reference to `cpu_info_list'
kern_sysctl.o: In function `hw_sysctl':
kern_sysctl.o(.text+0xbcf): undefined reference to `cpu_info_list'
kern_time.o: In function `settime':
kern_time.o(.text+0x103): undefined reference to `cpu_info'
subr_prf.o: In function `uprintf':
subr_prf.o(.text+0x3c1): undefined reference to `cpu_info'
sys_process.o: In function `sys_ptrace':
sys_process.o(.text+0x56d): undefined reference to `ptrace_machdep_dorequest'
tty.o: In function `ttioctl':
tty.o(.text+0xd19): undefined reference to `cpu_info'
tty.o: In function `ttread':
tty.o(.text+0x1987): undefined reference to `cpu_info'
tty.o: In function `ttwrite':
tty.o(.text+0x214f): undefined reference to `cpu_info'
tty_pty.o: In function `ptsread':
tty_pty.o(.text+0x44b): undefined reference to `cpu_info'
tty_tb.o: In function `tbclose':
tty_tb.o(.text+0x52a): undefined reference to `cpu_info'
uipc_socket.o(.text+0x17): more undefined references to `cpu_info' follow
procfs_subr.o: In function `procfs_allocvp':
procfs_subr.o(.text+0x1e5): undefined reference to `procfs_machdep_allocvp'
procfs_subr.o: In function `procfs_rw':
procfs_subr.o(.text+0x395): undefined reference to `procfs_machdep_rw'
procfs_vnops.o: In function `procfs_getattr':
procfs_vnops.o(.text+0x25a): undefined reference to `cpu_info'
procfs_vnops.o(.text+0x3fe): undefined reference to `procfs_machdep_getattr'
procfs_vnops.o: In function `procfs_readlink':
procfs_vnops.o(.text+0x10be): undefined reference to `cpu_info'
procfs_vnops.o(.rodata+0xec): undefined reference to `procfs_machdep_validxmmregs'
spec_vnops.o: In function `spec_open':
spec_vnops.o(.text+0x220): undefined reference to `cpu_info'
sync_subr.o: In function `sched_sync':
sync_subr.o(.text+0x14): undefined reference to `cpu_info'
sync_subr.o(.text+0xc1): undefined reference to `cpu_info'
sync_subr.o(.text+0xdd): undefined reference to `cpu_info'
msdosfs_vfsops.o: In function `msdosfs_mountroot':
msdosfs_vfsops.o(.text+0x17): undefined reference to `cpu_info'
if.o(.text+0x526): more undefined references to `cpu_info' follow
autoconf.o: In function `cpu_configure':
autoconf.o(.text+0x844): undefined reference to `cpu_init_idle_pcbs'
db_interface.o: In function `kdb_trap':
db_interface.o(.text+0x15b): undefined reference to `cpu_info'
db_interface.o(.text+0x253): undefined reference to `cpu_info'
db_interface.o: In function `db_mach_cpu':
db_interface.o(.text+0x341): undefined reference to `cpu_debug_dump'
db_interface.o(.text+0x365): undefined reference to `cpu_info'
db_interface.o: In function `ddb_suspend':
db_interface.o(.text+0x46b): undefined reference to `cpu_info'
machdep.o: In function `sendsig':
machdep.o(.text+0x1572): undefined reference to `cpu_info'
machdep.o: In function `init386':
machdep.o(.text+0x1f0d): undefined reference to `cpu_info_primary'
machdep.o(.text+0x1f17): undefined reference to `cpu_info_primary'
machdep.o(.text+0x1f3a): undefined reference to `cpu_info'
machdep.o: In function `i386_proc0_tss_ldt_init':
machdep.o(.text+0x2cca): undefined reference to `cpu_info'
mem.o: In function `mmopen':
mem.o(.text+0x2cc): undefined reference to `cpu_info'
mem.o: In function `mmmmap':
mem.o(.text+0x305): undefined reference to `cpu_info'
tsc_microtime.o: In function `tsc_microtime':
tsc_microtime.o(.text+0x14): undefined reference to `cpu_info'
mtrr_i686.o: In function `i686_mtrr_reload':
mtrr_i686.o(.text+0x46): undefined reference to `cpus_running'
pmap.o: In function `pmap_bootstrap':
pmap.o(.text+0xdc): undefined reference to `cpu_info'
pmap.o: In function `pmap_extract':
pmap.o(.text+0x9b7): undefined reference to `cpu_info'
pmap.o(.text+0x9e6): undefined reference to `cpu_info'
pmap.o(.text+0xa0f): undefined reference to `cpu_info'
pmap.o(.text+0xa72): undefined reference to `cpu_info'
pmap.o(.text+0xa8d): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_extract':
pmap.o(.text+0xa9c): undefined reference to `cpu_info_list'
pmap.o(.text+0xb95): undefined reference to `cpu_info'
pmap.o(.text+0xbb0): undefined reference to `cpu_info'
pmap.o(.text+0xbbf): undefined reference to `cpu_info_list'
pmap.o(.text+0xc84): undefined reference to `cpu_info'
pmap.o: In function `pmap_do_remove':
pmap.o(.text+0x127b): undefined reference to `cpu_info'
pmap.o(.text+0x12aa): undefined reference to `cpu_info'
pmap.o(.text+0x12d3): undefined reference to `cpu_info'
pmap.o(.text+0x1336): undefined reference to `cpu_info'
pmap.o(.text+0x1351): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_do_remove':
pmap.o(.text+0x1360): undefined reference to `cpu_info_list'
pmap.o(.text+0x156e): undefined reference to `cpu_info'
pmap.o(.text+0x1609): undefined reference to `cpu_info'
pmap.o(.text+0x1624): undefined reference to `cpu_info'
pmap.o(.text+0x1633): undefined reference to `cpu_info_list'
pmap.o(.text+0x16f8): undefined reference to `cpu_info'
pmap.o(.text+0x188f): undefined reference to `cpu_info'
pmap.o(.text+0x1939): undefined reference to `cpu_info'
pmap.o(.text+0x1954): undefined reference to `cpu_info'
pmap.o(.text+0x1963): undefined reference to `cpu_info_list'
pmap.o(.text+0x1a28): undefined reference to `cpu_info'
pmap.o: In function `pmap_page_remove':
pmap.o(.text+0x1b93): undefined reference to `cpu_info'
pmap.o(.text+0x1bbb): undefined reference to `cpu_info'
pmap.o(.text+0x1be3): undefined reference to `cpu_info'
pmap.o(.text+0x1c40): undefined reference to `cpu_info'
pmap.o(.text+0x1c5b): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_page_remove':
pmap.o(.text+0x1c6a): undefined reference to `cpu_info_list'
pmap.o(.text+0x1d7d): undefined reference to `cpu_info'
pmap.o(.text+0x1d98): undefined reference to `cpu_info'
pmap.o(.text+0x1da7): undefined reference to `cpu_info_list'
pmap.o(.text+0x1e6c): undefined reference to `cpu_info'
pmap.o(.text+0x1f1c): undefined reference to `cpu_info'
pmap.o(.text+0x1fbd): undefined reference to `cpu_info'
pmap.o(.text+0x1fd8): undefined reference to `cpu_info'
pmap.o(.text+0x1fe7): undefined reference to `cpu_info_list'
pmap.o(.text+0x20ac): undefined reference to `cpu_info'
pmap.o: In function `pmap_test_attrs':
pmap.o(.text+0x2353): undefined reference to `cpu_info'
pmap.o(.text+0x237b): undefined reference to `cpu_info'
pmap.o(.text+0x23a3): undefined reference to `cpu_info'
pmap.o(.text+0x2400): undefined reference to `cpu_info'
pmap.o(.text+0x241b): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_test_attrs':
pmap.o(.text+0x242a): undefined reference to `cpu_info_list'
pmap.o(.text+0x252d): undefined reference to `cpu_info'
pmap.o(.text+0x2548): undefined reference to `cpu_info'
pmap.o(.text+0x2557): undefined reference to `cpu_info_list'
pmap.o(.text+0x261c): undefined reference to `cpu_info'
pmap.o: In function `pmap_clear_attrs':
pmap.o(.text+0x27b7): undefined reference to `cpu_info'
pmap.o(.text+0x27df): undefined reference to `cpu_info'
pmap.o(.text+0x2807): undefined reference to `cpu_info'
pmap.o(.text+0x2864): undefined reference to `cpu_info'
pmap.o(.text+0x287f): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_clear_attrs':
pmap.o(.text+0x288e): undefined reference to `cpu_info_list'
pmap.o(.text+0x29b9): undefined reference to `cpu_info'
pmap.o(.text+0x29d4): undefined reference to `cpu_info'
pmap.o(.text+0x29e3): undefined reference to `cpu_info_list'
pmap.o(.text+0x2aa8): undefined reference to `cpu_info'
pmap.o: In function `pmap_write_protect':
pmap.o(.text+0x2b8f): undefined reference to `cpu_info'
pmap.o(.text+0x2bbe): undefined reference to `cpu_info'
pmap.o(.text+0x2be7): undefined reference to `cpu_info'
pmap.o(.text+0x2c4a): undefined reference to `cpu_info'
pmap.o(.text+0x2c65): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_write_protect':
pmap.o(.text+0x2c74): undefined reference to `cpu_info_list'
pmap.o(.text+0x2e11): undefined reference to `cpu_info'
pmap.o(.text+0x2e2c): undefined reference to `cpu_info'
pmap.o(.text+0x2e3b): undefined reference to `cpu_info_list'
pmap.o(.text+0x2f00): undefined reference to `cpu_info'
pmap.o: In function `pmap_unwire':
pmap.o(.text+0x2f93): undefined reference to `cpu_info'
pmap.o(.text+0x2fc2): undefined reference to `cpu_info'
pmap.o(.text+0x2feb): undefined reference to `cpu_info'
pmap.o(.text+0x304e): undefined reference to `cpu_info'
pmap.o(.text+0x3069): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_unwire':
pmap.o(.text+0x3078): undefined reference to `cpu_info_list'
pmap.o(.text+0x317d): undefined reference to `cpu_info'
pmap.o(.text+0x3198): undefined reference to `cpu_info'
pmap.o(.text+0x31a7): undefined reference to `cpu_info_list'
pmap.o(.text+0x326c): undefined reference to `cpu_info'
pmap.o: In function `pmap_enter':
pmap.o(.text+0x32ff): undefined reference to `cpu_info'
pmap.o(.text+0x332e): undefined reference to `cpu_info'
pmap.o(.text+0x3357): undefined reference to `cpu_info'
pmap.o(.text+0x33ba): undefined reference to `cpu_info'
pmap.o(.text+0x33d5): more undefined references to `cpu_info' follow
pmap.o: In function `pmap_enter':
pmap.o(.text+0x33e4): undefined reference to `cpu_info_list'
pmap.o(.text+0x3af1): undefined reference to `cpu_info'
pmap.o(.text+0x3b0c): undefined reference to `cpu_info'
pmap.o(.text+0x3b1b): undefined reference to `cpu_info_list'
pmap.o(.text+0x3be0): undefined reference to `cpu_info'
pmap.o: In function `pmap_tlb_shootdown':
pmap.o(.text+0x3e73): undefined reference to `cpu_info'
pmap.o(.text+0x3ec1): undefined reference to `cpu_info_list'
pmap.o: In function `pmap_activate':
pmap.o(.text+0x418c): undefined reference to `cpu_info'
pmap.o: In function `pmap_tlb_shootnow':
pmap.o(.text+0x420b): undefined reference to `cpu_info'
pmap.o(.text+0x4252): undefined reference to `cpu_info_list'
procfs_machdep.o: In function `procfs_getcpuinfstr':
procfs_machdep.o(.text+0xe): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0xdc): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x148): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x183): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x20e): more undefined references to `cpu_info_list' follow
syscall.o: In function `syscall_plain':
syscall.o(.text+0x1a): undefined reference to `cpu_info'
syscall.o(.text+0x16d): undefined reference to `cpu_info'
syscall.o: In function `syscall_fancy':
syscall.o(.text+0x1a2): undefined reference to `cpu_info'
syscall.o(.text+0x329): undefined reference to `cpu_info'
syscall.o: In function `child_return':
syscall.o(.text+0x405): undefined reference to `cpu_info'
trap.o(.text+0x14): more undefined references to `cpu_info' follow
mptramp.o: In function `cpu_spinup_trampoline_end':
mptramp.o(.text+0x201): undefined reference to `cpu_hatch'
ipifuncs.o: In function `i386_send_ipi':
ipifuncs.o(.text+0x42): undefined reference to `cpu_info'
ipifuncs.o: In function `i386_broadcast_ipi':
ipifuncs.o(.text+0x72): undefined reference to `cpu_info'
ipifuncs.o(.text+0x79): undefined reference to `cpu_info_list'
ipifuncs.o: In function `i386_multicast_ipi':
ipifuncs.o(.text+0xcf): undefined reference to `cpu_info_list'
ipifuncs.o(.text+0x114): undefined reference to `cpu_info'
ipifuncs.o: In function `i386_ipi_handler':
ipifuncs.o(.text+0x150): undefined reference to `cpu_info'
scsipiconf.o: In function `scsipi_command':
scsipiconf.o(.text+0x20): undefined reference to `cpu_info'
scsipiconf.o(.text+0xa5): undefined reference to `cpu_info'
scsiconf.o: In function `scsi_probe_bus':
scsiconf.o(.text+0x7d): undefined reference to `cpu_info'
clock.o(.text+0x1de): more undefined references to `cpu_info' follow
npx.o: In function `npxattach':
npx.o(.text+0x84b): undefined reference to `cpu_info_primary'
mpbios.o: In function `mpbios_scan':
mpbios.o(.text+0x6c2): undefined reference to `cpu_info_primary'
mpbios.o(.text+0x6ca): undefined reference to `cpu_info_primary'
lapic.o: In function `lapic_set_lvt':
lapic.o(.text+0x12): undefined reference to `cpu_info'
lapic.o: In function `lapic_boot_init':
lapic.o(.text+0x377): undefined reference to `cpu_init_first'
lapic.o: In function `lapic_clockintr':
lapic.o(.text+0x592): undefined reference to `cpu_info'
svr4_machdep.o: In function `svr4_sendsig':
svr4_machdep.o(.text+0x17): undefined reference to `cpu_info'
svr4_machdep.o: In function `svr4_fasttrap':
svr4_machdep.o(.text+0x2a2): undefined reference to `cpu_info'
svr4_sigcode.o: In function `Xsvr4_fasttrap':
svr4_sigcode.o(.text+0x42): undefined reference to `cpu_info'
svr4_syscall.o: In function `svr4_syscall_plain':
svr4_syscall.o(.text+0x1a): undefined reference to `cpu_info'
svr4_syscall.o(.text+0x151): more undefined references to `cpu_info' follow
*** Error code 1

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


				--*greywolf;
--
NetBSD: Twice the Bits-Clean of other Leading OSes.