Version v7.2.0-4-20180606 is a maintenance release of GNU MCU Eclipse RISC-V Embedded GCC; it builds the libraries with -mcmodel=medany.

Binary files »


All GNU MCU Eclipse RISC-V Embedded GCC releases are based on the official RISC-V source files maintained by SiFive.

By the date of this release, the riscv-gcc-7.3.0 branch is not yet stable, thus the current version is still based on GCC 7.2, using the following commits:


All architectures, ABIs and libraries supported by the riscv64-unknown-elf toolchain are also supported, with the following improvements:

  • a newer newlib was included, which supports the ‘underscore’ syscall functions
  • the mandatory reference to libgloss in the linker configuration was removed
  • the march=rv32imaf/mabi=ilp32f library was added to the list of multi-libs
  • support for newlib-nano was added
  • the standard documentation, in PDF and HTML, was added


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

The GNU/Linux binaries were built on two CentOS 6 Docker images (32/64-bit), and run on any distribution based on CentOS 6 or later.

The Windows binaries were built with mingw-w64, and run on any reasonably recent i686 and x86_64 Windows machines.

Instructions on how to install the binaries are available in the How to install the RISC-V toolchain? page.

The toolchain is also available as an xPack and can be conveniently installed with xpm:

xpm install --global @gnu-mcu-eclipse/riscv-none-gcc

This installs the latest available version.

For better control and repeatability, the build scripts use Docker containers; all files required during builds are available as a separate gnu-mcu-eclipse/riscv-none-gcc-build project.

Known problems

  • the libnosys library does not export the correct underscore symbols.


The SHA-256 hashes for the files are:

82282c9e855b4c24c3c4c8df688f31d2745c50cc20471811c14409c231248d31 ?

8f0aab1919fdc950876a9bfb4254e1887864cf0c36e31bd7b12817fe9e52b934 ?

a8b87d515a0c90e8639cca1a76a49c8a5fffa0d6855462d01a8e0508c267d9ef ?

fafcdf6536154bb92b01c2d96ad35a53bcf7d33befd6f6c9ee008775df36e149 ?

546498a61586226b883b1df3d4323174ced5cbbc966522c4e6da95f6e09f3842 ?