Subject: opt_fileassoc.h missing -> kernel build problem
To: None <current-users@netbsd.org>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: current-users
Date: 07/25/2006 14:37:15
Hi,

I just upgraded the local sources using SUP to see if that would solve
the problem, but it has persisted. It seems an option is not specified
in the config files that is required (and would generate
opt_fileassoc.h). Checking GENERIC, these options are present:
#options        FILEASSOC               # fileassoc(9) - required for
Veriexec
#options        FILEASSOC_NHOOKS=4      # Default number of storage
slots

However, none of the kernels I am build have veriexec: 'options
VERIFIED_EXEC' is either commented out or excluded along with
'pseudo-device veriexec'.

When I try to build kernels for i386 (and xen), I get the following
error during the depend stage: 

--- init_main.d ---
#    create  RIDER/init_main.d
CC=/misc/sysbuilds/currenttools/bin/i386--netbsdelf-gcc
/misc/sysbuilds/currenttools/bin/nbmkdep -f init_main.d -- 
-ffreestanding -fno-zero-initialized-in-bss   -pipe -Os -march=i686
-Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes 
-fno-strict-aliasing     -Di386 -I. 
-I/misc/sources/nbsd-current-full/custom_src/sys/../common/include
-I/misc/sources/nbsd-current-full/custom_src/sys/arch 
-I/misc/sources/nbsd-current-full/custom_src/sys -nostdinc -DDIAGNOSTIC
-DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-I/misc/sources/nbsd-current-full/custom_src/sys/lib/libkern/../../../common/lib/libc/quad
-I/misc/sources/nbsd-current-full/custom_src/sys/lib/libkern/../../../common/lib/libc/string
-I/misc/sources/nbsd-current-full/custom_src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
  /misc/sources/nbsd-current-full/custom_src/sys/kern/init_main.c
/misc/sources/nbsd-current-full/custom_src/sys/kern/init_main.c:84:27:
error: opt_fileassoc.h: No such file or directory

This is when using this command in the top-level of the tree:
./build.sh -j 2 -O /misc/sysbuilds/customobjs -T
/misc/sysbuilds/currenttools -U -u kernel=RIDER

Trying without the -j flag gives this:

#    create  RIDER/vfs_syscalls.d
CC=/misc/sysbuilds/currenttools/bin/i386--netbsdelf-gcc
/misc/sysbuilds/currenttools/bin/nbmkdep -f vfs_syscalls.d -- 
-ffreestanding -fno-zero-initialized-in-bss   -pipe -Os -march=i686
-Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes 
-fno-strict-aliasing     -Di386 -I. 
-I/misc/sources/nbsd-current-full/custom_src/sys/../common/include
-I/misc/sources/nbsd-current-full/custom_src/sys/arch 
-I/misc/sources/nbsd-current-full/custom_src/sys -nostdinc -DDIAGNOSTIC
-DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-I/misc/sources/nbsd-current-full/custom_src/sys/lib/libkern/../../../common/lib/libc/quad
-I/misc/sources/nbsd-current-full/custom_src/sys/lib/libkern/../../../common/lib/libc/string
-I/misc/sources/nbsd-current-full/custom_src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
  /misc/sources/nbsd-current-full/custom_src/sys/kern/vfs_syscalls.c
/misc/sources/nbsd-current-full/custom_src/sys/kern/vfs_syscalls.c:44:27:
error: opt_fileassoc.h: No such file or directory
nbmkdep: compile failed.

How can this be fixed?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com