GMP fail to build on loongarch64-linux-gnu (configfsf.{guess,sub} outdated)

Xi Ruoyao xry111 at
Wed Mar 22 16:33:06 CET 2023

TL;DR please update configfsf.{guess,sub} before next release :).

GMP version:

6.2.1 and 6.2.99-20221117121717

Test program:

None (building issue)


GMP fails to build on loongarch64-linux-gnu.

gcc -v:

Using built-in specs.
Target: loongarch64-unknown-linux-gnu
Configured with: ../gcc-backport/configure --prefix=/usr LD=ld --enable-languages=c,c++ --disable-multilib --with-system-zlib --with-build-config=bootstrap-lto --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (GCC) 

uname -a:

Linux xry111-a2101 6.3.0-rc3+ #72 SMP PREEMPT Tue Mar 21 15:46:06 CST 2023 loongarch64 GNU/Linux


./configfsf.guess: unable to guess system type

This script (version 2020-10-22), has failed to recognize the
operating system you are using. If your script is old, overwrite *all*
copies of config.guess and config.sub with the latest versions from:;a=blob_plain;f=config.guess

Xi Ruoyao <xry111 at>
School of Aerospace Science and Technology, Xidian University

More information about the gmp-bugs mailing list