Hi,
I'm having some problems with cffi on clisp/windows. Some of the examples don't seem to work and I can't get the tests to run.
If I load the cffi-examples system, (getenv "PATH") works fine but (sqrtf 4.0) throws a simple-undefined-function condition and (run-examples) crashes the running lisp.
How long should the tests take to run?
I did...
make test-clisp
...and got the first few lines of output
C:\Program Files\clisp-2.42\systems\cffi>make test-clisp ;; Loading file C:\home.clisprc.lisp ... ;; Loading file C:\Program Files\clisp-2.42\asdf.lisp ... ;; Loaded file C:\Program Files\clisp-2.42\asdf.lisp ;; Loaded file C:\home.clisprc.lisp ;; Loading file tests\run-tests.lisp ... ;;; -------- Running tests in CLISP --------
but then nothing for a couple of minutes
Looking at cffi-tests.asd, I can't see how it would get past "run-cffi-tests".
Any pointers?
Cheers, Andy
On 30/11/2007, Andy Chambers achambers.home@googlemail.com wrote:
If I load the cffi-examples system, (getenv "PATH") works fine but (sqrtf 4.0) throws a simple-undefined-function condition and (run-examples) crashes the running lisp.
To access sqrtf() you might need to load msvcrt.dll, I think: (cffi:load-foreign-library "msvcrt.dll")
The examples don't seem to work very well on windows, mostly because they assume some posix functions. That being said, it shouldn't crash your CLISP instance! (It doesn't crash mine.)
How long should the tests take to run?
A few seconds at most.
make test-clisp
...and got the first few lines of output
[...]
;;; -------- Running tests in CLISP --------
but then nothing for a couple of minutes
Can you try to open CLISP then run (asdf:oos 'asdf:load-op :cffi-tests) followed by (rt:do-tests) and see what happens? Oh, and make sure you run 'make' beforehand under cffi/tests/ in order to compile libtest.dll.
FWIW, the tests run ok for me using CLISP 2.43 on Windows XP SP2 (32-bit). There are only a few (expected) minor test failures.