I'm trying to build llvm-gcc from source. When configuring a package with configure , an error appears in the log.

configure: 2387: fatal error: gmp.h: No such file or directory
compilation terminated

How can this be fixed?

    1 answer 1

    The error indicates that the compiler cannot find the GMP (GNU Multi-Precision) library. If it is in the system, you need to tell the compiler where it is. If not, then install.

     sudo apt-get install libgmp3-dev libmpfr-dev 
    • Installing the library fixes the error. - stanislav