Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2000 09:15:21 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Tan Juay Kwang <tanjk@pacific.net.sg>
Cc:        questions@FreeBSD.ORG
Subject:   RE: building /usr/src/sys with DEBUG_FLAGS on 4.0-RELEASE
Message-ID:  <20000525131522.CRAF22611.mail.rdc1.va.home.com@john.baldwin.cx>
In-Reply-To: <NEBBLKHLGDECFCNMHPEEKEEJCGAA.tanjk@pacific.net.sg>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000525131522.CRAF22611.mail.rdc1.va.home.com>