Subject: -CURRENT kernel doesn't build with the DEBUG option
To: NetBSD -CURRENT Users <current-users@NetBSD.org>
From: Greg 'groggy' Lehey <grog@lemis.com>
List: current-users
Date: 04/08/2003 11:56:33
--CNK/L7dwKXQ4Ub8J
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
It looks like there's some breakage in some of the non-core file
systems. I updated the source tree two days ago and made the
following change to the configuration file:
--- sys/arch/i386/conf/GENERIC 2003-04-06 02:13:23.000000000 +0000
+++ sys/arch/i386/conf/GENERIC-DEBUG 2003-04-07 02:37:14.000000000 +0000
@@ -100,7 +100,7 @@
# Diagnostic/debugging support options
#options DIAGNOSTIC # expensive kernel consistency checks
-#options DEBUG # expensive debugging checks/support
+options DEBUG # expensive debugging checks/support
#options KMEMSTATS # kernel memory statistics (vmstat -m)
options DDB # in-kernel debugger
#options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic'
The kernel build then fails with:
cc1: warnings being treated as errors
/src/NetBSD/1.6-CURRENT/src/sys/netsmb/smb_conn.c:340: warning: `smb_co_lockstatus' defined but not used
*** [smb_conn.o] Error code 1
1 error
nbmake: stopped in /src/NetBSD/1.6-CURRENT/src/sys/arch/i386/compile/obj/GENERIC-DEBUG
ERROR: make all failed in /src/NetBSD/1.6-CURRENT/src/sys/arch/i386/compile/obj/GENERIC-DEBUG
*** BUILD ABORTED ***
It works OK if I remove smbfs. Next, I tried removing DDB:
@@ -100,9 +100,9 @@
# Diagnostic/debugging support options
#options DIAGNOSTIC # expensive kernel consistency checks
-#options DEBUG # expensive debugging checks/support
+options DEBUG # expensive debugging checks/support
#options KMEMSTATS # kernel memory statistics (vmstat -m)
-options DDB # in-kernel debugger
+# options DDB # in-kernel debugger
#options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic'
options DDB_HISTORY_SIZE=512 # enable history editing in DDB
#options KGDB # remote debugger
This dies with:
/src/NetBSD/1.6-CURRENT/src/tools/obj/tools.NetBSD-1.6P-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/src/NetBSD/1.6-CURRENT/src/sys/arch -I/src/NetBSD/1.6-CURRENT/src/sys -nostdinc -DLKM -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /src/NetBSD/1.6-CURRENT/src/sys/ufs/lfs/lfs_vnops.c
cc1: warnings being treated as errors
/src/NetBSD/1.6-CURRENT/src/sys/ufs/lfs/lfs_vnops.c: In function `lfs_dump_vop':
/src/NetBSD/1.6-CURRENT/src/sys/ufs/lfs/lfs_vnops.c:1942: warning: implicit declaration of function `vfs_vnode_print'
*** [lfs_vnops.o] Error code 1
1 error
nbmake: stopped in /src/NetBSD/1.6-CURRENT/src/sys/arch/i386/compile/obj/GENERIC-DEBUG
ERROR: make all failed in /src/NetBSD/1.6-CURRENT/src/sys/arch/i386/compile/obj/GENERIC-DEBUG
*** BUILD ABORTED ***
After removing LFS as well, everything compiles.
Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers
--CNK/L7dwKXQ4Ub8J
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)
iD8DBQE+kjNZIubykFB6QiMRAtisAJwJhq6Nslo3wkVCtyFXPzU6ju11OwCgrh3Z
FJnyUZOiFm5enqlxIVX/eJU=
=bGme
-----END PGP SIGNATURE-----
--CNK/L7dwKXQ4Ub8J--