[Vm-dev] Having FFI trouble with 4.2 on Linux

Matthew Fulmer tapplek at gmail.com
Tue May 24 21:35:20 UTC 2011


On Tue, May 24, 2011 at 5:22 PM, Ken Causey <ken at kencausey.com> wrote:
> Matthew on #squeak was having trouble with FFI on Ubuntu so I thought I
> would give it a try on my Debian Testing system.  I should note that I
> am on X86_64 while Matthew is on i386/i686.  I think Matthew will follow
> up with details about his experience.
>
> I added 'source.squeak.org/FFI' to Monticello and installed
>
> http://source.squeak.org/FFI/FFI-Pools-eem.3.mcz
> http://source.squeak.org/FFI/FFI-Kernel-mtf.23.mcz
> http://source.squeak.org/FFI/FFI-Examples-ar.1.mcz
> http://source.squeak.org/FFI/FFI-Tests-jcg.4.mcz
> http://source.squeak.org/FFI/FFI-Unix-mtf.4.mcz
>
> in that order.
>
> In this configuration if I run the tests I get 1 success, 1 failure, and
> 21 errors.  In the process I also tried earlier -ar versions of the
> packages with much the same result.

My experience was much the same as ken's, but I got squeak errors
"unable to find function address" where he got segfaults. We also
tried the example distributed with ffi: X11Display coloredRectangles ,
with the same result (segfalt or externalCallFailed, specifically). I
think the reason we got different error messages is because he is
running a 64-bit system, and I a 32-bit system. Also, all tests worked
on cog. The X11 example gave a different error on cog: "External
module not found"

Why don't they work on the interpreter VM? I know they worked for me
before I upgraded ubuntu (from 10.04 to 11.04)


More information about the Vm-dev mailing list