Skip to content

gfortran 14.2-darwin universal binary

Latest
Compare
Choose a tag to compare
@s-u s-u released this 19 Jan 23:02
· 82 commits to gcc-14-1-darwin since this release

This build is a fully universal binary of Iain Sandoe's release of GNU Fortran 14.2-darwin-r2 for macOS 11 (Big Sur) and higher. All binaries are signed.

It installs into /opt/gfortran and can be run with /opt/gfortran/bin/gfortran.

Fully universal means that it runs on both arm64 and x86_64 architectures and it can produce code for both arm64 and x86_64 (technically, it consists of two native compilers and two cross-compilers - see build/README for details).

The /opt/gfortran/SDK symlink should point to the desired SDKROOT (defaults to the command line tools SDK). This can be updated with /opt/gfortran/bin/gfortran-update-sdk or manually. If the symlink is broken, the driver will issue a warning and use xcrun to try to find an SDK and set SDKROOT accordingly.

Note: Only the driver-driver gfortran (which dispatches to the corresponding *-apple-darwin20.0-gfortran driver) has a name without the architecture and build. It does not support in-flight lipo (i.e. multiple -arch switches at once), so either use the experimental driver shell script (gfortran-multiarch) or compile for each architecture separately. Other tools don't have driver-drivers, but can be used via the full <arch>-apple-darwin20.0-<tool> name if desired.

If you are upgrading from previous versions please be aware that each version has its own location of run-time libraries in /opt/gfortran/lib/gcc/<arch>-apple-darwin20.0/<version>. Thus the run-times can coexist, or if they are compatible (minor versions) you can simply symlink the the older <version> directories.