[squeak-dev] SyntaxError while loading FFI

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Sep 14 16:35:37 UTC 2020


Hi Jakob,


do you have a description of the correct loading order? In my main image, I tried to load FFI via the Preference Wizard, and after some loading conflicts which I explicitly needed to #allow through the debugger, I got the same syntax error ...


Best,

Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Jakob Reschke <forums.jakob at resfarm.de>
Gesendet: Donnerstag, 10. September 2020 08:04:51
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] SyntaxError while loading FFI

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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200914/0474d6c2/attachment.html>


More information about the Squeak-dev mailing list