Host dev platform
Following are collected information for setting up a typical Arch=amd64 Gentoo Linux to do RISC-V development.
Install the crossdev utils
emerge --ask sys-devel/crossdev
Generate cross toolchains, including gcc, glibc, binutils, gdb
crossdev --target riscv64-unknown-linux-gnu
Install spike, please find this package in riscv overlay
emerge --ask app-emulation/spike
These articles are written for describing how to running an ARCH=riscv Gentoo Linux on real RISC-V hardware or virtual machine(VM).