Bad declaration of function g() in configure script (due to C23 strictness)

Dennis Clarke dclarke at blastwave.org
Thu May 7 22:06:38 CEST 2026


On 5/5/26 9:57 PM, Gord Palameta wrote:
> GMP 6.3.0
> 
> gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
> 
> Linux DESKTOP-XXXXXXX 6.6.87.2-microsoft-standard-WSL2 #1 SMP
> PREEMPT_DYNAMIC Thu Jun  5 18:30:46 UTC 2025 x86_64 GNU/Linux
> 
> Ubuntu 26.04 (under Windows WSL)
> 
> 
> The configure script was run with no command line options, and it failed
> the "long long reliability test 1":
> configure: error: could not find a working compiler, see config.log for
> details

That thing has been a problem for a while now. Years? No one seems
motivated to issue a patch nor a new GMP release with the configure
script fixed for a modern LLVM/Clang or GCC world.

You pretty much need to hack around it and push forwards.

I suspect that GMP will fail to build all over the place soon as most
everyone has the recent compilers as default. Good luck.

-- 
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken


More information about the gmp-bugs mailing list