Re: [PPL-devel] patch for merging graphite branch (before tuplification)

Jagasia, Harsha wrote:
Hi Roberto,
I am trying to build ppl under cygwin.
I downloaded gmp (pre-requisite for ppl) from http://gmplib.org/#DOWNLOAD http://gmplib.org/#DOWNLOAD and was able to build it with --enable-cxx --prefix=/usr. This only creates static libraries libgmp.a, libgmp.la, libgmpxx.a, libgmpxx.la under /usr/lib.
Then I downloaded ppl-0.9 from http://www.cs.unipr.it/ppl/Download/ http://www.cs.unipr.it/ppl/Download/ and tried ./configure --prefix=/usr. Output shows that it finds the gmp libraries.
checking how to link with libgmp... /usr/lib/libgmp.a checking how to link with libgmpxx... /usr/lib/libgmpxx.a /usr/lib/libgmp.a checking for the GMP library version 4.1.3 or above... yes checking for mp_limb_t... yes checking size of mp_limb_t... 4 checking whether GMP has been compiled with support for exceptions... yes checking for __mpz_struct._mp_alloc... yes checking for __mpz_struct._mp_size... yes checking for __mpz_struct._mp_d... yes
I have gcc 3.4.4.3 that came with cygwin. I am using it to build both gmp and ppl.
When I try to "make" ppl, however I start getting errors as below.
/usr/include/gmpxx.h:3140: undefined reference to `___gmpz_sub' /usr/include/gmpxx.h:1657: undefined reference to `___gmpz_clear' /usr/include/gmpxx.h:1484: undefined reference to `___gmpz_init_set' /usr/include/gmpxx.h:445: undefined reference to `___gmpz_add_ui' /usr/include/gmpxx.h:445: undefined reference to `___gmpz_clear' and other such ___gmp functions are undefined.
Any tips on what I need to do to solve this?
Thanks, Harsha
Dear Harsha,
the minimal version of GCC to build a working version of the PPL is 4.0.3. Moreover, you should not use PPL 0.9 for any new development: use a snapshot of PPL 0.10 instead:
ftp://ftp.cs.unipr.it/pub/ppl/snapshots/
Please direct any PPL-related message to ppl-devel@cs.unipr.it. All the best,
Roberto
participants (1)
-
Roberto Bagnara