Subject: kernel compile stopped, make obj stopped
To: None <current-users@NetBSD.org>
From: Art Lemasters <slemas1@mindspring.com>
List: current-users
Date: 02/08/2004 19:31:19
Oops.  ...unintentionally sent this to the users list first.  It
might be an issue in current if it's not a result of a mistake
on my part.

   Is the following my error or an error in the code?


Art

   When trying to compile the kernel from /NetBSD-current/tar_files/src/
(files mostly dated 7th of this month at the NetBSD site, 6th after
the download),

******

	link MYKERNEL/netbsd
ld -T ../../../../arch/i386/conf/kern.ldscript -Ttext -c0100000 -e start -X -o netbsd ${SYSTEM_OBJ}
${EXTRA_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 `proc_trampoline':
locore.o(.text+0x30e): undefined reference to `cpu_info_primary'
locore.o: In function: `kcopy':
locore.o(.text+0x38f): undefined reference to `cpu_info_primary'
locore.o(.text+0x3c8): undefined reference to `cpu_info_primary'
locore.o(.text+0x3f6): more undefined references to `cpu_info_primary' follow
intr.o: In function `intr_allocate_slot':
intr.o(.text+0x5d4): undefined reference to `cpu_info_list'
intr.o(.text+0x61e): undefined reference to `cpu_info_primary'
intr.o(.text+0x637): undefined reference to `cpu_info_primary'
intr.o(.text+0x642): undefined reference to `cpu_info_primary'
intr.o(.text+0x6da): undefined reference to `cpu_info_primary'
intr.o(.text+0x6e0): undefined reference to `cpu_info_primary'
intr.o(.text+0x6e7): undefined reference to `cpu_info_primary'
gdt.o: In function `setgdt':
gdt.o(.text+0x30): undefined refernece to `cpu_info_list'
gdt.o: In function `gdt_init':
gdt.o(.text+0x148): undefined refernece to `cpu_info_list'
gdt.o(.text+0x15a): undefined reference to `cpu_info_list'
gdt.o(.text+0x16e): undefined reference to `cpu_info_list'
gdt.o: In function `gdt_grow':
gdt.o(.text+0x2ce): undefined reference to `cpu_info_list'
machdep.o: In function `i386_proc0_tss_ldt_init':
machdep.o(.text0x18c): undefined refernce to `cpu_info_primary'
machdep.o: In function `sendsig_siginfo':
machdep.o(.text0x729): undefined reference to `cpu_info_primary'
machdep.o: In function `sendsig':
machdep.o(.text0x983): undefined reference to `cpu_info_primary'
machdep.o: In funciton `cpu_reboot':
machdep.o(.text+0xad3): undefined reference to `cpu_info_primary'
machdep.o(.text+0xadc): undefined reference to `cpu_info_primary'
machdep.o(.text+0x1575): more undefined references to `cpu_info_primary' follow
pmap.o: In function `pmap_tlb_shootdown':
pmap.o(.text0x29f7): undefined reference to `cpus_attached'
pmap.o(.text0x2a0e): undefined reference to `cpu_info_primary'
pmap.o(.text0x2a1c): undefined reference to `cpu_info_primary'
pmap.o(.text0x2a26): undefined reference to `cpu_info_primary'
pmap.o(.text0x2a68): undefined reference to `cpu_info_primary'
pmap.o(.text0x2ad6): undefined reference to `cpu_info_primary'
pmap.o(.text0x2b67): undefined reference to `cpu_info_primary'
pmap.o(.text0x2b6f): undefined reference to `cpu_info_primary'
pmap.o(.text0x2b75): undefined reference to `cpu_info_primary'
pmap.o(.text0x2b97): more undefined references to `cpu_info_primary' follow
procfs_machdep.o: In function `procfs_getcpuinfstr':
procfs_machdep.o(.text+0x5c): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0xc8): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x108): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x1e4): undefined reference to `cpu_info_list'
syscall.o: In function `syscall_plain':
syscall.o(.text+0x33): undefined reference to `cpu_info_primary'
syscall.o(.text+0x191): undefined referenct to `cpu_info_primary'
syscall.o: In function `syscall_fancy':
syscall.o(.text+0x1ab): undefined reference to `cpu_info_primary'
syscall.o(.text+0x359): undefined reference to `cpu_info_primary'
syscall.o: In function `child_return':
syscall.o(.text+0x3fc): undefined reference to `cpu_info_primary'
trap.o(.text+0x9a): more undefined references to `cpu_info_primary' follow
*** Error code 1

Stop.
make: stopped in /sys/arch/i386/compile/MYKERNEL

******

And on another problem, trying to make obj ends with

obj ===> usr.bin/vgrind
make: Unclosed variable specification for CC
Segmentation fault - core dumped
*** Error code 139

Stop.
make: stopped in /usr/src/usr.bin
*** Error code 1

Stop.
make: stopped in /usr/src