Subject: compiling kernel on and64 fails
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 10/01/2007 13:39:16
Hi,
trying to compile a new kernel on amd64 (kernel & userland -current from
ca. Sep. 15, source cvs update'd half an hour or so ago) fails in
linux_machdep.c:
building standard kern library
compile W2100Z/busfunc.o
compile W2100Z/copy.o
compile W2100Z/cpufunc.o
compile W2100Z/linux32_sigcode.o
compile W2100Z/linux_machdep.o
cc1: warnings being treated as errors
/u/NetBSD/src/sys/compat/linux/arch/amd64/linux_machdep.c: In function 'lin=
ux_sys_rt_sigreturn':
/u/NetBSD/src/sys/compat/linux/arch/amd64/linux_machdep.c:406: warning: dec=
laration of 'fxsave' shadows a global declaration
=2E/x86/cpufunc.h:95: warning: shadowed declaration is here
*** Failed target: linux_machdep.o
*** Failed command: echo ' ' "compile W2100Z/linux_machdep.o"; : echo /u/Ne=
tBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -pipe -mcmodel=3Dkernel -mno-r=
ed-zone -ffreestanding -fno-zero-initialized-in-bss -g -O2 -fno-omit-frame-=
pointer -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wm=
issing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite=
-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-al=
iasing -Damd64 -Dx86_64 -I. -I/u/NetBSD/src/sys/../common/include -I/u/NetB=
SD/src/sys/arch -I/u/NetBSD/src/sys -nostdinc -DLKM -DMAXUSERS=3D64 -D_KERN=
EL -D_KERNEL_OPT -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/q=
uad -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/string -I/u/Ne=
tBSD/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -I/u/N=
etBSD/src/sys/dist/ipf -c /u/NetBSD/src/sys/compat/linux/arch/amd64/linux_m=
achdep.c; /u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -pipe -mcmodel=
=3Dkernel -mno-red-zone -ffreestanding -fno-zero-initialized-in-bss -g -O2 =
-fno-omit-frame-pointer -Werror -Wall -Wno-main -Wno-format-zero-length -Wp=
ointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wc=
ast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attribute=
s -fno-strict-aliasing -Damd64 -Dx86_64 -I. -I/u/NetBSD/src/sys/../common/i=
nclude -I/u/NetBSD/src/sys/arch -I/u/NetBSD/src/sys -nostdinc -DLKM -DMAXUS=
ERS=3D64 -D_KERNEL -D_KERNEL_OPT -I/u/NetBSD/src/sys/lib/libkern/../../../c=
ommon/lib/libc/quad -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/lib=
c/string -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_=
64/string -I/u/NetBSD/src/sys/dist/ipf -c /u/NetBSD/src/sys/compat/linux/ar=
ch/amd64/linux_machdep.c
*** Error code 1
Stop.
nbmake: stopped in /u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/W2100Z
ERROR: Failed to make all in /u/NetBSD/arch/amd64/obj/sys/arch/amd64/compil=
e/W2100Z
*** BUILD ABORTED ***
Kurt