http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50139
Bug #: 50139 Summary: in-tree GMP/PPL/CLooG is misconfigured Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: vanboxem.ru...@gmail.com Created attachment 25062 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25062 Patch When building the Graphite prereqs in-tree mkdir $GCC_SRC/ppl mkdir $GCC_SRC/cloog ln -s $SRC/ppl-0.11.2/* $GCC_SRC/ppl ln -s $SRC/cloog)0.16.3/* $GCC_SRC/cloog All subdirectories are detected well, but as some may or may not know, GMP in tree does not play well with PPL/CLooG in tree, and CLooG(-isl) does not work well in-tree. Attached is a patch to add the necessary paths in the various places, using existing infrastructure. Some notes before you ask yourself what I did: - PPL-0.11.2 has a configure option --with-gmp-build, but it does not seem to work as MPFR/MPC's options do (ie only the linker uses it, the include path still needed to be set by CPPFLAGS). My way is a bit more secure for older versions of PPL as well. - CLooG has an half-documented feature (not in the online docs, but you get it from "configure --help"): --with-gmp-builddir, which is equally broken, as the C compiler test tries to link with gmp. - PPL also needs both the gmp source as gmp build path, because it checks for gmpxx.h, which is not in the build directory, but gmpxx.h includes gmp.h, which is only present in the build directory. The 4.5 and 4.6 branches also work with the CLooG/PPL versions I used here (if built out-of-tree) so a fix for those branches would be very helpful as well.