Build instructions for the Graphite loop transform framework.

First, you have to get a copy of last version of PPL from http://www.cs.unipr.it/ppl/ and install it:

cd ppl
./configure --prefix=/somewhere
make
make install

Then get a copy of the port of CLooG to PPL from ftp://gcc.gnu.org/pub/gcc/infrastructure/ and configure and build it as follows:

cd cloog
./configure --with-ppl=/somewhere --prefix=/somewhere
make
make install

Alternatively, you can get CLooG-PPL from the GIT repo http://repo.or.cz/w/cloog-ppl.git as follows:

git clone git://repo.or.cz/cloog-ppl.git cloog
cd cloog
./autogen.sh

Then, for updating:

git-pull git://repo.or.cz/cloog-ppl.git

Finally get the graphite branch and configure like this:

svn co svn://gcc.gnu.org/svn/gcc/branches/graphite graphite
mkdir graphite/build
cd graphite/build
../configure --with-cloog=/somewhere --with-ppl=/somewhere
make

Using git for graphite development

There exists also a git repository mirroring the svn repository.

More information is available here: GitMirror

Alternate sequence

Here is a sequence of commands that allows building a static GCC but still using the system shared libstdc++, the resulting compiler should work on any machine even without (or with too old) GMP or MPFR system libraries.

export ROOT=/some/where
#gmp-4.2.4
./configure --prefix=$ROOT/gmp-4.2.4 --disable-shared --enable-cxx
#mpfr-2.3.1
./configure --prefix=$ROOT/mpfr-2.3.1 --disable-shared --with-gmp=$ROOT/gmp-4.2.4
#ppl-0.10
./configure --prefix=$ROOT/ppl-0.10 --disable-shared --with-libgmp-prefix=$ROOT/gmp-4.2.4
#cloog-ppl
./configure --prefix=$ROOT/cloog-ppl-0.15 --disable-shared --with-gmp=$ROOT/gmp-4.2.4 --with-ppl=$ROOT/ppl-0.10
#trunk
../trunk/configure --prefix=$ROOT/trunk --enable-languages=c,ada --enable-__cxa_atexit --enable-threads=posix \
 --with-gmp=$ROOT/gmp-4.2.4 --with-mpfr=$ROOT/mpfr-2.3.1 --with-ppl=$ROOT/ppl-0.10 \
 --with-cloog=$ROOT/cloog-ppl-0.15 --with-host-libstdcxx=/usr/lib/libstdc++.so.6