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 /optAdd 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.shThe toolchain will be in /opt/modm-riscv-gcc.