From owner-freebsd-current@FreeBSD.ORG Thu Sep 18 18:13:38 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25E591065672 for ; Thu, 18 Sep 2008 18:13:38 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.235]) by mx1.freebsd.org (Postfix) with ESMTP id 963948FC1A for ; Thu, 18 Sep 2008 18:13:37 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: by qb-out-0506.google.com with SMTP id f30so21041qba.35 for ; Thu, 18 Sep 2008 11:13:36 -0700 (PDT) Received: by 10.180.220.5 with SMTP id s5mr2908432bkg.5.1221760641239; Thu, 18 Sep 2008 10:57:21 -0700 (PDT) Received: by 10.181.17.8 with HTTP; Thu, 18 Sep 2008 10:57:21 -0700 (PDT) Message-ID: <1de79840809181057v70cdc206o6f5017ca677bf528@mail.gmail.com> Date: Thu, 18 Sep 2008 13:57:21 -0400 From: "Michael Proto" To: "Daniel de Oliveira" In-Reply-To: <35e5bf980809180340j171e39ao3d6bf6732ff4c165@mail.gmail.com> MIME-Version: 1.0 References: <35e5bf980809180340j171e39ao3d6bf6732ff4c165@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: current@freebsd.org Subject: Re: Current using -Os -pipe -march=pentium3m X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2008 18:13:38 -0000 On Thu, Sep 18, 2008 at 6:40 AM, Daniel de Oliveira wrote: > Hi all > > I have some problems here trying to compile my system using.. > > CPUTYPE?=pentium3m > CFLAGS=-Os -pipe > > When I take off the CFLAGS, all things works properly. A lot of errors > in different points occurs (kernel and buildworld), so at this point I > dont a have log, btw, when I comment CFLAGS lines, everything compiles > fine. Just for information, is there something wrong with that? > > > > Daniel de Oliveira > ---- > Network and System Analyst > Security Specialist > IBM RISC Specialist > IBM Storage Specialist > Linux/Unix Specialist > Linux User #: 405334 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > Use at your own risk/peril, but I ran into a similar problem trying to compile 8-CURRENT with -Os (I have a small PCEngines ALIX SBC with a 32MB flash, so space is at a premium). After several long bouts of trial-and-error, I found that several apps and libraries won't compile with -Os, so I've set those to -O and they work. Oh, and this is with -fno-strict-aliasing Here's my make.conf, it may save you some time: CPUTYPE?=pentium-mmx CFLAGS= -Os -fno-strict-aliasing -pipe COPTFLAGS= -O -pipe .if ${.CURDIR:M*/src/lib/libkse} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/lib/libarchive} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/lib/libngatm} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/lib/librpcsec_gss} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/lib/libthr} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/sbin/geom/*} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/sbin/ggate/*} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/usr.bin/csup} CFLAGS= -O -pipe .endif .if ${.CURDIR:M*/src/usr.sbin/acpi/acpidump} CFLAGS= -O -pipe .endif -Proto