Current releases contain config.guess and config.sub that dates from 2001, which does not recognize many new architectures like RISC-V.
Raw error log attached below:
checking build system type... config/config.guess: unable to guess system type
This script, last modified 2001-04-20, 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
ftp://ftp.gnu.org/pub/gnu/config/
If the version you run (config/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 = 2001-04-20
uname -m = riscv64
uname -r = 6.5.7-arch1-1
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Tue, 10 Oct 2023 21:10:21 +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.5.7-arch1-1
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP PREEMPT_DYNAMIC Tue, 10 Oct 2023 21:10:21 +0000
configure: error: cannot guess build type; you must specify one