From owner-freebsd-stable Fri Feb 1 13:32:59 2002 Delivered-To: freebsd-stable@freebsd.org Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by hub.freebsd.org (Postfix) with ESMTP id 2400D37B404 for ; Fri, 1 Feb 2002 13:32:55 -0800 (PST) Received: from bluerondo.a.la.turk (nas-cbv-4-141-80.dial.proxad.net [62.147.141.80]) by postfix3-2.free.fr (Postfix) with ESMTP id 3C59518181 for ; Fri, 1 Feb 2002 22:32:53 +0100 (MET) Received: (qmail 6878 invoked by uid 1001); 1 Feb 2002 21:32:51 -0000 Date: Fri, 1 Feb 2002 22:32:51 +0100 From: Rahul Siddharthan To: Doug White Cc: stable@FreeBSD.ORG Subject: Re: Can't build unoptimized/debugging kernel Message-ID: <20020201223251.A6836@lpt.ens.fr> References: <20020201115351.A27595@lpt.ens.fr> <20020201122653.I9956-100000@resnet.uoregon.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020201122653.I9956-100000@resnet.uoregon.edu>; from dwhite@resnet.uoregon.edu on Fri, Feb 01, 2002 at 12:28:34PM -0800 X-Operating-System: FreeBSD 4.5-RELEASE i386 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 Doug White said on Feb 1, 2002 at 12:28:34: > > 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. OK, will try. > See the Handbook section on debugging crash dumps for more information. Hm, that section seems to have disappeared from the present handbook. The version on my hard disk (a bit old) says configure the kernel with "config -g". I was using the make buildkernel/make installkernel procedure so I thought the make.conf file would be the right way... Also, I was getting the above error with or without the -g flag, if I didn't specify optimisation. Is the kernel meant to be built always with -O or above? - Rahul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message