Problems Building 7.0-Beta3 with -Os

David O'Brien obrien at freebsd.org
Wed Dec 5 15:16:30 PST 2007


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 at FreeBSD.org)


More information about the freebsd-current mailing list