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

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Mon, 4 Jun 2007 08:01:21 -0700
On Mon, Jun 04, 2007 at 01:48:01AM -0700, Garrett Cooper wrote:
> 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.  2) The
> >various ports that use Fortran should use gfortran42
> >installed with lang/gcc42.  
> >
> >  
> Not only that. f77 in gcc-4.2 has some bugs that are waiting to be 
> worked out in 4.2.1, so that may be a part of the issue as well.

There isn't an 'f77' in gcc-4.2.  There is gfortran, which is a 
Fortran 95 comiler with several Fortran 2003 extension.  There 
are only a few bugs (ie 2 or 3) in corner cases that affect the
ability to compile code which conforms to the Fortran 77 standard.

-- 
Steve
Received on Mon Jun 04 2007 - 13:01:35 UTC

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