could not find a working compiler (gmp 6.2.1)

Torbjörn Granlund tg at
Mon Aug 1 22:19:56 CEST 2022

S <newcontact at> writes:

  I just updated the OS (linux mint 21) on four machines, and then
  installed gmp 6.2.1 on each machine using the same tar file.  The 
  installation was successful on three of the four machines, but failed
  on the last one because ./configure "could not find a working
  compiler" even though gcc is present.  I also tried  ./configure 
  CC=/usr/local/bin/gcc to no avail.  I have sent along the config.log
  file.  Your help is most appreciative.  THANKS!

Look in the log!  Your compiler cannot be used to compile this example;

int main() {}

Not a GMP bug.

Please encrypt, key id 0xC8601622

More information about the gmp-discuss mailing list