InstallingGCC - GCC Wiki - GNU Compiler Collection
gcc.gnu.org › wiki › InstallingGCCYou need to run configure from outside the source directory, in a separate directory created for the build (this is a FAQ) if GCC links dynamically to the GMP, MPFR or MPC support libraries then the relevant shared libraries must be in the dynamic linker's path, both when building gcc and when using the installed compiler (this is also a FAQ)