You&#39;re probably missing the plugin IA32ABI<br><br><div class="gmail_quote">On Wed, May 5, 2010 at 12:25 PM, Dmitry Matveev <span dir="ltr">&lt;<a href="mailto:dmm1989@gmail.com">dmm1989@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello Igor!<br>
<br>
Thank you for the patch, it has helped and now it looks like the Alien<br>
is loaded... But.<br>
<br>
When I&#39;m sending an #asAlien message to a simple string, e.g.<br>
<br>
&#39;xmessage something&#39; asAlien<br>
<br>
The executions fails with the primitiveFailed exception here:<br>
Alien &gt;&gt; sizeFieldPut: size &quot;&lt;Integer&gt; ^&lt;Integer&gt;&quot;<br>
        &lt;primitive: &#39;primSizeFieldPut&#39; error: errorCode module: &#39;IA32ABI&#39;&gt;<br>
        ^self primitiveFailed<br>
<br>
I assume that the Alien-Core package was not loaded properly. What am<br>
I doing wrong?<br>
<br>
2010/5/5, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;:<br>
&gt; On 5 May 2010 14:42, Dmitry Matveev &lt;<a href="mailto:dmm1989@gmail.com">dmm1989@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi everybody!<br>
&gt;&gt;<br>
&gt;&gt; Could you please help me?<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m experiencing the following trouble: when I&#39;m loading the Alien FFI<br>
&gt;&gt; (from<br>
&gt;&gt; the squeaksource or from the .mcz files manually) in Squeak 4.1, I&#39;m<br>
&gt;&gt; getting<br>
&gt;&gt; the DNU expection Array&gt;&gt;createMethod:header:<br>
&gt;&gt;<br>
&gt;<br>
&gt; This happens, when you using an obsolete way of encoding<br>
&gt; a method&#39;s trailer - bytes instead of instance of CompiledMethodTrailer.<br>
&gt;<br>
&gt; Here the fix:<br>
&gt;<br>
&gt; MethodNode&gt;&gt;generate<br>
&gt;       &quot;The receiver is the root of a parse tree. Answer a CompiledMethod. The<br>
&gt;       argument, trailer, is the references to the source code that is stored with<br>
&gt;       every CompiledMethod.&quot;<br>
&gt;<br>
&gt; +++   ^self generate: CompiledMethodTrailer empty<br>
&gt; ---   ^self generate: #(0 0 0 0)<br>
&gt;<br>
&gt;<br>
&gt; Btw, this method is included by default in 4.1 images, and in pharo images,<br>
&gt; which integrated new compiled methods trailers.<br>
&gt; So, Alien don&#39;t needs to override this method anymore.<br>
&gt;<br>
&gt;&gt; The Alien-Prereq module was already loaded.<br>
&gt;&gt;<br>
&gt;&gt; May be I&#39;ve missed some dependencies? Or Alien does not work with the 4.1<br>
&gt;&gt; and I should install an earlier version?<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Dmitry<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Best regards,<br>
&gt; Igor Stasenko AKA sig.<br>
&gt;<br>
&gt;<br>
<br>
</blockquote></div><br>