From owner-freebsd-current@FreeBSD.ORG Mon Jun 4 09:03:55 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA3AF16A41F; Mon, 4 Jun 2007 09:03:55 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gidgate.gid.co.uk (gid.co.uk [194.32.164.225]) by mx1.freebsd.org (Postfix) with ESMTP id EFED913C458; Mon, 4 Jun 2007 09:03:54 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from [10.10.1.241] (isbalham.ist.co.uk [192.31.26.1]) by gidgate.gid.co.uk (8.13.8/8.13.8) with ESMTP id l548ggAm058988; Mon, 4 Jun 2007 09:42:42 +0100 (BST) (envelope-from rb@gid.co.uk) In-Reply-To: <20070604010942.GA13434@troutmask.apl.washington.edu> References: <200706032347.l53NlXU6055249@gw.catspoiler.org> <20070604010942.GA13434@troutmask.apl.washington.edu> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <80BDCC4A-97A0-4582-A237-D87B1143130C@gid.co.uk> Content-Transfer-Encoding: 7bit From: Bob Bishop Date: Mon, 4 Jun 2007 09:43:03 +0100 To: Steve Kargl X-Mailer: Apple Mail (2.752.3) Cc: ports@freebsd.org, Don Lewis , current@freebsd.org Subject: Re: /usr/share/mk/sys.mk and FORTRAN on -CURRENT 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: Mon, 04 Jun 2007 09:03:55 -0000 Hi, On 4 Jun 2007, at 02:09, Steve Kargl wrote: > On Sun, Jun 03, 2007 at 04:47:33PM -0700, Don Lewis wrote: >> I was taking a look at why math/lapack fails to build on -CURRENT and >> discovered that the port uses ${FC} to find the FORTRAN compiler. I >> then discovered that /usr/share/mk/sys.mk defines ${FC} as f77 (or >> fort77). I don't this is appropriate since f77 has been removed from >> -CURRENT. >> >> I don't know what the proper fix is, but I though I should point >> out the >> problem ... >> > > There are two bugs here. 1) FC should be removed. Why? One might well want the option to use any of the several FORTRAN compilers from ports. > 2) The various ports that use Fortran should use gfortran42 > installed with lang/gcc42. The various ports that use Fortran should be checked to see what version of FORTRAN they want. I suspect the easiest fix is to have $FC empty by default and for dependent ports to output a helpful diagnostic. A better fix would be to make ports dependent on an appropriate compiler port, but that's a lot of work and some users will prefer ifc anyway. > -- > Steve -- Bob Bishop +44 (0)118 940 1243 rb@gid.co.uk fax +44 (0)118 940 1295