clang warning about mini-gmp.c when used in Emacs

Dennis Clarke dclarke at blastwave.org
Tue Apr 19 20:13:40 CEST 2022


On 4/19/22 12:44, Torbjörn Granlund wrote:
> "Marco Bodrato" <bodrato at mail.dm.unipi.it> writes:
> 
>    gmp$ ./configure CC="gcc -Wall -Werror"
>    [...]
>    configure: error: could not find a working compiler, see config.log for
>    details
> 
>    Yes, you are right... a too fussy compiler is not considered a working
>    compiler by the "configure" script :-)
> 
> The language accepted by -Wall -Werror ain't C.  Unfortunately, GMP and
> its configure snippets are written in C.
> 

I feel this should be a link on the GMP website somewhere :

     https://gmplib.org/list-archives/gmp-discuss/2020-August/006557.html


         Modifying the code of a non-trivial project in order to
         placate clang is a wild goose chase; with every release, the
         subset of the language C clang accepts gets smaller.

         Torbjörn Granlund , 24 Aug 2020


That has served me well ever since.



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


More information about the gmp-bugs mailing list