From: Stephan F. <def...@go...> - 2015-02-23 15:50:46
|
Hi, I had some private mail exchange with Harmut and according to him SB-GMP (and MPFR) works on Gentoo (amd64) with GMP 6.0.0a and SBCL 1.2.8. I am having the below problems with SBCL 1.2.4 and 1.2.8 on Kubuntu (amd64) and the same GMP 6.0.0a. Clearly something strange is going on. Anybody else having similar non-working behaviour? Regs, Stephan On 22.02.2015 20:43, Christophe Rhodes wrote: > Stephan Frank <def...@go...> writes: > >> normally it should be just a "(require :sb-gmp)" and you should be good >> to go. However, there seems to be something weird going, since some of >> the FFI-calls result in an error, even though libgmp.so still contains >> the same functions: > > Is it possible that (if the sbcl is 64-bit) the libgmp.so on the system > is a 32-bit one? Or that there are two different libgmps? on the > system, one 32-bit and one 64, and the 64-bit version is older? > > Cheers, > > Christophe > >> CL-USER> (require :sb-gmp) >> ("SB-GMP") >> CL-USER> (in-package :sb-gmp) >> #<PACKAGE "SB-GMP"> >> SB-GMP> (mpz-nextprime 211) >> ; Evaluation aborted on #<SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR NIL >> {10051DF933}>. > > I just tried this locally and it worked for me... > |