[Clfs-support] CLooG-parma looking for GMP and PPL on host system

P. J. McDermott pjm at nac.net
Wed Jan 4 00:52:43 PST 2012


Hi all,

I am mostly following CLFS Sysroot version SVN-0.0.1-20090726-x86,
except with more recent versions of software packages.  For the details
of my build (package versions, etc.), see my procedure:
http://odin1.pehjota.net/git/free-embedded-os/tree/temporary-bootstrap-builder-setup.txt

I'm currently stuck at section 5.8 in the book -- the first build of
CLooG-PPL (now called CLooG-parma with version 0.16):
http://cross-lfs.org/view/clfs-sysroot/x86/cross-tools/cloog-ppl.html

CLooG-parma's configure script is trying to find GMP on the host system.
For example, when running a configure command line like the one in
CLFS, I see the following:
  $ LDFLAGS="-Wl,-rpath,${BBL}/cross-tools/lib" ./configure \
  > --prefix=${BBL}/cross-tools --enable-shared --with-bits=gmp \
  > --with-gmp=${BBL}/cross-tools --with-ppl=${BBL}/cross-tools
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  [...]
  checking for ANSI C header files... (cached) yes
  checking which gmp to use... system
  checking gmp.h usability... no
  checking gmp.h presence... no
  checking for gmp.h... no
  configure: error: Can't find gmp headers.

I tried setting '-I' and '-B' in CFLAGS.  I got warnings from configure,
but it successfully wrote a Makefile.  Then, building gave me an error
about missing PPL and GMP libraries:
  $ CFLAGS="-I${BBL}/cross-tools/include -B${BBL}/cross-tools/lib" \
  > LDFLAGS="-Wl,-rpath,${BBL}/cross-tools/lib" ./configure \
  > --prefix=${BBL}/cross-tools --enable-shared --with-bits=gmp \
  > --with-gmp=${BBL}/cross-tools --with-ppl=${BBL}/cross-tools
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  [...]
  checking for ANSI C header files... (cached) yes
  checking which gmp to use... system
  checking gmp.h usability... yes
  checking gmp.h presence... no
  configure: WARNING: gmp.h: accepted by the compiler, rejected by the p
  reprocessor!
  configure: WARNING: gmp.h: proceeding with the compiler's result
  checking for gmp.h... yes
  checking for __gmpz_init in -lgmp... yes
  checking whether mp_get_memory_functions is declared... yes
  checking which ppl to use... system
  checking ppl_c.h usability... yes
  checking ppl_c.h presence... no
  configure: WARNING: ppl_c.h: accepted by the compiler, rejected by the
   preprocessor!
  configure: WARNING: ppl_c.h: proceeding with the compiler's result
  checking for ppl_c.h... yes
  checking which cloog to use... bundled
  [...]
  $ make
  Making all in .
  make[1]: Entering directory `/home/pj/bbl/sys/fsmnt/src/cloog-parma-0.
  16.1'
  [...]
  libtool: link: gcc -shared  .libs/libcloog_ppl_la-domain.o .libs/libcl
  oog_ppl_la-backend.o .libs/libcloog_ppl_la-block.o .libs/libcloog_ppl_
  la-clast.o .libs/libcloog_ppl_la-matrix.o .libs/libcloog_ppl_la-state.
  o .libs/libcloog_ppl_la-input.o .libs/libcloog_ppl_la-int.o .libs/libc
  loog_ppl_la-loop.o .libs/libcloog_ppl_la-names.o .libs/libcloog_ppl_la
  -options.o .libs/libcloog_ppl_la-pprint.o .libs/libcloog_ppl_la-progra
  m.o .libs/libcloog_ppl_la-statement.o .libs/libcloog_ppl_la-stride.o .
  libs/libcloog_ppl_la-union_domain.o .libs/libcloog_ppl_la-constraintse
  t.o .libs/libcloog_ppl_la-version.o   -L/lib -lppl_c -lppl -lgmpxx -lg
  mp  -Wl,-rpath -Wl,/home/pj/bbl/sys/fsmnt/cross-tools/lib   -Wl,-sonam
  e -Wl,libcloog-ppl.so.1 -o .libs/libcloog-ppl.so.1.0.1
  /usr/bin/ld: cannot find -lppl_c
  /usr/bin/ld: cannot find -lppl
  /usr/bin/ld: cannot find -lgmpxx
  /usr/bin/ld: cannot find -lgmp
  collect2: ld returned 1 exit status
  make[1]: *** [libcloog-ppl.la] Error 1
  make[1]: Leaving directory `/home/pj/bbl/sys/fsmnt/src/cloog-parma-0.1
  6.1'
  make: *** [all-recursive] Error 1
And using CFLAGS and LDFLAGS from `configure` with `make` didn't help.

How can I make CLooG-parma use PPL and GMP from ${BBL}/cross-tools
instead of searching the host system?  Or should I just install GMP,
MPFR, and PPL (and probably CLooG-parma) on my host system?

The host system is Debian GNU/Linux "wheezy".  Let me know any other
information that might help.

Thanks,
-- 
P. J. McDermott     http://www.pehjota.net/            (_/@\_)    ,--.
mailto:pjm at nac.net  http://identi.ca/pehjota      o    < o o >   / oo \
                                                    o   \ `-/    | <> |.
                                                o o o    "~v    /_\--/_/



More information about the Clfs-support mailing list