<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Marcel,</p>
<p><br>
</p>
<p>what is about "Installer new merge: #ffi", should this work too? :-)</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel<br>
<b>Gesendet:</b> Dienstag, 28. September 2021 17:47:50<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] Cannot load FFI on Squeak 6 alpha 20608/pi</font>
<div> </div>
</div>
<div>
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi Tim --
<div><br>
</div>
<div>Please use this to install FFI:</div>
<div><br>
</div>
<div>
<div><span style="font-size: 13.3333px">Metacello new</span></div>
<div><span style="font-size: 13.3333px"><span style="white-space:pre"></span>configuration: 'FFI';</span></div>
<div><span style="font-size: 13.3333px"><span style="white-space:pre"></span>load.</span></div>
</div>
<div><span style="font-size: 13.3333px"><br>
</span></div>
<div><span style="font-size: 13.3333px">Unfortunately, ConfigurationOfFFI has outdated Metacello-load-code. "seaside.gemstone.com/ss/metacello" has not been working for ages. Yet, "http://seaside.gemtalksystems.com/ss/metacello" is still operational.</span></div>
<div><span style="font-size: 13.3333px"><br>
</span></div>
<div><span style="font-size: 13.3333px">Best,</span></div>
<div><span style="font-size: 13.3333px">Marcel</span></div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 28.09.2021 17:42:26 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi all --
<div><br>
</div>
<div>> [...] <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">wants to fetch Gofer from </span><a href="http://seaside.gemstone.com/ss/metacello" title="Klicken, um in einem neuen Fenster oder Tab zu öffnen
http://seaside.gemstone.com/ss/metacello" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px;cursor: pointer;color: blue">http://seaside.gemstone.com/ss/metacello</a><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"> which
 seems to be dead. Bit of a problem. [...]</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Woah ... these days are quite challenging ... here is a Trunk image that smalltalkCI uses, which has Metacello pre-installed and can be updated without having to rely on the bootstrap
 code on that (dead) Squeaksource instance:</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-size: 13.3333px">https://github.com/hpi-swa/smalltalkCI/releases/download/v2.9.6/Squeak64-trunk-20447.tar.gz</span><br>
</div>
<div><span style="font-size: 13.3333px"><br>
</span></div>
<div><span style="font-size: 13.3333px">> </span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">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?</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">I don't recall that it was ever supported. What should it mean? I checked the senders of #pragmaSequence in Squeak 5.2 and couldn't find any support for "#<cdecl:"</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Best,</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Marcel</span></div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 28.09.2021 16:27:13 schrieb Eliot Miranda <eliot.miranda@gmail.com>:</p>
<div style="font-family:Arial,Helvetica,sans-serif"><br>
> On Sep 27, 2021, at 11:36 AM, tim Rowledge <tim@rowledge.org>wrote:<br>
> <br>
> Trying to load FFI to check my old GPIO hardware driving code. <br>
> <br>
> It needs FFI. FFI has a ConfigurationOfxxxx. Load that.<br>
> <br>
> Run `ConfigurationOfFFI load`<br>
> 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.<br>
> <br>
> If I dig a bit I find that it seems we want to load ConfigurationOfFFI>>#version20:<br>
> 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.
<br>
> <br>
> Try to run the FFI tests and BOOM! So evidently sometihng isn't terribly happy.<br>
> <br>
> Going through all the install again to at least try my actual package results in a syntax error
<br>
> id: i i2cClose: handle<br>
> "Disconnect from the i2c device, freeing the handle etc.<br>
> returns 0 if ok, otherwise GpioBadHandle"<br>
> #<cdecl: long?nothingmoreexpected-="">"'i2c_close' (long ulong) module: 'pigpiod_if2'><br>
> ^self externalCallFailed<br>
> <br>
> Now so far as I can see it appears that the initial # in front of the <cdecl isnolongeraccepted?thatthe="">
</cdecl><br>
<br>
I’m surprised it ever was. Is this some pre pragma syntax I’m ignorant of?<br>
<br>
Indeed Tim, follow the syntax in the FFITestLibrary. Lots of examples there.<br>
<br>
> <br>
> tim<br>
> --<br>
> tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim<br>
> A hacker does for love what others would not do for money.<br>
> <br>
> <br>
> <br>
<br>
</cdecl:></tim@rowledge.org></div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>