Please switch to another GCC distribution, e.g. from Embecosm.
Download the latest modm-riscv-gcc.tar.bz2
from Releases
and unpack it to /opt
:
tar xf modm-riscv-gcc.tar.bz2 --directory /opt
Add the bin/
directorie(s?) to your $PATH
,
e.g. by adding the following line to your ~/.bashrc
file:
export PATH="/opt/modm-riscv-gcc/bin:$PATH"
The build script is written for Ubuntu 20.04.
Just run the build.sh script:
./build.sh
The toolchain will be in /opt/modm-riscv-gcc
.