Subject: Re: compile problems? was Re: sparc kernel configuration tutoral?
To: Koyote <koyote@koyote.cx>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc
Date: 04/02/2003 22:51:51
On Tue, Apr 01, 2003 at 09:24:50PM -0800, Koyote wrote:
> So I decided to try starting with the GENERIC kernel config file and
> copied that to netbsd_lx_1.6
> 
> configure and make depend worked, make gave me:
> 
> cc  -mno-fpu -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -I.  -I../../../../arch
> -I../../../.. -nostdinc -DRASTERCONSOLE -DLKM -DMAXUSERS=32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c
> In file included from ../../../../sys/vnode.h:48,
>                  from
> /usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c:62:
> ../../../../uvm/uvm_extern.h:318: parse error before character 01
> cc1: warnings being treated as errors
> ../../../../uvm/uvm_extern.h:318: warning: no semicolon at end of struct
> or union
> ../../../../uvm/uvm_extern.h:352: parse error before `}'
> In file included from ../../../../uvm/uvm_extern.h:451,
>                  from ../../../../sys/vnode.h:48,
>                  from
> /usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c:62:
> ../../../../uvm/uvm_page.h: In function `PHYS_TO_VM_PAGE':
> ../../../../uvm/uvm_page.h:414: invalid use of undefined type `struct
> uvmexp'
> In file included from ../../../../uvm/uvm.h:194,
>                  from
> /usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c:71:
> ../../../../uvm/uvm_fault_i.h: In function `uvmfault_relock':
> ../../../../uvm/uvm_fault_i.h:211: invalid use of undefined type `struct
> uvmexp'
> ../../../../uvm/uvm_fault_i.h:224: invalid use of undefined type `struct
> uvmexp'
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/sys/arch/sparc/compile/netbsd_lx_1.6
> botsnack: {189} 

Looks like your source tree is incomplete or corrupted. How did you get it ?
You're trying to build on a machine *running* 1.6, right ?

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--