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

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Mon, 4 Jun 2007 13:30:08 -0700 (PDT)
On  4 Jun, Steve Kargl wrote:

> The correct spelling of the name of the language is Fortran.

It's spelled FORTRAN if you're old enough ;-)

> The reason is simple.  If you upgrade from 6-stable to 7-current
> and you do not clean out the f77 command (aka g77) then you 
> may have ABI issues when LAPACK is compiled with f77 and consumers
> of liblapack.a use gfortran or even the base system cc.

If you happened to upgrade -current in a certain window, "make
delete-old-libs" would remove the necessary libraries, even though "make
delete-old" didn't know that it should delete /usr/bin/f77, so the
lapack build would bail out because f77 couldn't find libg2c.

Setting FC=gfortran42 is is sufficient to get lapack and
math/atlas-devel to build, assuming that lang/gcc42 is installed.

BTW, math/atlas* has been using the combination of gcc34 and
gfortran42 on -current for a while now, which means that it requires the
installation of two different gcc ports ...
Received on Mon Jun 04 2007 - 18:30:18 UTC

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