xPack GNU RISC-V Embedded GCC v13.4.0-1 released
Version 13.4.0-1.1 is a new release; it follows the GNU GCC release.
The xPack GNU RISC-V Embedded GCC is a standalone cross-platform binary distribution of GNU GCC for embedded RISC-V.
There are separate binaries for Windows (x64), macOS (x64 and arm64) and GNU/Linux (x64 and arm64).
The main targets for the GNU/Linux Arm binaries are the Raspberry Pi class devices (aarch64 only; armv6 and armv7l are no longer supported).
Download
The binary files can be downloaded automatically with xpm or manually from GitHub Releases.
Prerequisites
- x64 Windows: Windows 7 with the Universal C Runtime (UCRT), Windows 8, Windows 10, Windows 11
- x64 macOS: 11.0 or later
- arm64 macOS: 11.0 or later
- x64 GNU/Linux: any system with GLIBC 2.28 or higher (like Ubuntu 20 or later, Debian 10 or later, RedHat 8 or later, Fedora 29 or later, etc)
- arm64 GNU/Linux: any system with GLIBC 2.28 or higher (like Raspberry Pi OS, Ubuntu 20 or later, Debian 10 or later, RedHat 8 or later, Fedora 29 or later, etc)
Install
The easiest way to install this specific version, is by using xpm:
xpm install @xpack-dev-tools/riscv-none-elf-gcc@13.4.0-1.1 -verbose
Comprehensive instructions for installing xPack xPack GNU RISC-V Embedded GCC on different platforms can be found in the Install Guide.
Compliance
The xPack GNU RISC-V Embedded GCC uses the official sources, with no functional changes:
- GCC 13.4.0
- binutils 2.45
- newlib 4.5.0
- gdb 16.3
- python 3.13.7
Supported libraries
The default architecture/ABI pair is rv32imac/ilp32
.
The other supported libraries are:
$ riscv-none-elf-gcc -print-multi-lib
.;
rv32e/ilp32e;@march=rv32e@mabi=ilp32e
rv32ec/ilp32e;@march=rv32ec@mabi=ilp32e
rv32ea/ilp32e;@march=rv32ea@mabi=ilp32e
rv32em/ilp32e;@march=rv32em@mabi=ilp32e
rv32eac/ilp32e;@march=rv32eac@mabi=ilp32e
rv32emac/ilp32e;@march=rv32emac@mabi=ilp32e
rv32i/ilp32;@march=rv32i@mabi=ilp32
rv32ia/ilp32;@march=rv32ia@mabi=ilp32
rv32im/ilp32;@march=rv32im@mabi=ilp32
rv32imc/ilp32;@march=rv32imc@mabi=ilp32
rv32if_zicsr/ilp32f;@march=rv32if_zicsr@mabi=ilp32f
rv32ifd_zicsr/ilp32d;@march=rv32ifd_zicsr@mabi=ilp32d
rv32iaf_zicsr/ilp32f;@march=rv32iaf_zicsr@mabi=ilp32f
rv32iafd_zicsr/ilp32d;@march=rv32iafd_zicsr@mabi=ilp32d
rv32imf_zicsr/ilp32f;@march=rv32imf_zicsr@mabi=ilp32f
rv32imfd_zicsr/ilp32d;@march=rv32imfd_zicsr@mabi=ilp32d
rv32iac/ilp32;@march=rv32iac@mabi=ilp32
rv32imafc_zicsr/ilp32f;@march=rv32imafc_zicsr@mabi=ilp32f
rv32imafdc_zicsr/ilp32d;@march=rv32imafdc_zicsr@mabi=ilp32d
rv64i/lp64;@march=rv64i@mabi=lp64
rv64ia/lp64;@march=rv64ia@mabi=lp64
rv64im/lp64;@march=rv64im@mabi=lp64
rv64if_zicsr/lp64f;@march=rv64if_zicsr@mabi=lp64f
rv64ifd_zicsr/lp64d;@march=rv64ifd_zicsr@mabi=lp64d
rv64iaf_zicsr/lp64f;@march=rv64iaf_zicsr@mabi=lp64f
rv64iafd_zicsr/lp64d;@march=rv64iafd_zicsr@mabi=lp64d
rv64imf_zicsr/lp64f;@march=rv64imf_zicsr@mabi=lp64f
rv64iac/lp64;@march=rv64iac@mabi=lp64
rv64imac/lp64;@march=rv64imac@mabi=lp64
rv64imafc_zicsr/lp64f;@march=rv64imafc_zicsr@mabi=lp64f
rv64imafdc_zicsr/lp64d;@march=rv64imafdc_zicsr@mabi=lp64d
This list is inspired by the Debian riscv64-unknown-elf-gcc
supported multi-libs.
Changes
Compared to the upstream GNU release, there are no functional changes.
Bug fixes
- none
Enhancements
- none
Known problems
- in certain conditions, on Apple Silicon macOS, the
riscv-none-elf-gdb
debugger may crash with a message likeFatal signal: Abort trap: 6
. Other platforms are not affected. To be further investigated.
Documentation
The original GNU Arm Embedded GCC documentation is available from the GCC online documentation web site.
Build
The binaries for all supported platforms (Windows, macOS and GNU/Linux) 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.
For the prerequisites and more details on the build procedure, please see the Maintainer Info page.
CI tests
Before publishing, a set of simple tests were performed on an exhaustive set of platforms. The results are available from:
Tests
The binaries were tested on a variety of platforms, but mainly to check the integrity of the build, not the compiler functionality.
Checksums
The SHA-256 hashes for the files are:
4b35ba81bbcf3944ca346cd51f81f3628ab6e3207bf813aaf5d1c70f1406f4ab
xpack-riscv-none-elf-gcc-13.4.0-1-darwin-arm64.tar.gz
35a036ba11338b010ea8143dc91bebdefb10daf9c189befd442ac74c2f568847
xpack-riscv-none-elf-gcc-13.4.0-1-darwin-x64.tar.gz
ecb74ef00346147bb0d9b78fed6249122473911af1f9b518b873580b8d7a749a
xpack-riscv-none-elf-gcc-13.4.0-1-linux-arm64.tar.gz
2f669492e131906f21641de3ed5cb808d17eff2716b551c73651fe6650565a5f
xpack-riscv-none-elf-gcc-13.4.0-1-linux-x64.tar.gz
6246ee0dd83215c0eef2d348c16b4270dcdf876705c81f3848c853c7b3a735b4
xpack-riscv-none-elf-gcc-13.4.0-1-win32-x64.zip
Folders hierarchy
After install, the package creates a hierarchy of folders like the following (only the first two depth levels are shown):
- Windows
- macOS
- GNU/Linux
C:> tree /f %USERPROFILE%\AppData\Roaming\xPacks\@xpack-dev-tools\riscv-none-elf-gcc\13.4.0-1.1\.content
Folder PATH listing
Volume serial number is B02D-925C
├── README.md
├── bin
│ ├── riscv-none-elf-addr2line
│ ├── riscv-none-elf-ar
│ ├── riscv-none-elf-as
│ ├── riscv-none-elf-c++
│ ├── riscv-none-elf-c++filt
│ ├── riscv-none-elf-cpp
│ ├── riscv-none-elf-elfedit
│ ├── riscv-none-elf-g++
│ ├── riscv-none-elf-gcc
│ ├── riscv-none-elf-gcc-13.4.0
│ ├── riscv-none-elf-gcc-ar
│ ├── riscv-none-elf-gcc-nm
│ ├── riscv-none-elf-gcc-ranlib
│ ├── riscv-none-elf-gcov
│ ├── riscv-none-elf-gcov-dump
│ ├── riscv-none-elf-gcov-tool
│ ├── riscv-none-elf-gdb
│ ├── riscv-none-elf-gdb-add-index
│ ├── riscv-none-elf-gdb-add-index-py3
│ ├── riscv-none-elf-gdb-py3
│ ├── riscv-none-elf-gfortran
│ ├── riscv-none-elf-gprof
│ ├── riscv-none-elf-gstack
│ ├── riscv-none-elf-gstack-py3
│ ├── riscv-none-elf-ld
│ ├── riscv-none-elf-ld.bfd
│ ├── riscv-none-elf-lto-dump
│ ├── riscv-none-elf-nm
│ ├── riscv-none-elf-objcopy
│ ├── riscv-none-elf-objdump
│ ├── riscv-none-elf-ranlib
│ ├── riscv-none-elf-readelf
│ ├── riscv-none-elf-size
│ ├── riscv-none-elf-strings
│ └── riscv-none-elf-strip
├── distro-info
│ └── licenses
├── include
│ └── gdb
├── lib
│ ├── bfd-plugins
│ ├── gcc
│ └── python3.13
├── lib64
│ ├── libcc1.so -> libcc1.so.0.0.0
│ ├── libcc1.so.0 -> libcc1.so.0.0.0
│ └── libcc1.so.0.0.0
├── libexec
│ ├── gcc
│ ├── libcrypto.so.3
│ ├── libexpat.so.1 -> libexpat.so.1.11.1
│ ├── libexpat.so.1.11.1
│ ├── libffi.so.8 -> libffi.so.8.2.0
│ ├── libffi.so.8.2.0
│ ├── libfl.so.2 -> libfl.so.2.0.0
│ ├── libfl.so.2.0.0
│ ├── libgcc_s.so.1
│ ├── libgmp.so.10 -> libgmp.so.10.5.0
│ ├── libgmp.so.10.5.0
│ ├── libiconv.so.2 -> libiconv.so.2.6.1
│ ├── libiconv.so.2.6.1
│ ├── libisl.so.23 -> libisl.so.23.4.0
│ ├── libisl.so.23.4.0
│ ├── liblzma.so.5 -> liblzma.so.5.8.1
│ ├── liblzma.so.5.8.1
│ ├── libmpc.so.3 -> libmpc.so.3.3.1
│ ├── libmpc.so.3.3.1
│ ├── libmpdec.so.4 -> libmpdec.so.4.0.1
│ ├── libmpdec.so.4.0.1
│ ├── libmpfr.so.6 -> libmpfr.so.6.2.2
│ ├── libmpfr.so.6.2.2
│ ├── libncursesw.so.6 -> libncursesw.so.6.5
│ ├── libncursesw.so.6.5
│ ├── libpanelw.so.6 -> libpanelw.so.6.5
│ ├── libpanelw.so.6.5
│ ├── libpython3.13.so.1.0
│ ├── libreadline.so.8 -> libreadline.so.8.3
│ ├── libreadline.so.8.3
│ ├── libsqlite3.so -> libsqlite3.so.3.50.4
│ ├── libsqlite3.so.3.50.4
│ ├── libssl.so.3
│ ├── libstdc++.so.6 -> libstdc++.so.6.0.34
│ ├── libstdc++.so.6.0.34
│ ├── libz.so.1 -> libz.so.1.3.1
│ ├── libz.so.1.3.1
│ ├── libzstd.so.1 -> libzstd.so.1.5.7
│ └── libzstd.so.1.5.7
├── riscv-none-elf
│ ├── bin
│ ├── include
│ ├── lib
│ └── share
└── share
└── gcc-13.4.0
19 directories, 77 files
$ tree -L 2 ~/Library/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/13.4.0-1.1/.content/
/Users/ilg/Library/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/13.4.0-1.1/.content/
├── bin
│ ├── riscv-none-elf-addr2line
│ ├── riscv-none-elf-ar
│ ├── riscv-none-elf-as
│ ├── riscv-none-elf-c++
│ ├── riscv-none-elf-c++filt
│ ├── riscv-none-elf-cpp
│ ├── riscv-none-elf-elfedit
│ ├── riscv-none-elf-g++
│ ├── riscv-none-elf-gcc
│ ├── riscv-none-elf-gcc-13.4.0
│ ├── riscv-none-elf-gcc-ar
│ ├── riscv-none-elf-gcc-nm
│ ├── riscv-none-elf-gcc-ranlib
│ ├── riscv-none-elf-gcov
│ ├── riscv-none-elf-gcov-dump
│ ├── riscv-none-elf-gcov-tool
│ ├── riscv-none-elf-gdb
│ ├── riscv-none-elf-gdb-add-index
│ ├── riscv-none-elf-gdb-add-index-py3
│ ├── riscv-none-elf-gdb-py3
│ ├── riscv-none-elf-gfortran
│ ├── riscv-none-elf-gprof
│ ├── riscv-none-elf-gstack
│ ├── riscv-none-elf-gstack-py3
│ ├── riscv-none-elf-ld
│ ├── riscv-none-elf-ld.bfd
│ ├── riscv-none-elf-lto-dump
│ ├── riscv-none-elf-nm
│ ├── riscv-none-elf-objcopy
│ ├── riscv-none-elf-objdump
│ ├── riscv-none-elf-ranlib
│ ├── riscv-none-elf-readelf
│ ├── riscv-none-elf-size
│ ├── riscv-none-elf-strings
│ └── riscv-none-elf-strip
├── distro-info
│ └── licenses
├── include
│ └── gdb
├── lib
│ ├── bfd-plugins
│ ├── gcc
│ ├── libcc1.0.so
│ ├── libcc1.so -> libcc1.0.so
│ └── python3.13
├── libexec
│ ├── gcc
│ ├── libbz2.1.0.8.dylib
│ ├── libc++.1.0.dylib
│ ├── libc++abi.1.0.dylib
│ ├── libcrypto.3.dylib
│ ├── libexpat.1.11.1.dylib
│ ├── libexpat.1.dylib -> libexpat.1.11.1.dylib
│ ├── libffi.8.dylib
│ ├── libgmp.10.dylib
│ ├── libiconv.2.dylib
│ ├── libisl.23.dylib
│ ├── liblzma.5.dylib
│ ├── libmpc.3.dylib
│ ├── libmpdec.4.0.1.dylib
│ ├── libmpdec.4.dylib -> libmpdec.4.0.1.dylib
│ ├── libmpfr.6.dylib
│ ├── libncursesw.6.dylib
│ ├── libpanelw.6.dylib
│ ├── libpython3.13.dylib
│ ├── libreadline.8.3.dylib
│ ├── libreadline.8.dylib -> libreadline.8.3.dylib
│ ├── libsqlite3.3.50.4.dylib
│ ├── libsqlite3.dylib -> libsqlite3.3.50.4.dylib
│ ├── libssl.3.dylib
│ ├── libunwind.1.0.dylib
│ ├── libz.1.3.1.dylib
│ ├── libz.1.dylib -> libz.1.3.1.dylib
│ ├── libzstd.1.5.7.dylib
│ └── libzstd.1.dylib -> libzstd.1.5.7.dylib
├── README.md
├── riscv-none-elf
│ ├── bin
│ ├── include
│ ├── lib
│ └── share
└── share
└── gcc-13.4.0
19 directories, 66 files
$ tree -L 2 ~/.local/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/13.4.0-1.1/.content/
/home/ilg/.local/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/13.4.0-1.1/.content/
├── README.md
├── bin
│ ├── riscv-none-elf-addr2line
│ ├── riscv-none-elf-ar
│ ├── riscv-none-elf-as
│ ├── riscv-none-elf-c++
│ ├── riscv-none-elf-c++filt
│ ├── riscv-none-elf-cpp
│ ├── riscv-none-elf-elfedit
│ ├── riscv-none-elf-g++
│ ├── riscv-none-elf-gcc
│ ├── riscv-none-elf-gcc-13.4.0
│ ├── riscv-none-elf-gcc-ar
│ ├── riscv-none-elf-gcc-nm
│ ├── riscv-none-elf-gcc-ranlib
│ ├── riscv-none-elf-gcov
│ ├── riscv-none-elf-gcov-dump
│ ├── riscv-none-elf-gcov-tool
│ ├── riscv-none-elf-gdb
│ ├── riscv-none-elf-gdb-add-index
│ ├── riscv-none-elf-gdb-add-index-py3
│ ├── riscv-none-elf-gdb-py3
│ ├── riscv-none-elf-gfortran
│ ├── riscv-none-elf-gprof
│ ├── riscv-none-elf-gstack
│ ├── riscv-none-elf-gstack-py3
│ ├── riscv-none-elf-ld
│ ├── riscv-none-elf-ld.bfd
│ ├── riscv-none-elf-lto-dump
│ ├── riscv-none-elf-nm
│ ├── riscv-none-elf-objcopy
│ ├── riscv-none-elf-objdump
│ ├── riscv-none-elf-ranlib
│ ├── riscv-none-elf-readelf
│ ├── riscv-none-elf-size
│ ├── riscv-none-elf-strings
│ └── riscv-none-elf-strip
├── distro-info
│ └── licenses
├── include
│ └── gdb
├── lib
│ ├── bfd-plugins
│ ├── gcc
│ └── python3.13
├── lib64
│ ├── libcc1.so -> libcc1.so.0.0.0
│ ├── libcc1.so.0 -> libcc1.so.0.0.0
│ └── libcc1.so.0.0.0
├── libexec
│ ├── gcc
│ ├── libcrypto.so.3
│ ├── libexpat.so.1 -> libexpat.so.1.11.1
│ ├── libexpat.so.1.11.1
│ ├── libffi.so.8 -> libffi.so.8.2.0
│ ├── libffi.so.8.2.0
│ ├── libfl.so.2 -> libfl.so.2.0.0
│ ├── libfl.so.2.0.0
│ ├── libgcc_s.so.1
│ ├── libgmp.so.10 -> libgmp.so.10.5.0
│ ├── libgmp.so.10.5.0
│ ├── libiconv.so.2 -> libiconv.so.2.6.1
│ ├── libiconv.so.2.6.1
│ ├── libisl.so.23 -> libisl.so.23.4.0
│ ├── libisl.so.23.4.0
│ ├── liblzma.so.5 -> liblzma.so.5.8.1
│ ├── liblzma.so.5.8.1
│ ├── libmpc.so.3 -> libmpc.so.3.3.1
│ ├── libmpc.so.3.3.1
│ ├── libmpdec.so.4 -> libmpdec.so.4.0.1
│ ├── libmpdec.so.4.0.1
│ ├── libmpfr.so.6 -> libmpfr.so.6.2.2
│ ├── libmpfr.so.6.2.2
│ ├── libncursesw.so.6 -> libncursesw.so.6.5
│ ├── libncursesw.so.6.5
│ ├── libpanelw.so.6 -> libpanelw.so.6.5
│ ├── libpanelw.so.6.5
│ ├── libpython3.13.so.1.0
│ ├── libreadline.so.8 -> libreadline.so.8.3
│ ├── libreadline.so.8.3
│ ├── libsqlite3.so -> libsqlite3.so.3.50.4
│ ├── libsqlite3.so.3.50.4
│ ├── libssl.so.3
│ ├── libstdc++.so.6 -> libstdc++.so.6.0.34
│ ├── libstdc++.so.6.0.34
│ ├── libz.so.1 -> libz.so.1.3.1
│ ├── libz.so.1.3.1
│ ├── libzstd.so.1 -> libzstd.so.1.5.7
│ └── libzstd.so.1.5.7
├── riscv-none-elf
│ ├── bin
│ ├── include
│ ├── lib
│ └── share
└── share
└── gcc-13.4.0
19 directories, 77 files
Deprecation notices
GNU/Linux minimum requirements
The minimum requirement is GLIBC 2.28, available starting with Ubuntu 20, Debian 10 and RedHat 8. Support for RedHat 7 was dropped in 2022. Support for Ubuntu 18 was dropped in 2025.
32-bit support
Support for 32-bit x64 GNU/Linux and x64 Windows was dropped in 2022 and for 32-bit Arm GNU/Linux in 2025.
Pre-deprecation notice for x64 macOS
Apple has discontinued support for the x64 (Intel) architecture. GitHub will no longer support this architecture on macOS after the macOS 15 runner image is retired in November 2027; building and testing x64 macOS binaries will become more difficult, requiring a self-hosted runner, and cannot be guaranteed in the long term.
You should begin migrating your projects to arm64-based (Apple Silicon) binaries to prepare for this possible deprecation.
Analytics
- GitHub xpack-dev-tools/riscv-none-elf-gcc-xpack
- this release
- all xPack releases
- deprecated xPack releases
- all GNU MCU Eclipse releases
- individual file counters (grouped by release)
- this release
- npmjs.com @xpack-dev-tools/riscv-none-elf-gcc
Credit to Shields IO for the badges and to Somsubhra/github-release-stats for the individual file counters.