From owner-freebsd-current@FreeBSD.ORG Wed Feb 13 02:15:09 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9229430A for ; Wed, 13 Feb 2013 02:15:09 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ie0-x230.google.com (ie-in-x0230.1e100.net [IPv6:2607:f8b0:4001:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id 4E487272 for ; Wed, 13 Feb 2013 02:15:09 +0000 (UTC) Received: by mail-ie0-f176.google.com with SMTP id k13so1060520iea.21 for ; Tue, 12 Feb 2013 18:15:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:reply-to:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=KgzIOVP89xHC56SB+0swBjYxQEX1TriTNdcPD2w5toU=; b=qdDcLJRYNJ4bxI65cD8hfKNyPjPVPiW3+yabUSpKJSBengQLGmPTlGOrNNSBwyzgQO d3xpEsPWT1DoEBJORXJwNeIALbQmuHy7rGXvfSMeeiS26Ys5emCoAA870CUQf/YY/Z/M yu0PzO/bOu7/zKQwrLmigi7cegwwSMPKXHCk+/EwLEmU/ETzqgT3q8ergGdaTElGWerz fVidqjHB5MV/0lLo5EYAntO9Kw+rC/YXgKYcHC3L04sF2VRBFzRccpjVczGv8S8YQp25 XXnAC3Bp4k/doWsRAYk/4w0P27XhN1AGnfQgvLR1n5L8nxlYSOq65NF7xm0S1aomhVxo mBoQ== MIME-Version: 1.0 X-Received: by 10.50.45.168 with SMTP id o8mr7831118igm.41.1360721708777; Tue, 12 Feb 2013 18:15:08 -0800 (PST) Received: by 10.64.44.2 with HTTP; Tue, 12 Feb 2013 18:15:08 -0800 (PST) In-Reply-To: <20130213014734.GA89321@troutmask.apl.washington.edu> References: <20130213014734.GA89321@troutmask.apl.washington.edu> Date: Wed, 13 Feb 2013 02:15:08 +0000 Message-ID: Subject: Re: 7+ days of dogfood From: "b.f." To: Steve Kargl Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org, Anton Shterenlikht X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: bf1783@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 02:15:09 -0000 On 2/13/13, Steve Kargl wrote: > On Wed, Feb 13, 2013 at 12:18:29AM +0000, b.f. wrote: >> ># cat /etc/make.conf|grep FFLAGS >> >FFLAGS = -O2 -pipe -march=native -mtune=native >> >> Please do _not_ assign flags unconditionally in make.conf. > > FFLAGS is for compiling Fortran. I'm one of the people who > has spent years working/patching gfortran. I think I might > have a better understanding of what options to use with > gfortran than most people. > I know you have, but you are giving advice that is liable to be abused by those who are less experienced. The flags you are adding are not the problem -- it's the way that you are adding them -- specifically, the assignment in the first line of your snippet, if it's applied unconditionally. You should either be appending all of them, or assigning them conditionally, so that they are sure to be assigned only once, or -- preferably -- using another makefile that can't be re-read multiple times during a build (ports/Mk/bsd.port.mk automatically includes several makefiles that can be used for this purpose, if you are building a port). You have been lucky not to trip over this: every couple of months for the last several years I have had to debug errors reported by users that arise from this problem. It is more common with CFLAGS and CXXFLAGS but it can happen with FFLAGS, too. b.