Date: Fri, 17 Aug 2018 12:55:18 +0200 From: =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org> To: Anton Shterenlikht <as@cmplx.uk> Cc: freebsd-ports@freebsd.org Subject: Re: DEFAULT_VERSIONS=gcc=8 results in gfortran7 Message-ID: <20180817125518.6059ecba@kalimero.tijl.coosemans.org> In-Reply-To: <20180817102453.GA28396@jail0199.vps.exonetric.net> References: <20180817102453.GA28396@jail0199.vps.exonetric.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Aug 2018 10:24:53 +0000 Anton Shterenlikht <as@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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180817125518.6059ecba>