Subject: building kernel fails during a release build
To: None <current-users@netbsd.org>
From: Marton Fabo <morton@eik.bme.hu>
List: current-users
Date: 01/26/2003 00:24:32
Hi!

I just tried to build the distribution sets on i386 out of a source tree 
  checked out as of jan. 26.

This wasn't the first run on this tree, and I didn't want to always 
recompile everything, so I tried it thus:

$ export MKOBJDIRS=no
$ ./build.sh -D ../live-system -R ../release -u -T 
./tools/obj/tools.NetBSD-1.5.2-i386/ release

This bombs out with the output appended at the end of the message. How 
am I supposed to resolve this problem? May anything left in the tree 
from a preceding similar but non-release build cause any interference?

As a related question, what is the preferred way of selecting which 
kernel gets its way into the distribution sets (e.g. disabling 
GENERIC_DIAGNOSTIC), and how am I supposed to customize the kernel which 
will be compiled (instead of a stock GENERIC kernel)?

I understand that more than one kernel gets compiled during a release 
build (including GENERIC, GENERIC_DIAGNOSTIC, install kernels etc.), but 
I wanna customize the one that gets installed by default when using the 
generated sets for installing NetBSD.

thx
mortee

[...]
cd /usr/NetBSD-current/src/sys/arch/i386/conf && 
/usr/NetBSD-current/src/./tools/obj/tools.NetBSD-1.5.2-i386//bin/nbconfig 
-s /usr/NetBSD-current/src/sys  -b 
/usr/NetBSD-current/src/sys/arch/i386/compile/obj/GENERIC_DIAGNOSTIC 
GENERIC_DIAGNOSTIC
Don't forget to run "make depend"
cd /usr/NetBSD-current/src/sys/arch/i386/compile/obj/GENERIC_DIAGNOSTIC 
&& 
/usr/NetBSD-current/src/./tools/obj/tools.NetBSD-1.5.2-i386//bin/nbmake 
depend && 
/usr/NetBSD-current/src/./tools/obj/tools.NetBSD-1.5.2-i386//bin/nbmake
depending the kern library objects
depending the compat library objects
/usr/NetBSD-current/src/./tools/obj/tools.NetBSD-1.5.2-i386//bin/i386--netbsdelf-gcc 
  -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length 
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes 
-Wno-sign-compare -Wno-uninitialized  -Di386 -I. 
-I/usr/NetBSD-current/src/sys/arch -I/usr/NetBSD-current/src/sys 
-nostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c 
/usr/NetBSD-current/src/sys/ufs/ext2fs/ext2fs_subr.c
cc1: warnings being treated as errors
/usr/NetBSD-current/src/sys/ufs/ext2fs/ext2fs_subr.c: In function 
`ext2fs_checkoverlap':
/usr/NetBSD-current/src/sys/ufs/ext2fs/ext2fs_subr.c:115: warning: int 
format, different type arg (arg 2)
/usr/NetBSD-current/src/sys/ufs/ext2fs/ext2fs_subr.c:115: warning: int 
format, different type arg (arg 3)
/usr/NetBSD-current/src/sys/ufs/ext2fs/ext2fs_subr.c:115: warning: int 
format, different type arg (arg 4)
/usr/NetBSD-current/src/sys/ufs/ext2fs/ext2fs_subr.c:115: warning: long 
int format, different type arg (arg 5)
*** Error code 1

Stop.
nbmake: stopped in 
/usr/NetBSD-current/src/sys/arch/i386/compile/obj/GENERIC_DIAGNOSTIC
*** Error code 1

Stop.
nbmake: stopped in /usr/NetBSD-current/src/etc
*** Error code 1

Stop.
nbmake: stopped in /usr/NetBSD-current/src