From owner-freebsd-stable Wed Mar 14 23:12:51 2001 Delivered-To: freebsd-stable@freebsd.org Received: from nova.fnal.gov (nova.fnal.gov [131.225.121.207]) by hub.freebsd.org (Postfix) with ESMTP id F302A37B71C for ; Wed, 14 Mar 2001 23:12:47 -0800 (PST) (envelope-from zingelman@fnal.gov) Received: from localhost (tez@localhost) by nova.fnal.gov (8.9.3+Sun/8.9.3) with ESMTP id BAA15237; Thu, 15 Mar 2001 01:18:10 -0600 (CST) X-Authentication-Warning: nova.fnal.gov: tez owned process doing -bs Date: Thu, 15 Mar 2001 01:18:10 -0600 (CST) From: Tim Zingelman X-Sender: To: Cc: Matt Dillon Subject: Re: can't build 4.3-BETA GENERIC kernel with -g In-Reply-To: <200103150654.f2F6s2N39409@earth.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 14 Mar 2001, Matt Dillon wrote: > :Am I missing something here... is this the wrong way to build a kernel > :with debug symbols? Any help is appreciated. > > The correct solution is to add the following to your kernel > configuration file. That is, the file /usr/src/sys/i386/conf/YOURKERNEL, > NOT make.conf. > makeoptions DEBUG="-g" The result is the same... make.conf now has: CFLAGS= -pipe COPTFLAGS= -pipe and I just removed the # from the line: makeoptions DEBUG=-g in /usr/src/sys/i386/conf/GENERIC make kernel KERNCONF=GENERIC ... cc -c -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 -fomit-frame-pointer ../../i386/i386/atomic.c In file included from ../../i386/i386/atomic.c:47: machine/atomic.h: In function `atomic_set_char': machine/atomic.h:106: inconsistent operand constraints in an `asm' ... - Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message