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

FYI:

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
PATH=/opt/local/var/macports/software/gmp/4.2.4_2+universal/opt/local/bin:/Users/vinc17/bin:/usr/local/bin:/opt/local/bin:/usr/bin:/bin:/opt/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:.
C_INCLUDE_PATH=/opt/local/var/macports/software/gmp/4.2.4_2+universal/opt/local/include:/Users/vinc17/include:/opt/local/include
LIBRARY_PATH=/opt/local/var/macports/software/gmp/4.2.4_2+universal/opt/local/lib:/Users/vinc17/lib:/opt/local/lib
LD_LIBRARY_PATH=/opt/local/var/macports/software/gmp/4.2.4_2+universal/opt/local/lib:

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)