Please consider update config.guess & config.sub, the newest version of them could successfully build on RISC-V.
This script, last modified 2013-06-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2013-06-10
uname -m = riscv64
uname -r = 6.1.80-1-sophgo-multi-11457-g83ab3eda46e6
uname -s = Linux
uname -v = #1 SMP Sat, 13 Apr 2024 17:29:11 +0000
/usr/bin/uname -p = unknown
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = riscv64
UNAME_RELEASE = 6.1.80-1-sophgo-multi-11457-g83ab3eda46e6
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP Sat, 13 Apr 2024 17:29:11 +0000
configure: error: cannot guess build type; you must specify one
Please consider update config.guess & config.sub, the newest version of them could successfully build on RISC-V.