Accepted Reply
Replies
no commercial compiler
LLVM's Fortran front-end is not functional: cannot compile very simple code, array assignments, and basic libraries like LAPACK
GCC does not currently target arm-darwin
-
Second this, at least for development purposes.
You'll want to follow the gcc support, which is just starting with gmp getting support for Apple Silicon. I can't imagine Apple Silicon not having a compatible fortran compiler, considering you can use gfortran with other AArch64 targets.
I have 100% confidence that Apple's level of support for Fortan will not change with the switch to Apple Silicon.Any update on this? All my native C applications compile for Apple Silicon. However, many scientists leverage my tools using R and their pipelines depend on Fortran for specific functions. Good support for R and Fortran is really important for many scientists.
Furthermore lack of gcc (the GNU Compiler Collection) support for Apple Silicon seems to be holding back Fortran as well, since many open source Fortran project seems to depend on that.
In any case, you could run gcc (and thus Fortran) under Rosetta 2. Many CPU-oriented Benchmarks has shown that the M1 already runs Intel apps faster than most portable Macs that came before it. Search the web for “How to Run Legacy Command Line Apps on Apple Silicon“ to set up a Terminal profile that runs Intel apps by default so that you can continue using Fortran in “Intel mode” until native support finally arrive.
Even though everything is mentioned I am having hard time to follow and get the expected results.
Few of the errors I am getting while installing packages in R are,
make: gfortran: No such file or directory - this is solved by installing the experimental gfortran release
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0' - can not find anything related to this.
I am a computational physicist and neuroscientist and I need Intel Fortran to do my work. Without this, I have to switch to Linux.