Re: /usr/share/mk/sys.mk and FORTRAN on -CURRENT

From: Bob Bishop <rb_at_gid.co.uk>
Date: Mon, 4 Jun 2007 09:43:03 +0100
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_at_gid.co.uk fax +44 (0)118 940 1295
Received on Mon Jun 04 2007 - 07:03:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC