[Bug 228007] math/lapack: switch to flang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 6 21:33:30 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228007

robert.ayrapetyan at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #193117|text/x-log                  |text/plain
          mime type|                            |

--- Comment #3 from robert.ayrapetyan at gmail.com ---
Created attachment 193117
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=193117&action=edit
poudriere log for a patched port

Hi, thanks for a prompt reply!

Globally defined: DEFAULT_VERSIONS+=    fortran=flang
will break all ports using gfortran-specific FFLAGS
(e.g.-ffixed-line-length-none) and not using flang's replacements (e.g.
-Mextend).
In case of a math/lapack there are also incompatibilities with e.g. ETIME
function: 
gfortran requires it to be INTERNAL (default make.inc), flang - EXTERNAL
(requires make.inc patch) etc.
A suggested patch makes math/lapack to build using flang on amd64 only and
passes all tests after that (see attached poudriere log).
Other platforms should be unaffected and will continue to use gfortran.
> devel/flang-clang has been marked broken
hm, thanks, I've missed that somehow... I've just commited a patch for it (see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222254#c12).
gfortran's FreeBSD issue is really annoying and affects virtually all
scientific packages (e.g. Python's Keras, or recently added math/mlpack).
With FreeBSD's movement from gcc to clang, flang is the only right choice in a
long-term perspective.
To avoid even more issues and incompatibilities in the future I'm encouraging
FreeBSD's ports maintainers to make this switch ASAP.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fortran mailing list