On Wed, May 08 2019, Brian Callahan <call...@rpi.edu> wrote:
> On 5/8/19 10:43 AM, Jeremie Courreges-Anglas wrote:
>> On Wed, May 08 2019, Brian Callahan <call...@rpi.edu> wrote:
>>> Hi ports --
>>>
>>> Attached are two diffs. The first turns on flang support in the fortran
>>> module. This has been brought up before but stalled. It is now necessary
>>> for R to build on arm64. The second uses flang as the Fortran compiler
>>> on arm64 when building R. This allows R to successfully build and
>>> package and install.
>>>
>>> OK?
>> I didn't check too closely (I have no arm64 hw anyway) but... this puts
>> the logic of selecting the appropriate fortran compiler into a leaf
>> port.  Since flang is the only usable choice on arm64, shouldn't this be
>> put in infrastructure/mk/fortran.port.mk instead, so that the whole
>> ports tree benefits from it?  Or is this planned as a subsequent step?
>>
>
> gfortran is available on arm64 since the gcc-8 switch. But it failed to
> build R (see Peter's aarch64 build logs). It does, however, successfully
> build math/blas.

Oh I see, I had missed/forgotten that gcc-8 brought ports-gcc and fortran
support to arm64.

> I could try to get gfortran to build R on arm64 if that makes more sense
> for people.

After your explanation, your proposal makes more sense to me.  I have no
opinion regarding the approach that should be used, please pick the one
that makes most sense for you.

fwiw here's a hand-made list of fortran (f95) ports that did not build
in the last aarch64 bulk:

  math/R http://build-failures.rhaalovely.net/aarch64/2019-05-04/math/R.log
  math/arpack 
http://build-failures.rhaalovely.net/aarch64/2019-05-04/math/arpack.log
  math/cblas 
http://build-failures.rhaalovely.net/aarch64/2019-05-04/math/cblas.log
  math/octave (depends on arpack)
  math/plplot 
http://build-failures.rhaalovely.net/aarch64/2019-05-04/math/plplot%2C-c%2B%2B.log
  math/py-scipy 
http://build-failures.rhaalovely.net/aarch64/2019-05-04/math/py-scipy.log
  x11/kde-applications/cantor (depends on math/R)

And here's the full list of ports depending on f95:
--8<--
astro/wcslib
audio/cmu-sphinxbase
devel/meson
math/R
math/arpack
math/blas
math/cblas
math/lapack
math/octave
math/plplot
math/plplot,-c++
math/plplot,-fortran
math/plplot,-main
math/py-numpy
math/py-numpy,
math/py-numpy,python3
math/py-scipy
math/py-scipy,python3
math/qrupdate
math/suitesparse
x11/kde-applications/cantor
-->8--


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to