Skip to content

GCC 14.2.0-3 (aarch64)

Latest
Compare
Choose a tag to compare
@simonjwright simonjwright released this 16 Nov 14:29
gcc-14.2.0-3-aarch64

This is GCC 14.2.0 built on macOS Sonoma (14, Darwin 23) for Apple silicon, with Command Line Utilities 15.3.0 and Python 3.9.13.

It will also run on Sequoia (15, Darwin24) and with Xcode/Command Line Tools 16, but it will not run on Monterey.

Compilers included: Ada, C, C++.

Compiler sources are from https://github.com/iains/gcc-14-branch at tag gcc-14.2-darwin-r2.

Tools included (all at version 25.0.0, and all with the Runtime Library Exception):

Configured with:

--prefix=/Volumes/Miscellaneous3/aarch64/gcc-14.2.0-3-aarch64
--enable-languages=c,c++,ada
--build=aarch64-apple-darwin23
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/../MacOSX14.sdk
--with-specs='%{!-sysroot:--sysroot=%:if-exists-else(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk)}'
--with-bugurl=https://github.com/simonjwright/building-gcc-macos-native
--enable-bootstrap

Installation, setting PATH

Please see the Wiki.

Notes

The software was built using the building-gcc-macos-native scripts at Github, tag gcc-14.2.0-3-aarch64.

All compilations were done with export MACOSX_DEPLOYMENT_TARGET=14 so that libraries and executables are compatible with macOS Sonoma and later.

Compiler

The compiler is GPL version 3. The runtime has the GCC Runtime Exception, so executables built with it can be released on proprietary terms.

GMP

This library (release 6.2.1) is installed with the compiler.

Other sources

The necessary patches to the v25.0.0 tools are included in the release in the file gcc-14.2.0-3-patches.zip.

Include, library paths

As noted here, Apple have changed the location of system include files and libraries; they used to be copied from the SDKs to the "standard" /usr/include and /usr/lib either automatically or on command.

This compiler has been built so you don't need to take any related action to use it: unfortunately, this means that paths in /usr/local and /Library/Frameworks aren't searched.