Skip to content

gfortran 11-experimental-2 for ARM Big Sur (macOS 11)

Compare
Choose a tag to compare
@fxcoudert fxcoudert released this 19 Dec 15:56
· 1 commit to master since this release

This binary build of gfortran and GCC is an experimental version based on GCC 11, by Iain Sandoe, for Apple Silicon machines. This is an updated version of my previous experimental release.

Two files are provided:

  • gfortran-ARM-11.0-BigSur.tar.xz is an archive, to be unpacked under /usr/local
  • gfortran-ARM-11.0-BigSur.dmg is a user-friendly installer

Details

The compiler is built from sources at this revision: iains/gcc-darwin-arm64@f335f73

These packages were built with Xcode command-line tools 12.3, and should work with version 12.2 or later. They expect the macOS 11 SDK to be available under /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk (which should resolve some earlier issues about the exact naming of the SDK directory).

$ /usr/local/gfortran/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=./gfortran/bin/gfortran
COLLECT_LTO_WRAPPER=/Users/brew/FX/build_package/package/usr/local/gfortran/bin/../libexec/gcc/aarch64-apple-darwin20.2.0/11.0.0/lto-wrapper
Target: aarch64-apple-darwin20.2.0
Configured with: ../gcc-darwin-arm64/configure --prefix=/usr/local/gfortran --with-gmp=/Users/brew/FX/deps --with-isl=/Users/brew/FX/deps --enable-languages=c,c++,fortran,objc,obj-c++ --build=aarch64-apple-darwin20.2.0 --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20201205 (experimental) (GCC)