Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2007 15:16:28 -0800
From:      "David O'Brien" <obrien@freebsd.org>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        Jan Lentfer <Jan.Lentfer@web.de>, freebsd-current@freebsd.org
Subject:   Re: Problems Building 7.0-Beta3 with -Os
Message-ID:  <20071205231628.GA15765@dragon.NUXI.org>
In-Reply-To: <95938867@bb.ipt.ru>
References:  <4756BAD3.4060905@web.de> <95938867@bb.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 05, 2007 at 07:06:52PM +0300, Boris Samorodov wrote:
> On Wed, 05 Dec 2007 15:50:59 +0100 Jan Lentfer wrote:
> > I am having problems compiling 7.0-Beta3 on my VIA C7 system with 1
> > GIG of RAM.
> > The problem seems to be the memory consumption so I turned off all
> > larger processes. This is what happens:

What does swapinfo say?
Run top (1sec) or 'systat -vm 1' and see if that gives some indication.

> > ===> gnu/usr.bin/cc/libdecnumber (all)
> > ===> gnu/usr.bin/cc/cc_int (all)
> > cc -Os -pipe -DIN_GCC -DHAVE_CONFIG_H
> 
> "Os" is not supported/tested/etc. From /usr/share/examples/etc/make.conf:

While true..

> -----
> # CFLAGS controls the compiler settings used when compiling C code.
> # Note that optimization settings other than -O and -O2 are not recommended

This is to warn against -O3 or -O0 (no opt).  -Os is a collection of
optimizations that is between -O1 and -O2.  That is -Os includes
everything that -O1 does, and -O2 includes everything that -Os does.
In otherwords:  -O1 < -Os < -O2   (properly)

The reporter is having trouble with both -O2 and -Os, so that should not
happen.

-- 
-- David  (obrien@FreeBSD.org)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071205231628.GA15765>