Subject: Re: current vax build cannot create GENERIC/assym.h
To: None <port-vax@NetBSD.org>
From: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
List: port-vax
Date: 06/21/2006 12:39:56
On Sat, 17 Jun 2006, Kirk Russell wrote:

> Cannot compile the vax kernel with -current.  Any ideas?  TIA.
>
> #    create  GENERIC/assym.h
> cat /bstg/current/usr/src/sys/arch/vax/vax/genassym.cf  |  /bstg/current/vax/tools/bin/nbgenassym -- /bstg/current/vax/tools/bin/vax--netbsdelf-gcc  -ffreestanding -fno-zero-initialized-in-bss   -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare     -D_VAX_INLINE_ -I.  -I/bstg/current/usr/src/sys/../common/include -I/bstg/current/usr/src/sys/arch  -I/bstg/current/usr/src/sys -nostdinc -DLKM -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT -I/bstg/current/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/bstg/current/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/bstg/current/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/vax/string  -I/bstg/current/usr/src/sys/dist/ipf   > assym.h.tmp &&  mv -f assym.h.tmp assym.h
> In file included from machine/param.h:171,
>                  from /bstg/current/usr/src/sys/sys/param.h:145,
>                  from /tmp/genassym.20449/assym.c:2:
> machine/macros.h:45: warning: static declaration for `ffs' follows non-static
> machine/macros.h:60: warning: static declaration for `_remque' follows non-static
> machine/macros.h:69: warning: static declaration for `_insque' follows non-static
> machine/macros.h:78: warning: static declaration for `memcpy' follows non-static
> machine/macros.h:91: warning: static declaration for `memmove' follows non-static
> machine/macros.h:116: warning: static declaration for `memset' follows non-static
> machine/macros.h:295: warning: static declaration for `scanc' follows non-static
> machine/macros.h:308: warning: static declaration for `skpc' follows non-static

  I think this is due to the merge of the FreeBSD timecounters by Frank
Kardel on June 7th.  Specifically, revision 1.55 of sys/sys/time.h now
includes sys/timevar.h, which includes sys/systm.h, which includes
lib/libkern.h.  Libkern.h has some declarations of the above functions
which conflict with the declarations in machines/macro.h on the vax
(which uses the vax instructions).

  I haven't figured out how to fix this though.

--
Michael L. Hitch			mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University	Bozeman, MT	USA