Subject: Re: opt_fileassoc.h missing -> kernel build problem
To: Bill Studenmund <wrstuden@netbsd.org>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: current-users
Date: 07/25/2006 21:52:19
--- Bill Studenmund <wrstuden@netbsd.org> wrote:

> On Tue, Jul 25, 2006 at 02:37:15PM -0400, Gary Thorpe wrote:
> > 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:
> 
> No, what you need to do is re-run config. These two lines in
> conf/files:
> 
> defflag opt_fileassoc.h         FILEASSOC
> defparam opt_fileassoc.h        FILEASSOC_NHOOKS
> 
> will cause config to generate the file.
> 
> The file is always generated, even if these options aren't selected. 
> That's the point; the opt_*.h files change when certain options
> change, 
> permitting normal Makefile dependencies to correctly rebuild parts of
> the 
> kernel after the change.
> 
> Take care,
> 
> Bill
> 

Hi,

After futher testing, it seems manually running config does not work
either. After removing the build directory:

rider 62% /misc/sysbuilds/currenttools/bin/nbconfig -v -s
/misc/sources/nbsd-current-full/custom_src/sys -b
/misc/sysbuilds/customobjs/sys/arch/i386/compile/RIDER
/misc/sources/nbsd-current-full/custom_src/sys/arch/i386/conf/RIDER
/misc/sources/nbsd-current-full/custom_src/sys/arch/i386/conf/RIDER:112:
warning: undeclared option `DIAGNOSTIC' added to IDENT
/misc/sources/nbsd-current-full/custom_src/sys/arch/i386/conf/RIDER:113:
warning: undeclared option `DEBUG' added to IDENT
Build directory is
/misc/sysbuilds/customobjs/sys/arch/i386/compile/RIDER
Don't forget to run "make depend"
rider 63% cd RIDER/
rider 64% pwd
/misc/sysbuilds/customobjs/sys/arch/i386/compile/RIDER
rider 65% /misc/sysbuilds/currenttools/bin/nbmake-i386 depend
[...]
#    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
nbmkdep: compile failed.

*** Failed target:  init_main.d
*** Failed command:
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
*** Error code 1

Stop.
nbmake: stopped in
/misc/sysbuilds/customobjs/sys/arch/i386/compile/RIDER
rider 66%

So re-running config does not seem to help.

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