From owner-freebsd-stable Fri Feb 1 12:28:18 2002 Delivered-To: freebsd-stable@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 29B6937B405 for ; Fri, 1 Feb 2002 12:28:09 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id g11KSYn11040; Fri, 1 Feb 2002 12:28:35 -0800 (PST) Date: Fri, 1 Feb 2002 12:28:34 -0800 (PST) From: Doug White To: Rahul Siddharthan Cc: stable@FreeBSD.ORG Subject: Re: Can't build unoptimized/debugging kernel In-Reply-To: <20020201115351.A27595@lpt.ens.fr> Message-ID: <20020201122653.I9956-100000@resnet.uoregon.edu> X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 1 Feb 2002, Rahul Siddharthan wrote: > On FreeBSD 4-stable (cvsupped Jan 31 at around 13:40 GMT) I'm unable to > build an unoptimized debugging kernel. The kernel builds fine with > COPTFLAGS=-O -pipe > but with > COPTFLAGS=-g (or -g -pipe) I get the following error. I get the same error > without optimization and without -g. That's not the way to enable a debugging kernel. Set makeoptions "-g" in the kernel configuration file, config, make depend, make, make install. That will install a stripped kernel but give you a kernel.debug in the compile directory you can use for crash dumps. See the Handbook section on debugging crash dumps for more information. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message