You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
allow specifying non-default Fortran compiler with FC env var #13462
Using flang via setting the FC environment variable is reported not to be working at scipy/scipy#10125. A -lgfortran flag is added, when gfortran isn't installed on the system. This is due to the config stage not knowing about FC and always picking up GnuFortranCompiler if --fcompiler is not used.
Another error I am getting with flang in OpenBSD 6.6 (based on clang 8.0.1) is that it attempts to use it with -g flag, which results in inability to compile anything with a named COMMON block (a known flang bug), e.g. an attempt to build scipy ends with
This is another feature request for numpy.distutils. Bug reports about numpy.distutils are still needed until it is completely removed from numpy, however feature requests we can close now.
Activity
isuruf commentedon May 3, 2019
flang is not added to default_compiler
numpy/numpy/distutils/fcompiler/__init__.py
Line 747 in 7dbb325
and is only defined for python 3 for some weird reason,
numpy/numpy/distutils/fcompiler/pg.py
Line 67 in b1d7001
dimpase commentedon May 12, 2020
Another error I am getting with flang in OpenBSD 6.6 (based on clang 8.0.1) is that it attempts to use it with
-gflag, which results in inability to compile anything with a namedCOMMONblock (a known flang bug), e.g. an attempt to build scipy ends withGiven that the only other Fortran provided on OpenBSD is g95 (very old), it's a show-stopper.
Is there a graceful way to remove
-g? If not, what should I patch?dimpase commentedon May 12, 2020
A related question - what is the need for that
COMMONblock? It does not seem to be used anywhere inscipy. Can it just be removed?rgommers commentedon Nov 21, 2022
This is another feature request for
numpy.distutils. Bug reports aboutnumpy.distutilsare still needed until it is completely removed from numpy, however feature requests we can close now.rgommers commentedon Nov 21, 2022
I'll also note that Meson already does the right thing here.