Subject: Re: kern/13969: kernel won't build since ubcperf
To: None <dive@endersgame.net, gnats-bugs@gnats.netbsd.org>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: netbsd-bugs
Date: 09/16/2001 19:41:42
On Sunday 16 September 2001  5:08 am, dive@endersgame.net wrote:
> >Number:         13969
> >Category:       kern
> >Synopsis:       kernel doesn't finish building since the ubcperf stuff
> >Confidential:   no
> >Severity:       critical
> >Priority:       high
> >Responsible:    kern-bug-people
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Sat Sep 15 21:09:00 PDT 2001
> >Closed-Date:
> >Last-Modified:
> >Originator:     Sean Davis <dive@endersgame.net>
> >Release:        20010914 userland & kernel
> >Organization:
> >
> >Environment:
>
> 	Celeron 533mhz, 512MB ram, 19GB disk
> System: NetBSD eros.endersgame.net 1.5X NetBSD 1.5X (EROS) #143: Sat Sep 15
> 01:01:25 EDT 2001
> dive@eros.endersgame.net:/current/src/sys/arch/i386/compile/EROS i386
> Architecture: i386
> Machine: i386
>
> >Description:
>
> 	kernel fails to finish compiling, looks like a dependency thing
> cc -g -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes 
> -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DDEBUG -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT
> -Di386  -c ../../../../dev/mii/nsphy.c making sure the compat library is up
> to date...
> make: don't know how to make ../../../../../../uvm/uvm_vnode.h. Stop
>
> make: stopped in /current/src/sys/arch/i386/compile/EROS/lib/compat
> *** Error code 2
>
> Stop.
> make: stopped in /usr/src/sys/arch/i386/compile/EROS
>
> >How-To-Repeat:
>
> 	cd /sys/arch/i386/conf && config EROS && cd /sys/arch/i386/compile/EROS \
> 	&& make depend && make

Ahh, you missed the magic make cleandir or alternativly delete the .depend 
file in lib/compat and lib/kern.

make depend doesn't rebuild .depend files when a header has been removed or 
updated, only the c file (I think).

Chris