From owner-freebsd-questions Thu May 25 6:15:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.va.home.com (ha1.rdc1.va.home.com [24.2.32.66]) by hub.freebsd.org (Postfix) with ESMTP id 9E15237C129 for ; Thu, 25 May 2000 06:15:23 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from john.baldwin.cx ([24.6.244.187]) by mail.rdc1.va.home.com (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000525131522.CRAF22611.mail.rdc1.va.home.com@john.baldwin.cx>; Thu, 25 May 2000 06:15:22 -0700 Content-Length: 1621 X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 25 May 2000 09:15:21 -0400 (EDT) Organization: BSD, Inc. From: John Baldwin To: Tan Juay Kwang Subject: RE: building /usr/src/sys with DEBUG_FLAGS on 4.0-RELEASE Cc: questions@FreeBSD.ORG Message-Id: <20000525131522.CRAF22611.mail.rdc1.va.home.com@john.baldwin.cx> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 25-May-00 Tan Juay Kwang wrote: > Hello everyone, to cut short a long story, I'm trying to build > everything with debugging infomation intact. I ran through the make > files and realize that I need to define DEBUG_FLAGS in order for install > not to strip the symbol tables. So I happily define DEBUG_FLAGS=-ggdb > and do a 'make buildworld'. However, the process bombs out at > /usr/src/sys, specifically :- > > btxld -v -E 0x1000 -f bin -b > /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o > boot2.ld -P 1 boot2.bin > kernel: ver=1.01 size=720 load=9000 entry=9010 map=16M pgctl=1:1 > client: fmt=bin size=17c5 text=0 data=0 bss=0 entry=0 > output: fmt=bin size=20e5 text=200 data=1ee5 og=0 entry=0 > -741 bytes available > *** Error code 1 > > Stop in /usr/src/sys/boot/i386/boo2. > *** Error code 1 > > Stop in /usr/src/sys/boot/i386. > *** Error code 1 > > Stop in /usr/src/sys/boot. > *** Error code 1 > > Stop in /usr/src/sys. > > The machine is a PIII 600 w/128MB ram and running 4.0-RELEASE. Building > without the DEBUG_FLAGS is fine. I get the same error even if I only > define DEBUG_FLAGS. > > Is there any workaround? Yeah, don't use DEBUG_FLAGS with the boot code. A) There is no room for debugging code here as we only have a limited amount of space to work with, and B) you can't get a core dump or use gdb on any of these programs anyway. > Thanks and best regards, > Juay Kwang -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message