Skip to content

Please update config.guess and config.sub to support RISC-V

Hi, I try to compile x264 on riscv64 hardware. When executing ./configure, an error occurred.

config.guess: unable to guess system type

This script, last modified 2012-09-25, 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 (/home/fanta/source/x264/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 = 2012-09-25

uname -m = riscv64
uname -r = 5.19.2-arch1-1
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri, 19 Aug 2022 19:44:19 +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 = 5.19.2-arch1-1
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT Fri, 19 Aug 2022 19:44:19 +0000

I've tested that if replacing config.guess and config.sub to a more recent version, x264 can be built successfully. Could you please update these files?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information