From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 13 09:14:56 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 94EB2106566C for ; Tue, 13 Apr 2010 09:14:56 +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 1A4EA8FC15 for ; Tue, 13 Apr 2010 09:14:55 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o3D9EsCL099821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Apr 2010 11:14:54 +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 o3D9EdBq067448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Apr 2010 11:14:39 +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 o3D9EdNZ018027; Tue, 13 Apr 2010 11:14:39 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o3D9Edxo018026; Tue, 13 Apr 2010 11:14:39 +0200 (CEST) (envelope-from ticso) Date: Tue, 13 Apr 2010 11:14:39 +0200 From: Bernd Walter To: Dmitry Krivenok Message-ID: <20100413091439.GH12315@cicely7.cicely.de> References: <20100412195413.GG12315@cicely7.cicely.de> 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=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-hackers@freebsd.org, ticso@cicely.de 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: Tue, 13 Apr 2010 09:14:56 -0000 On Tue, Apr 13, 2010 at 10:49:08AM +0400, Dmitry Krivenok wrote: > Is there a simple way to build size constrained parts of world (e.g. > bootcode) with '-O2' and other > parts with '-O0'? You can build without bootcode: WITHOUT_BOOT=YES > On Mon, Apr 12, 2010 at 11:54 PM, Bernd Walter wrote: > > > 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. > > > > > > -- > Sincerely yours, Dmitry V. Krivenok > e-mail: krivenok.dmitry@gmail.com > skype: krivenok_dmitry > jabber: krivenok_dmitry@jabber.ru > icq: 242-526-443 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.