You'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"><<a href="mailto:dmm1989@gmail.com">dmm1989@gmail.com</a>></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'm sending an #asAlien message to a simple string, e.g.<br>
<br>
'xmessage something' asAlien<br>
<br>
The executions fails with the primitiveFailed exception here:<br>
Alien >> sizeFieldPut: size "<Integer> ^<Integer>"<br>
<primitive: 'primSizeFieldPut' error: errorCode module: 'IA32ABI'><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 <<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>>:<br>
> On 5 May 2010 14:42, Dmitry Matveev <<a href="mailto:dmm1989@gmail.com">dmm1989@gmail.com</a>> wrote:<br>
>> Hi everybody!<br>
>><br>
>> Could you please help me?<br>
>><br>
>> I'm experiencing the following trouble: when I'm loading the Alien FFI<br>
>> (from<br>
>> the squeaksource or from the .mcz files manually) in Squeak 4.1, I'm<br>
>> getting<br>
>> the DNU expection Array>>createMethod:header:<br>
>><br>
><br>
> This happens, when you using an obsolete way of encoding<br>
> a method's trailer - bytes instead of instance of CompiledMethodTrailer.<br>
><br>
> Here the fix:<br>
><br>
> MethodNode>>generate<br>
> "The receiver is the root of a parse tree. Answer a CompiledMethod. The<br>
> argument, trailer, is the references to the source code that is stored with<br>
> every CompiledMethod."<br>
><br>
> +++ ^self generate: CompiledMethodTrailer empty<br>
> --- ^self generate: #(0 0 0 0)<br>
><br>
><br>
> Btw, this method is included by default in 4.1 images, and in pharo images,<br>
> which integrated new compiled methods trailers.<br>
> So, Alien don't needs to override this method anymore.<br>
><br>
>> The Alien-Prereq module was already loaded.<br>
>><br>
>> May be I've missed some dependencies? Or Alien does not work with the 4.1<br>
>> and I should install an earlier version?<br>
>><br>
><br>
><br>
>> Thanks,<br>
>> Dmitry<br>
>><br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Igor Stasenko AKA sig.<br>
><br>
><br>
<br>
</blockquote></div><br>