From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 12 19:54:24 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8311065670 for ; Mon, 12 Apr 2010 19:54:24 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id D11158FC0A for ; Mon, 12 Apr 2010 19:54:22 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o3CJsKEu053023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Apr 2010 21:54:21 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o3CJsDB8030313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Apr 2010 21:54:13 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o3CJsD56014111; Mon, 12 Apr 2010 21:54:13 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o3CJsDej014110; Mon, 12 Apr 2010 21:54:13 +0200 (CEST) (envelope-from ticso) Date: Mon, 12 Apr 2010 21:54:13 +0200 From: Bernd Walter To: Dmitry Krivenok Message-ID: <20100412195413.GG12315@cicely7.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-hackers@freebsd.org Subject: Re: Build world with DEBUG_FLAGS='-g -O0' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 19:54:24 -0000 On Mon, Apr 12, 2010 at 10:34:30PM +0400, Dmitry Krivenok wrote: > Hello Hackers, > > I'm trying to build FreeBSD-CURRENT (r206494) with DEBUG_FLAGS='-g -O0'. > > Below are the commands I executed: > > export DEBUG_FLAGS='-g -O0' > > cd /usr/src/ > > time make buildworld > > > I got the following error: > > ... > > ... > > objcopy -S -O binary boot2.out boot2.bin > > btxld -v -E 0x2000 -f bin -b > /usr/src/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o > boot2.ld -P 1 boot2.bin > > kernel: ver=1.02 size=690 load=9000 entry=9010 map=16M pgctl=1:1 > > client: fmt=bin size=20ed text=0 data=0 bss=0 entry=0 > > output: fmt=bin size=297d text=200 data=277d org=0 entry=0 > > -2941 bytes available > > *** Error code 1 > > > > Stop in /usr/src/sys/boot/i386/boot2. > > *** 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. > > *** Error code 1 > > > > Stop in /usr/src. > > *** Error code 1 > > > > Stop in /usr/src. > > *** Error code 1 > > > > Stop in /usr/src. > > > > real 87m23.033s > > user 53m7.195s > > sys 30m10.744s > > > Error message "-2941 bytes available" is not clear for me :) > What's wrong? It is 2941 bytes too big for bootcode. Bootcode is size constrained. > > Thank you beforehand! > > P.S. > Note that compiling with DEBUG_FLAGS='-g' works fine. Yes - because it compiles with -O2 then, which allows the compiler to buld smaller code. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.