[squeak-dev] SyntaxError while loading FFI

Jakob Reschke forums.jakob at resfarm.de
Thu Sep 10 06:04:51 UTC 2020


Hi Christoph,

I had a similar issue and if I remember correctly got it resolved by
loading the Tools subpackage of FFI. I think Marcel has recently split
it.

So if that is true, the load order in the baseline of FFI should be updated.

Kind regards,
Jakob

Am Mi., 9. Sept. 2020 um 23:50 Uhr schrieb Thiede, Christoph
<Christoph.Thiede at student.hpi.uni-potsdam.de>:
>
> Hi all,
>
>
> I fear this could be a frequently discussed topic, but I did not know where to start else.
>
>
> In the web, you can find the following instruction in order to load FFI at several places, amongst them the Swiki:
>
>
> Metacello new configuration: 'FFI'; load.
>
>
> If I do this in a fresh trunk image (#19838) without any extra installs, I get a syntax error:
>
>
> ffiPrintString: aString
>
> "FFITestLibrary ffiPrintString: 'Hello'"
>
> <cdecl: "Literal constant expected ->"char* 'ffiPrintString' (char *) module:'SqueakFFIPrims'>
>
> ^self externalCallFailed
>
>
> This is at the very least confusing, I think :-) Are there any undocumented dependencies or something like this?
>
> If I use the preference wizard instead, the installation succeeds. (It's not very convenient that it asks you for your initials during the installation, but this is only a small critique. :-))
>
> I just wanted to inform you about that.
>
>
> Best,
>
> Christoph
>
>


More information about the Squeak-dev mailing list