Date: Fri, 21 Nov 2008 02:42:53 +0100 From: Thomas Vogt <freebsdlists@bsdunix.ch> To: Steven Schlansker <stevenschlansker@berkeley.edu> Cc: current@freebsd.org Subject: Re: can't compile debug kernel Message-ID: <5F230023-85DE-4155-B5ED-715BB0F58965@bsdunix.ch> In-Reply-To: <B9A8D6F6-E5F3-492D-BBF2-3A36BE0149C2@berkeley.edu> References: <86206E58-E7BF-44F8-8E8B-9165E2C230E2@bsdunix.ch> <B9A8D6F6-E5F3-492D-BBF2-3A36BE0149C2@berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Am 21.11.2008 um 02:17 schrieb Steven Schlansker: > options DDB? > > (from ddb manpage) Correct. I accidentally added KDB twice instead of KDB and DDB. I was blind Regards, Thomas > > > On Nov 20, 2008, at 5:12 PM, Thomas Vogt wrote: > >> Hello >> >> I try to create a debug kernel with freebsd current 64bit. I added >> all options described in http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-deadlocks.html >> : >> >> makeoptions DEBUG=-g >> options INVARIANTS >> options INVARIANT_SUPPORT >> options WITNESS >> options DEBUG_LOCKS >> options DEBUG_VFS_LOCKS >> options DIAGNOSTIC >> options KDB >> options KDB >> >> I always get: /usr/src/sys/kern/kern_lock.c:917: undefined >> reference to `stack_print_ddb' >> >> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 - >> g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes - >> Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef - >> Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys - >> I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS - >> include opt_global.h -fno-common -finline-limit=8000 --param inline- >> unit-growth=100 --param large-function-growth=1000 -fno-omit-frame- >> pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno- >> sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous- >> unwind-tables -ffreestanding -fstack-protector -Werror vers.c >> linking kernel.debug >> kern_lock.o(.text+0x245): In function `lockmgr_printinfo': >> /usr/src/sys/kern/kern_lock.c:917: undefined reference to >> `stack_print_ddb' >> *** Error code 1 >> >> Would anyone care to tell me what i'm doing wrong? >> >> Regards, >> Thomas >> >> >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org >> " >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5F230023-85DE-4155-B5ED-715BB0F58965>