This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/50139] New: in-tree GMP/PPL/CLooG is misconfigured
- From: "vanboxem.ruben at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 20 Aug 2011 15:39:27 +0000
- Subject: [Bug bootstrap/50139] New: in-tree GMP/PPL/CLooG is misconfigured
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: vanboxem.ruben@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.