From owner-freebsd-current@FreeBSD.ORG Wed Feb 13 00:18:32 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 207E824D for ; Wed, 13 Feb 2013 00:18:32 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ie0-x22c.google.com (ie-in-x022c.1e100.net [IPv6:2607:f8b0:4001:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id C8B5AD64 for ; Wed, 13 Feb 2013 00:18:31 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id c10so952496ieb.17 for ; Tue, 12 Feb 2013 16:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:reply-to:date:message-id:subject:from:to :content-type; bh=NdU9RFo6KO8Ps/yjs33kzIloNW+53hPWMjhVj8RUrQs=; b=nYFQwI1MVWWcKaNJssCOUx23TJ6u2XA2ftNa4hPJaiEIp6ok55dWyYqtnHQNNIHHtb 326GQgp4BvAovv+s4yxbPTG765YpH9iNPjc2qCqUih0tgCTNAjMym5B8qt0efMbm79Ce GwI1v/Fxnu+pWKyntQYjwm8L1sqbd8LiTTojEVlAoD3PJoMLZs0XB0dKyGTH9Ne8k5PX 2zW+JQNwUYygP2zigjskypAI7lMVcxLaJkn65BGP87kjx/AQOVbt7P6dimTLwaQ7Jxiy R1w64k8Qhe2rPmyZlEhtWEm6akSlbWe+S+DR0UVLOayPSmwRaqfkxybQhFvubVJRAZCo Y7NA== MIME-Version: 1.0 X-Received: by 10.50.179.100 with SMTP id df4mr7363416igc.60.1360714710571; Tue, 12 Feb 2013 16:18:30 -0800 (PST) Received: by 10.64.44.2 with HTTP; Tue, 12 Feb 2013 16:18:29 -0800 (PST) Date: Wed, 13 Feb 2013 00:18:29 +0000 Message-ID: Subject: Re: 7+ days of dogfood From: "b.f." To: Anton Shterenlikht , freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 00:18:32 -0000 ># cat /etc/make.conf|grep FFLAGS >FFLAGS = -O2 -pipe -march=native -mtune=native Please do _not_ assign flags unconditionally in make.conf. In fact, try to remove or restrict the scope of everything in this file. (It is unfortunate that some of the examples for the base system in the sample make.conf have been inappropriate for use with other software, and also that the recent port options changes have encouraged people to once again dump a lot of stuff into this file.) This is a very special file: it is included nearly every time make(1) is invoked. In addition to the usual concerns about speed, efficiency, and build pollution, if a port or some other software invokes make(1) more than once -- and many do -- make.conf is often re-read, and assignments can clobber necessary prior additions or changes to a variable that were made elsewhere, sometimes breaking software, and not always in an obvious way. >I get building lapack: > >gfortran47 -O2 -pipe -march=native -mtune=native -funroll-loops -ftree-vectorize -pg -c slatms.f -o slatms.o >gfortran47: error: unrecognized command line option '-march=native' >gfortran47: error: unrecognized argument in option '-mtune=native' >gfortran47: note: valid arguments to '-mtune=' are: itanium2 mckinley For example, here it looks like you have clobbered some of the rpath flag additions made in ports/Mk/bsd.gcc.mk. This may not break lapack, but similar changes will almost certainly break some other software. b.