[Bug 228007] math/lapack: switch to flang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 6 23:22:02 UTC 2018


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

--- Comment #5 from robert.ayrapetyan at gmail.com ---
The gfortran's issue I'm talking about is related to:

ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc48/libgfortran.so.3 not found from gfortran.so library

-like errors, you can find recent examples here:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196862
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217459
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209985
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211889
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207750
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196491

Also, I've personally got into this issue trying to build Python's Keras and
mlpack recently.

Note also gcc46 is not provided by FreeBSD ports\packages anymore, so the
problem become even more actual.

So far I've tested\recompiled 4 ports, including this one, with no issues:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228008
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228009
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228011

I wouldn't like users of the recently added port (math/mlpack) deal with:

"-L/usr/local/lib/gcc6 -Wl,-rpath,/usr/local/lib:/usr/local/lib/gcc6"

tricks to compile their own code with clang in FreeBSD just because mentioned
libs above depend on a broken libgcc_s.so\gfortran.

If FreeBSD goes with clang in a long-term, flang is the only option there. As
per https://github.com/flang-compiler/flang/wiki:

Flang+LLVM is a production-quality Fortran solution designed to be co-installed
and is fully interoperable with Clang C++.
Flang single-core and OpenMP performance is now on par with GNU Fortran. Flang
has implemented Fortran 2003 and has a near full implementation of OpenMP
through version 4.5 targeting multicore CPUs.

Not sure how close is that to the reality (not close enough as per your
feedback), but we need to start this movement and sooner is better (will
catch\fix more issues\bugs in a shorten interval if people begin to move).

Thanks!

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


More information about the freebsd-fortran mailing list