Pre-built ARM/Linux C cross-compilers for MacOS
View the Project on GitHub thinkski/osx-arm-linux-toolchains
Building cross-compiler toolchains is a time-consuming process. This site provides pre-built cross-compiler toolchains for Apple Mac OS X (i.e. Darwin), targetting the Linux operating system on common architectures, currently arm
and aarch64
. In other words, compile code for ARM/Linux on your Mac.
Based on gcc and binutils, toolchains are provided currently in one variant, namely glibc, with support for uClibc-ng and musl possible in the future if there is interest. The toolchains are built using the crosstools-ng build system.
Toolchain | GCC | GDB | Linux headers | glibc | binutils |
---|---|---|---|---|---|
aarch64-unknown-linux-gnu | 8.3.0 | 8.2.1 | 4.20.8 | 2.29 | 2.32 |
arm-unknown-linux-gnueabi | 8.3.0 | 8.2.1 | 4.20.8 | 2.29 | 2.32 |
armv8-rpi3-linux-gnueabihf | 8.3.0 | 8.2.1 | 4.20.8 | 2.29 | 2.32 |
arm-unknown-linux-gnueabihf | 8.3.0 | 8.2.1 | 4.20.8 | 2.28 | 2.32 |
On Catalina and later, executables need to be code-signed. This can be done via:
find /path/to/installation/directory -executable | xargs -n1 sudo codesign --force --deep --sign -
If you find a problem or would like to see support for a new architecture or component combination, please file an issue.