Subject: Re: building XEN0 kernel fails
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: current-users
Date: 06/02/2005 19:56:46
Patrick Welche --> current-users (2005-06-02 14:23:26 +0100):
> On Thu, Jun 02, 2005 at 03:10:38PM +0200, Jukka Salmi wrote:
> > Hi,
> > 
> > using HEAD sources checked out some minutes ago, building a XEN0 kernel
> > fails:
> > 
> > $ cd /usr/src && ./build.sh [...] kernel=XEN0
> [...]
> > i386--netbsdelf-gcc: rm: No such file or directory
> ...
> > i386--netbsdelf-gcc: ../i386: No such file or directory
> > cc1: error: unrecognized option `-f'
> > [...]
> 
> and further up:
> 
> #    create  compat/vm_43.d
> CC=/usr/src/obj.i386/tooldir.NetBSD-3.99.3-i386/bin/i386--netbsdelf-gcc /usr/src/obj.i386/tooldir.NetBSD-3.99.3-i386/bin/nbmkdep -f vm_43.d --     -Di386 -I../../. -I/usr/obj/sys/arch/i386/compile.i386/XEN0/xen-ma -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf   -nostdinc -isystem /destdir/i386/usr/include  /usr/src/sys/compat/common/vm_43.c
> --- vfs_syscalls_43.d ---
> In file included from ../../machine/intr.h:48,
>                  from /destdir/i386/usr/include/x86/psl.h:79,
>                  from /usr/obj/sys/arch/i386/compile.i386/XEN0/xen-ma/machine/psl.h:3,
>                  from ../../machine/cpu.h:433,
>                  from /destdir/i386/usr/include/machine/param.h:48,
>                  from /usr/src/sys/sys/param.h:145,
>                  from /usr/src/sys/compat/common/vfs_syscalls_43.c:46:
> ../../machine/pic.h:6:21: x86/pic.h: No such file or directory
> nbmkdep: compile failed.
> *** [vfs_syscalls_43.d] Error code 1

Hmm, succeeds here:

[...]
#    create  compat/vm_43.d
CC=/opt/tools/i386/bin/i386--netbsdelf-gcc /opt/tools/i386/bin/nbmkdep -f vm_43.d --     -Di386 -I../../. -I/build/nbsd/i386/sys/arch/i386/compile/XEN0/xen-ma -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf   -nostdinc -isystem /build/nbsd/i386/destdir.i386/usr/include  /usr/src/sys/compat/common/vm_43.c
#    create  compat/.depend
[...]

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~