From owner-freebsd-current@FreeBSD.ORG Wed Oct 31 14:38:36 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FB9616A419 for ; Wed, 31 Oct 2007 14:38:36 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0C2F113C481 for ; Wed, 31 Oct 2007 14:38:36 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 4E4071CC076; Wed, 31 Oct 2007 07:30:10 -0700 (PDT) Date: Wed, 31 Oct 2007 07:30:10 -0700 From: Jeremy Chadwick To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20071031143010.GA21646@eos.sc1.parodius.com> References: <25f52a3d0710300732x425f0c45vde1a29361096c018@mail.gmail.com> <20071031053610.GA10176@eos.sc1.parodius.com> <86ir4nxv8o.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86ir4nxv8o.fsf@ds4.des.no> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@freebsd.org, "Stephan F. Yaraghchi" Subject: Re: loader breaks with -O2 optimizations 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: Wed, 31 Oct 2007 14:38:36 -0000 On Wed, Oct 31, 2007 at 02:35:19PM +0100, Dag-Erling Smørgrav wrote: > Jeremy Chadwick writes: > > Stephan F. Yaraghchi writes: > > > I found out that the following line in my make.conf causes > > > the problem: > > > > > > CFLAGS= -O2 -funroll-loops -pipe > > You shouldn't have this in your make.conf. Remove it. This is very > > likely breaking a lot more than just loader. > > Uh, no. Please stop spreading FUD. Every time it's been discussed, the conclusion reached has been "stop setting CFLAGS, you're overwriting any previous definition used, which may be causing problems for you. Use += or COPTFLAGS." Even the Handbook explains the dangers of using CFLAGS= when one should be CFLAGS+=. http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-cflags.html http://lists.freebsd.org/pipermail/freebsd-current/2004-August/034763.html http://lists.freebsd.org/pipermail/freebsd-questions/2004-February/036214.html http://www.nabble.com/buildworld-failure-(boot2.ld-too-big-when-CFLAGS-set-in-make.conf)-t4674137.html -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |