DEFAULT_VERSIONS=gcc=8 results in gfortran7

Tijl Coosemans tijl at FreeBSD.org
Fri Aug 17 10:56:30 UTC 2018


On Fri, 17 Aug 2018 10:24:53 +0000 Anton Shterenlikht <as at cmplx.uk> wrote:
> I got no replies from fortran@, reposting here.
> 
> I'm building with synth.
> jrmarino says this should work,
> i.e. the problem is not in synth.
> 
> I have DEFAULT_VERSIONS=gcc=8 in synth make.conf:
> 
> # cat /usr/local/etc/synth/LiveSystem-make.conf 
> DEVELOPER=yes
> FFLAGS+= -O2 -pipe -march=bdver2 -mtune=bdver2
> FFLAGS+= -funroll-loops --param max-unroll-times=4 -ftree-vectorize
> FFLAGS+= -g
> DEFAULT_VERSIONS=gcc=8
> 
> However, when building net/mpich, gfortran7 is used:
> 
> --------------------------------------------------
> --  CONFIGURE_ENV
> --------------------------------------------------
> PKG_CONFIG=pkgconf
> F77="gfortran7"
> FC="gfortran7"
> 
> Here's the full log:
> 
> http://cmplx.uk/net___mpich.log
> 
> Should setting DEFAULT_VERSIONS=gcc=8 in make.conf
> be sufficient to force the use of gfortran8?
> 
> Looking at /usr/ports/Mk/Uses/fortran.mk, my answer is yes.

"make DEFAULT_VERSIONS=gcc=8 -V FC" prints gfortran8 here so it should
work.  Make sure you don't set DEFAULT_VERSIONS elsewhere and that the
make.conf is actually used (insert a .error directive or something and
check that it fails).


More information about the freebsd-ports mailing list