Subject: cannot build kernel with a freshly /usr/src update
To: None <current-users@netbsd.org>
From: Florence HENRY <Florence.Henry@obspm.fr>
List: current-users
Date: 02/23/2004 11:28:16
Hello,
I've updated my kernel sources this morning, and I have several errors
while compiling the new kernel :
1) make depend does not fail, but I have the following warning :
cc: ambiguous option '--'
2) as the make depend was not failing, I started compilation with make,
but it failed :
cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare
-Wno-uninitialized -Di386 -I. -I../../../../arch -I../../../.. -nostdinc
-DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c
/usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c
/usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c: In
function `auich_attach':
/usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c:514:
parse error before `<'
/usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c:517:
`status' undeclared (first use in this function)
[...]
*** Error code 1
Stop.
3) I was told that the problem 1) could be solved by compiling tools. So I
went in /usr/src and I did "make -O /usr/src/obj/ tools", but it failed
too :
cc -O -DMAKE_BOOTSTRAP -I/usr/src/obj//tools/compat
-I/usr/src/obj//tools/compat/include -I/usr/src/tools/config/../compat
-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE
-I/usr/src/tools/config/../../usr.sbin/config -I. -c -o scan.lo.o
scan.c
/usr/src/tools/config/../../usr.sbin/config/scan.l: In function `yylex':
/usr/src/tools/config/../../usr.sbin/config/scan.l:151: union has no
member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:152: union has no
member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:156: union has no
member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:157: union has no
member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:161: union has no
member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:162: union has no
member named `num'
*** Failed target: scan.lo
*** Failed command: cc -O -DMAKE_BOOTSTRAP -I/usr/src/obj//tools/compat
-I/usr/src/obj//tools/compat/include -I/usr/src/tools/config/../compat
-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE
-I/usr/src/tools/config/../../usr.sbin/config -I. -c -o scan.lo.o scan.c
*** Error code 1
Stop.
nbmake: stopped in /usr/src/tools/config
[...]
ERROR: Failed to make tools
*** BUILD ABORTED ***
I'm a little bit lost now... What can I do ?
----
Florence HENRY
florence.henry@obspm.fr