Subject: Re: kernel build fails - vm/uvm.h
To: None <Jan-Uwe.Finck@bigfoot.de>
From: Reinoud Zandijk <zandijk@cs.utwente.nl>
List: port-arm32
Date: 07/18/2000 01:14:35
Dear Jan-Uwe,

On Mon, 17 Jul 2000, Jan-Uwe Finck wrote:
> after trying to get along with kernel building I'm still stuck.
> System is a RiscPC 600 with an ARM610, source is a fresh current form
> yesterday, i.e. 1.5_Alpha.

sounds nice .... but i think its rather 1.5A, 1.5B or 1.5C if its
-current....

> Although I fetched a completely new /usr/src/sys/* the compiling of a
> kernel stops with a whole bunch of errors like this :
> 
> ../../../../vm/vm_page.h:113: redefinition of `struct vm_page'
> ../../../../vm/vm_page.h:199: redefinition of `struct vm_physseg'
> ../../../../vm/vm_page.h:264: redefinition of `vm_physseg_find'
> ../../../../uvm/uvm_page.h:324: `vm_physseg_find' previously defined
> here
> ../../../../vm/vm_page.h:346: redefinition of `PHYS_TO_VM_PAGE'
> ../../../../uvm/uvm_page.h:406: `PHYS_TO_VM_PAGE' previously defined
> here
> In file included from
> ../../../../arch/arm32/vidc/console/vidcconsole.c:61:
> ../../../../vm/vm.h:73: redefinition of `struct vmspace'
> *** Error code 1

sounds like you need to do a `make includes' in /usr/src/sys first ... the
include files in /usr/include/sys etc. are updated it seems ... also it is
good to completely delete the compiling directory i.e.

> As the source(at least /usr/src/sys/*) is completely fresh, 
> and there've been no old .depends in it, it goes beyond me 
> what the real problem is this time. 

The .depend is only in the compile directory itself ... so you should (i
guess you allready know this but for completion ....)
i.e. :


rm -r /usr/src/sys/arch/arm32/compile/MYSYS
cd /usr/src/sys/arch/arm32/conf
config MYSYS
cd ../compile/MYSYS
make depend
make

and copy the `netbsd' file to /netbsd

Well better complete than sorry... and maybe its of use for others reading
this thread :)) .... I myself run a 1.4Y or so on my arm32 machine but run
1.5B on my sparc and thats running ok ... dont forget though that the
transition is a bit rough :(( ... and i still have some problems in
userland.... wich i will send-pr later

Take care,
Reinoud