Install gcc-riscv64-linux-gnu by entering the following commands in the terminal:
sudo apt update sudo apt install gcc-riscv64-linux-gnu
Description:
GNU C compiler for the riscv64 architecture
This is the GNU C compiler, a fairly portable optimizing compiler for C. . This is a dependency package providing the default GNU C cross-compiler for the riscv64 architecture.
Version: 4:7.3.0-3ubuntu1
Section: universe/devel