Subject: i386 kernel fails to compile
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 12/02/2007 21:21:17
Hi,

have no luck trying to compile a new kernel from current -current
source on i386.

Kurt

    compile  SHUTTLEX/cpu.o
/u/NetBSD/src/sys/arch/x86/x86/cpu.c: In function 'cpu_boot_secondary':
/u/NetBSD/src/sys/arch/x86/x86/cpu.c:601: error: 'lapic_boot_timecount' und=
eclared (first use in this function)
/u/NetBSD/src/sys/arch/x86/x86/cpu.c:601: error: (Each undeclared identifie=
r is reported only once
/u/NetBSD/src/sys/arch/x86/x86/cpu.c:601: error: for each function it appea=
rs in.)
cc1: warnings being treated as errors
/u/NetBSD/src/sys/arch/x86/x86/cpu.c:601: warning: implicit declaration of =
function 'lapic_get_timecount'

*** Failed target:  cpu.o
*** Failed command: echo ' ' "compile SHUTTLEX/cpu.o"; : echo /u/NetBSD/hsh=
utti/i386/TOOLS/bin/i386--netbsdelf-gcc -pipe -ffreestanding -fno-zero-init=
ialized-in-bss -O2 -march=3Di586 -mtune=3Dpentiumpro -g -O2 -Werror -Wall -=
Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstr=
ict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-comp=
are -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -fno-st=
rict-aliasing -Di386 -I. -I/u/NetBSD/src/sys/../common/include -I/u/NetBSD/=
src/sys/arch -I/u/NetBSD/src/sys -nostdinc -DLKM -DWSKBD_USONLY -DMSGBUFSIZ=
E=3D"0x10000" -DMAXUSERS=3D64 -D_KERNEL -D_KERNEL_OPT -I/u/NetBSD/src/sys/l=
ib/libkern/../../../common/lib/libc/quad -I/u/NetBSD/src/sys/lib/libkern/..=
/../../common/lib/libc/string -I/u/NetBSD/src/sys/lib/libkern/../../../comm=
on/lib/libc/arch/i386/string -I/u/NetBSD/src/sys/dist/ipf -c /u/NetBSD/src/=
sys/arch/x86/x86/cpu.c; /u/NetBSD/hshutti/i386/TOOLS/bin/i386--netbsdelf-gc=
c -pipe -ffreestanding -fno-zero-initialized-in-bss -O2 -march=3Di586 -mtun=
e=3Dpentiumpro -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpoi=
nter-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcas=
t-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes =
-Wextra -Wno-unused-parameter -fno-strict-aliasing -Di386 -I. -I/u/NetBSD/s=
rc/sys/../common/include -I/u/NetBSD/src/sys/arch -I/u/NetBSD/src/sys -nost=
dinc -DLKM -DWSKBD_USONLY -DMSGBUFSIZE=3D"0x10000" -DMAXUSERS=3D64 -D_KERNE=
L -D_KERNEL_OPT -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/qu=
ad -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/string -I/u/Net=
BSD/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -I/u/NetB=
SD/src/sys/dist/ipf -c /u/NetBSD/src/sys/arch/x86/x86/cpu.c
*** Error code 1

Stop.
nbmake: stopped in /u/NetBSD/hshutti/i386/obj/sys/arch/i386/compile/SHUTTLEX

ERROR: Failed to make all in /u/NetBSD/hshutti/i386/obj/sys/arch/i386/compi=
le/SHUTTLEX
*** BUILD ABORTED ***