Q. I cannot compile gmp on the latest version of Linux.

A. Add the compiler option  -static.
