When I configure GCC, the configure script succeeds, but the compilation fails because of a missing mpc.h. Of course, providing the mpc library fixes the problem, but configure should report an error when mpc is not available (as it does when gmp or mpfr is not available).
I hit this bug compiling the GCC 4.5.0 release with gmp 5.0.1 and mpfr 2.4.2 in the GCC source directory (so that GCC rolls them into the build). I did not specify any options to configure or make. The build error occurs first in the file attribs.c: In file included from ../../gcc-release/gcc/rtl.h:28, from ../../gcc-release/gcc/attribs.c:30: ../../gcc-release/gcc/real.h:28:17: error: mpc.h: No such file or directory In file included from ../../gcc-release/gcc/rtl.h:28, from ../../gcc-release/gcc/attribs.c:30: ../../gcc-release/gcc/real.h:29: error: expected declaration specifiers or ... before mpc_ptr ../../gcc-release/gcc/real.h:29: error: expected declaration specifiers or ... before mpc_srcptr ../../gcc-release/gcc/real.h:29: error: expected declaration specifiers or ... before mpc_srcptr ../../gcc-release/gcc/real.h:29: error: expected declaration specifiers or ... before mpc_rnd_t ../../gcc-release/gcc/real.h:29: warning: function declaration isnt a prototype ../../gcc-release/gcc/attribs.c: In function decl_attributes: ../../gcc-release/gcc/attribs.c:296: warning: unknown conversion type character E in format ../../gcc-release/gcc/attribs.c:296: warning: too many arguments for format ../../gcc-release/gcc/attribs.c:304: warning: unknown conversion type character E in format ../../gcc-release/gcc/attribs.c:304: warning: too many arguments for format ../../gcc-release/gcc/attribs.c:322: warning: unknown conversion type character E in format ../../gcc-release/gcc/attribs.c:322: warning: too many arguments for format ../../gcc-release/gcc/attribs.c:374: warning: unknown conversion type character E in format ../../gcc-release/gcc/attribs.c:374: warning: too many arguments for format make[3]: *** [attribs.o] Error 1 -- Summary: Configure script does not report missing mpc.h dependency. Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jseyster at cs dot sunysb dot edu GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44881