From owner-freebsd-stable Thu Mar 15 13:37:42 2001 Delivered-To: freebsd-stable@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 3E5AC37B71C for ; Thu, 15 Mar 2001 13:37:40 -0800 (PST) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.2/8.9.3) id f2FLZA747194; Thu, 15 Mar 2001 13:35:10 -0800 (PST) (envelope-from dillon) Date: Thu, 15 Mar 2001 13:35:10 -0800 (PST) From: Matt Dillon Message-Id: <200103152135.f2FLZA747194@earth.backplane.com> To: Tim Zingelman Cc: Subject: Re: can't build 4.3-BETA GENERIC kernel with -g References: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :It turns out the problem has to do with my having removed the -O from :either CFLAGS or COPTFLAGS. : :I built & installed world/kernel with -O -pipe, then later tried to make :kernel with just -pipe and it failed (with or without debug)... I guess if :I buildworld with -O I must build my kernel with -O. Is there any problem :getting info out of a crashdump if the kernel is compiled -O (along with -g) : :Now that I've restored the -O, a debug GENERIC builds just fine. I had no :idea that I could not mix -O and non -O code... sorry about that. : : - Tim You have to compile the kernel with at least -O or all the static __inline's will generate all sorts of warnings and errors. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message