I followed the building instructions at https://github.com/riscv/riscv-gnu-toolchain to set up the GNU risc-v toolchain, i ./configure\'d using the same prefi
./configure
prefi