[squeak-dev] Cannot load FFI on Squeak 6 alpha 20608/pi

Eliot Miranda eliot.miranda at gmail.com
Tue Sep 28 14:26:59 UTC 2021


> On Sep 27, 2021, at 11:36 AM, tim Rowledge <tim at rowledge.org> wrote:
> 
> Trying to load FFI to check my old GPIO hardware driving code. 
> 
> It needs FFI. FFI has a ConfigurationOfxxxx. Load that.
> 
> Run `ConfigurationOfFFI load`
> Nothing - because it is trying to do the #ensureMetacello thing and wants to fetch Gofer from http://seaside.gemstone.com/ss/metacello which seems to be dead. Bit of a problem.
> 
> If I dig a bit I find that it seems we want to load ConfigurationOfFFI>>#version20:
> Loading the  'FFI-Pools-mt.31' ,  'FFI-Kernel-mt.180' ,  'FFI-Libraries-mt.2' & 'FFI-Callbacks-mt.25'; seems to work, then  'FFI-Tools-mt.37' is ok. 
> 
> Try to run the FFI tests and BOOM! So evidently sometihng isn't terribly happy.
> 
> Going through all the install again to at least try my actual package results in a syntax error 
> id: i i2cClose: handle
>    "Disconnect from the i2c device, freeing the handle etc.
>    returns 0 if ok, otherwise GpioBadHandle"
>    #<cdecl: long "Nothing more expected ->"'i2c_close' (long ulong) module: 'pigpiod_if2'>
>    ^self externalCallFailed
> 
> Now so far as I can see it appears that the initial # in front of the <cdecl is no longer accepted? Is that the case?

I’m surprised it ever was.  Is this some pre pragma syntax I’m ignorant of?

Indeed Tim, follow the syntax in the FFITestLibrary. Lots of examples there.

> 
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> A hacker does for love what others would not do for money.
> 
> 
> 


More information about the Squeak-dev mailing list