From owner-freebsd-current@FreeBSD.ORG Fri Nov 21 01:12:50 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 565791065670 for ; Fri, 21 Nov 2008 01:12:50 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from conversation.bsdunix.ch (ns1.bsdunix.ch [82.220.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id 0DF0F8FC12 for ; Fri, 21 Nov 2008 01:12:49 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from localhost (localhost [127.0.0.1]) by conversation.bsdunix.ch (Postfix) with ESMTP id DB8705D56 for ; Fri, 21 Nov 2008 02:12:48 +0100 (CET) X-Virus-Scanned: by amavisd-new at mail.bsdunix.ch Received: from conversation.bsdunix.ch ([127.0.0.1]) by localhost (conversation.bsdunix.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cRKdbn3OtskB for ; Fri, 21 Nov 2008 02:12:46 +0100 (CET) Received: from [192.168.1.101] (home.bsdunix.ch [82.220.17.23]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by conversation.bsdunix.ch (Postfix) with ESMTP id 0ACB75D4A for ; Fri, 21 Nov 2008 02:12:46 +0100 (CET) Message-Id: <86206E58-E7BF-44F8-8E8B-9165E2C230E2@bsdunix.ch> From: Thomas Vogt To: current@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Fri, 21 Nov 2008 02:12:45 +0100 X-Mailer: Apple Mail (2.929.2) Cc: Subject: can't compile debug kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2008 01:12:50 -0000 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