Problems with Math::GMP on Mac OS X
bill at banasclan.com
Thu Nov 2 18:43:58 CET 2006
I'm getting the same error when I attempt to compile (i.e "mex") the
MP toolbox for Matlab:
EDU>> mex gmp_prototype.c -I./ ./libmpfr.a ./libgmp.a
In file included from gmp_prototype.c:2:
mpfr.h:231: warning: use of `long double' type; its size may change
in a future release
mpfr.h:231: warning: (Long double usage is reported only once for
mpfr.h:231: warning: To disable this warning, use -Wno-long-double.)
ld: ./libgmp.a(popcount.o) has local relocation entries in non-
writable section (__TEXT,__text)
mex: link of 'gmp_prototype.mexmac' failed.
??? Error using ==> mex
Unable to complete successfully
As I am a bit of a neophyte when it comes to GCC and compiling in the
Unix environment, I'd appreciate a bit of hand-holding regarding your
solution. I don't know how to build a shareable library and I'm not
quite sure what to do with the patch you list.
Specifically, does this have something to do with the "-mdynamic-no-
pic" option? Is there a configuration file that I should change to
remove the "-mdynamic-no-pic" option?
Thanks in advance for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmp-bugs