Version 8.5.0-1 is the first release of xPack GCC.

The xPack GCC is the xPack distribution of the GNU Compiler Collection.

There are separate binaries for Windows (Intel 32/64-bit), macOS (Intel 64-bit) and GNU/Linux (Intel 32/64-bit, Arm 32/64-bit).


The binary files are available from GitHub releases.


The full details of installing the xPack GNU Arm Embedded GCC on various platforms are presented in the separate Install page.

On macOS, the general build tools are available in the Command Line Tools package, which can be installed standalone or as part of Xcode.

Easy install

The easiest way to install GNU Arm Embedded GCC is with xpm by using the binary xPack, available as @xpack-dev-tools/gcc from the registry.

To install the latest version available, use:

cd my-project
xpm init # Only at first use.

xpm install @xpack-dev-tools/gcc@latest

ls -l xpacks/.bin

To install this specific version, use:

xpm install @xpack-dev-tools/gcc@8.5.0-1.2


This release follows the official GCC release.

Supported languages

The supported languages are:

  • C
  • C++
  • Obj-C
  • Obj-C++
  • Fortran


Compared to the GNU version, there should be no functional changes.

The only patch applied was to make it correctly recognise macOS version 11.x instead of 10.16; the code was copied from the more recent 11.x sources.

Bug fixes

  • none


  • none

Known problems

  • on macOS, the g++ compiler complains about something like … the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. The reason for triggering this warning was not identified (yet), but the resulting binaries seem functional.

macOS binutils

The GNU binutils are not compatible with the macOS linker and are not included in the macOS archive.


For the package to be standalone, the MacOSX10.10.sdk folder includes the 10.10 SDK.

Shared libraries

On all platforms the packages are standalone, and expect only the standard runtime to be present on the host.

All dependencies that are build as shared libraries are copied locally in the same folder as the executable.


On GNU/Linux the binaries are adjusted to use a relative path:

% readelf -d | grep rpath
 0x000000000000001d (RPATH)            Library runpath: [$ORIGIN]

In the GNU search strategy, the DT_RPATH has the highest priority, higher than LD_LIBRARY_PATH, so if this later one is set in the environment, it should not interfere with the xPack binaries.

Please note that previous versions, up to mid-2020, used DT_RUNPATH, which has a priority lower than LD_LIBRARY_PATH, and does not tolerate setting it in the environment.


Similarly, on macOS, the binaries are adjusted with otool to use a relative path.


The original PDF documentation is available in the share/doc folder.

Supported platforms

Binaries for Windows, macOS and GNU/Linux are provided.

The binaries were built using the xPack Build Box (XBB), a set of build environments based on slightly older distributions, that should be compatible with most recent systems.

  • Intel GNU/Linux: all binaries were built with GCC 9.3, running in an Ubuntu 12 Docker container
  • Arm GNU/Linux: all binaries were built with GCC 9.3, running in an Ubuntu 16 Docker container (added in mid-2020)
  • Windows: all binaries were built with mingw-w64 GCC 9.3, running in an Ubuntu 12 Docker container
  • Intel macOS: all binaries were built with GCC 9.3, running in a separate folder on macOS 10.10.5.


The scripts used to build this distribution are in:

  • distro-info/scripts

For the prerequisites and more details on the build procedure, please see the README-MAINTAINER page.

CI tests



The binaries were testes on Windows 10 Pro 32/64-bit, Ubuntu 18 LTS 64-bit, Xubuntu 18 LTS 32-bit and macOS 11.2.

The tests consist in building simple hello world programs.

Since the source code used for GCC is identical to the one used by GNU, the long and complex tests performed by GNU to validate their release were not executed again.


The SHA-256 hashes for the files are:








Download analytics

Credit to Shields IO for the badges and to Somsubhra/github-release-stats for the individual file counters.