Vincent Lefevre on Mon, 18 May 2009 00:52:05 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

gmp header file (was: Incorrect result with GMP 4.2.4 under Mac OS X (PowerPC))

On 2009-05-17 15:03:22 +0200, Bill Allombert wrote:
> I have commite to PARI SVN (r11718) a slightly better version of
> this patch with improved diagnostics.

I wanted to try, but Configure takes a wrong header file:

prunille:~/software/pari> ./Configure
Configuring pari-2.4.3 (DEVELOPMENT VERSION) [ development svn-11718 ]
Checking for optional libraries and headers...
...Found libgmp in /opt/local/var/macports/software/gmp/4.2.4_2+universal/opt/local/lib
...Found gmp header in /opt/local/include


prunille:~/software/pari> echo '#include <gmp.h>' | gcc -H -E - > /dev/null
. /opt/local/var/macports/software/gmp/4.2.4_2+universal/opt/local/include/gmp.h
.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h

As you can see, gcc takes a different one.

prunille:~/software/pari> env | grep gmp/4.2.4_2

Vincent Lefèvre <> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)