Date: Tue, 13 Apr 2010 11:14:39 +0200 From: Bernd Walter <ticso@cicely7.cicely.de> To: Dmitry Krivenok <krivenok.dmitry@gmail.com> Cc: freebsd-hackers@freebsd.org, ticso@cicely.de Subject: Re: Build world with DEBUG_FLAGS='-g -O0' Message-ID: <20100413091439.GH12315@cicely7.cicely.de> In-Reply-To: <p2sda48cf211004122349h2a77d902o5ad430379bc64b52@mail.gmail.com> References: <s2yda48cf211004121134pac044f18q5a9983dc4df1d6da@mail.gmail.com> <20100412195413.GG12315@cicely7.cicely.de> <p2sda48cf211004122349h2a77d902o5ad430379bc64b52@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ticso@cicely7.cicely.de>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 <bernd@bwct.de> 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 <bernd@bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100413091439.GH12315>