Subject: building a -current/xen kernel fails
To: None <current-users@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: port-xen
Date: 12/08/2004 09:42:15
After creating a Xen toolchain with "build.sh -m xen -a i386 tools",
I'm trying to build a kernel (nbconfig, nbmake-xen), but get:

 	% nbmake-xen
 	rm -f i386
 	ln -s ../../../../arch/i386/include i386
 	rm -f x86
 	ln -s ../../../../arch/x86/include x86
 	rm -rf xen-ma
 	mkdir xen-ma
 	ln -s ../i386 xen-ma/machine
 	depending the kern library objects
 	depending the compat library objects
 	#    create  GENERIC/assym.h
 	cat ../../../../arch/xen/i386/genassym.cf  |  sh ../../../../kern/genassym.sh /disk4/cvs/src-current/tooldir.NetBSD-2.0-i386/bin/i386--netbsdelf-gcc      -ffreestanding   -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss  -Di386 -I. -I/usr/cvs/src-current/sys/arch/xen/compile/GENERIC/xen-ma -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/ipf   > assym.h.tmp &&  mv -f assym.h.tmp assym.h
 	In file included from machine/intr.h:7,
 	                 from x86/psl.h:79,
 	                 from /usr/cvs/src-current/sys/arch/xen/compile/GENERIC/xen-ma/machine/psl.h:3,
 	                 from machine/cpu.h:432,
 	                 from /usr/cvs/src-current/sys/arch/xen/compile/GENERIC/xen-ma/machine/param.h:48,
 	                 from ../../../../sys/param.h:145,
 	                 from /tmp/27430.c:12:
 	x86/intr.h: In function `spllower':
 	x86/intr.h:158: warning: implicit declaration of function `disable_intr'
 	In file included from machine/pmap.h:50,
 	                 from ../../../../uvm/uvm_pmap.h:86,
 	                 from ../../../../uvm/uvm_extern.h:451,
 	                 from ../../../../uvm/uvm.h:46,
 	                 from /tmp/27430.c:23:
 	machine/xenfunc.h: At top level:
 	machine/xenfunc.h:124: warning: `disable_intr' was used with no prototype before its definition
 	machine/xenfunc.h:124: warning: `disable_intr' was declared implicitly `extern' and later `static'
 	x86/intr.h:158: warning: previous declaration of `disable_intr'
 	machine/xenfunc.h:124: warning: type mismatch with previous implicit declaration
 	x86/intr.h:158: warning: previous implicit declaration of `disable_intr'
 	machine/xenfunc.h:124: warning: `disable_intr' was previously implicitly declared to return `int'

 	*** Failed target:  assym.h
 	*** Failed command: cat ../../../../arch/xen/i386/genassym.cf | sh ../../../../kern/genassym.sh /disk4/cvs/src-current/tooldir.NetBSD-2.0-i386/bin/i386--netbsdelf-gcc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/usr/cvs/src-current/sys/arch/xen/compile/GENERIC/xen-ma -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/ipf > assym.h.tmp && mv -f assym.h.tmp assym.h
 	*** Error code 1

 	Stop.
 	nbmake: stopped in /usr/cvs/src-current/sys/arch/xen/compile/GENERIC


Is that intended? What do I do wrong?


  - Hubert

-- 
NetBSD - Free AND Open!      (And of course secure, portable, yadda yadda)