Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2002 12:28:34 -0800 (PST)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Rahul Siddharthan <rsidd@online.fr>
Cc:        stable@FreeBSD.ORG
Subject:   Re: Can't build unoptimized/debugging kernel
Message-ID:  <20020201122653.I9956-100000@resnet.uoregon.edu>
In-Reply-To: <20020201115351.A27595@lpt.ens.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020201122653.I9956-100000>