[Pharo-project] Loading Alien on Pharo 1.1.1

Luc Fabresse luc.fabresse at gmail.com
Sat Nov 20 08:15:30 CET 2010


Hi,

With the "Squeak 4.2.5beta1U" VM from John, the IA32ABI plugin is external.
I can load Alien correctly in a 1.1.1 image.
Then evaluate:

AlienLibrary new ffiPrintString: 'toto' asAlien

Now the plugin has been loaded and:

Smalltalk listLoadedModules
detect:[:any| any beginsWith: 'IA32ABI']
ifNone:[nil]

evaluates to :  'IA32ABI 7 May 2009 (e)'

Cheers,

#Luc

2010/11/20 Eliot Miranda <eliot.miranda at gmail.com>

>
>
> On Fri, Nov 19, 2010 at 3:16 PM, Esteban Lorenzano <estebanlm at gmail.com>wrote:
>
>> Ok, it loads :)
>> but now I have a problem with this primitive call:
>>
>> <primitive: 'primSizeFieldPut' error: errorCode module: 'IA32ABI'>
>>
>> what I'm missing? I'm using pharo 1.1.1 and no-cog vm (but latest sources)
>>
>
> Hmmm... make sure the IA32ABI plugin is in the VM.  IIRC it is an internal
> plugin so it is either there or you need to find a VM that contains it, but
> I could be wrong and it might be available externally (I doubt it).
>
> i.e.
> Smalltalk listBuiltinModules
> detect:[:any| any beginsWith: 'IA32ABI']
>  ifNone:[nil]
> should not answer nil.
>
>
> If it doesn't answer nil then I fear there may be a disagreement between
> the plugin's ideas of what the specialObjectArray index of Alien is to the
> recreateSpecialObjectsArray method.  At least make sure that Alien is in the
> specialObjectsArray.
>
> HTH
> Eliot
>
>
>> Cheers,
>> Esteban
>>
>>
>> On 2010-11-19 19:05:29 -0300, Eliot Miranda <eliot.miranda at gmail.com>
>> said:
>>
>>
>>> Hi Esteban,
>>>
>>> On Fri, Nov 19, 2010 at 10:23 AM, Esteban Lorenzano <estebanlm at gmail.com
>>> >wrote:
>>>
>>>  still the same error...
>>>> I can press "proceed", but I'm scared to do that :)
>>>>
>>>>
>>> as long as you don't shorten the specialObjectsArray you should be OK.
>>>
>>>
>>>
>>>> Cheers,
>>>> Esteban
>>>>
>>>> On 2010-11-19 11:12:17 -0300, Luc Fabresse <luc.fabresse at gmail.com>
>>>> said:
>>>>
>>>>
>>>>  Hi All,
>>>>>
>>>>> To load  Alien I use:
>>>>>
>>>>> Gofer new
>>>>> squeaksource: 'Alien';
>>>>> package: 'ConfigurationOfAlien';
>>>>> load.
>>>>> (Smalltalk at: #ConfigurationOfAlien project version: 'Pharo 1.1') load
>>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> #Luc
>>>>>
>>>>>
>>>>> 2010/11/18 Esteban Lorenzano <estebanlm at gmail.com>
>>>>>
>>>>> Hi,
>>>>>
>>>>>> Does anybody knows if Alien should work with pharo 1.1.1 (non cog vm)?
>>>>>> With ConfigurationOfAlien, I'm getting the "invalid array size" prereq
>>>>>> violated.
>>>>>>
>>>>>> Cheers,
>>>>>> Esteban
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> <span class=3D"Apple-style-span" style=3D"font-family: arial,
>>>>> sans-serif;
>>>>> f=
>>>>> ont-size: 14px; border-collapse: collapse; ">Hi
>>>>> All,<div><br></div><div>=A0=
>>>>> To load =A0Alien I use:</div><div><br></div><div>=A0=A0Gofer
>>>>> new</div><div>=
>>>>> <span style=3D"white-space: pre-wrap; ">        </span>squeaksource:
>>>>> &#39;Alien&#3=
>>>>> 9;;</div>
>>>>> <div><span style=3D"white-space: pre-wrap; ">   </span>package:
>>>>> &#39;Configur=
>>>>> ationOfAlien&#39;;</div><div><span style=3D"white-space: pre-wrap; ">
>>>>> </spa=
>>>>> n>load.</div><div><span style=3D"white-space: pre-wrap; ">
>>>>> </span></div><di=
>>>>> v>
>>>>> (Smalltalk at: #ConfigurationOfAlien project version: &#39;Pharo
>>>>> 1.1&#39;)
>>>>> =
>>>>> load</div><div><br></div><div>=A0</div><div>=A0Cheers,</div><div><br
>>>>> clear=
>>>>> =3D"all">#Luc</div></span>
>>>>> <br><br><div class=3D"gmail_quote">2010/11/18 Esteban Lorenzano <span
>>>>> dir=
>>>>> =3D"ltr">&lt;<a href=3D"mailto:estebanlm at gmail.com">
>>>>> estebanlm at gmail.com
>>>>>
>>>> </a>=
>>
>> &gt;</span><br><blockquote
>>
>>
>> class=3D"gmail_quote"
>>
>>>
>>>>> style=3D"margin:0 0 0 .8ex=
>>>>> ;border-left:1px #ccc solid;padding-left:1ex;">
>>>>> Hi,<br>
>>>>> Does anybody knows if Alien should work with pharo 1.1.1 (non cog
>>>>> vm)?<br>
>>>>> With ConfigurationOfAlien, I&#39;m getting the &quot;invalid array
>>>>> size&quo=
>>>>> t; prereq violated.<br>
>>>>> <br>
>>>>> Cheers,<br><font color=3D"#888888">
>>>>> Esteban<br>
>>>>> <br>
>>>>> <br>
>>>>> <br>
>>>>> </font></blockquote></div><br>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> Hi=A0Esteban,<br><br><div class=3D"gmail_quote">On Fri, Nov 19, 2010 at
>>> 10:=
>>> 23 AM, Esteban Lorenzano <span dir=3D"ltr">&lt;<a href=3D"mailto:
>>> estebanlm@=
>>> gmail.com">estebanlm at gmail.com</a>&gt;</span> wrote:<br><blockquote
>>> class=
>>> =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc
>>> solid;padd=
>>> ing-left:1ex;">
>>> still the same error...<br>
>>> I can press &quot;proceed&quot;, but I&#39;m scared to do that
>>> :)<br></bloc=
>>> kquote><div><br></div><div>as long as you don&#39;t shorten the
>>> specialObje=
>>> ctsArray you should be OK.</div><div>=A0</div><blockquote
>>> class=3D"gmail_qu=
>>> ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc
>>> solid;padding-left:1ex=
>>> ;">
>>>
>>> <br>
>>> Cheers,<br>
>>> Esteban<br>
>>> <br>
>>> On 2010-11-19 11:12:17 -0300, Luc Fabresse &lt;<a href=3D"mailto:
>>> luc.fabres=
>>> se at gmail.com" target=3D"_blank">luc.fabresse at gmail.com</a>&gt; said:<br>
>>> <br>
>>> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
>>> .8ex;border-left:1p=
>>>
>>> x #ccc solid;padding-left:1ex">
>>> <br>
>>> Hi All,<br>
>>> <br>
>>> =A0To load =A0Alien I use:<br>
>>> <br>
>>>  =A0Gofer new<br>
>>> squeaksource: &#39;Alien&#39;;<br>
>>> package: &#39;ConfigurationOfAlien&#39;;<br>
>>> load.<br>
>>>
>>> (Smalltalk at: #ConfigurationOfAlien project version: &#39;Pharo
>>> 1.1&#39;) =
>>> load<br>
>>> <br>
>>> <br>
>>> =A0Cheers,<br>
>>> <br>
>>> #Luc<br>
>>> <br>
>>> <br>
>>> 2010/11/18 Esteban Lorenzano &lt;<a href=3D"mailto:estebanlm at gmail.com"
>>> tar=
>>> get=3D"_blank">estebanlm at gmail.com</a>&gt;<br>
>>> <br>
>>> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
>>> .8ex;border-left:1p=
>>>
>>> x #ccc solid;padding-left:1ex">
>>> Hi,<br>
>>> Does anybody knows if Alien should work with pharo 1.1.1 (non cog
>>> vm)?<br>
>>> With ConfigurationOfAlien, I&#39;m getting the &quot;invalid array
>>> size&quo=
>>> t; prereq<br>
>>>
>>> violated.<br>
>>> <br>
>>> Cheers,<br>
>>> Esteban<br>
>>> <br>
>>> <br>
>>> <br>
>>> <br>
>>> </blockquote>
>>> <br>
>>> <br>
>>> &lt;span class=3D3D&quot;Apple-style-span&quot;
>>> style=3D3D&quot;font-family=
>>> : arial, sans-serif; f=3D<br>
>>> ont-size: 14px; border-collapse: collapse; &quot;&gt;Hi
>>> All,&lt;div&gt;&lt;=
>>> br&gt;&lt;/div&gt;&lt;div&gt;=3DA0=3D<br>
>>> To load =3DA0Alien I
>>> use:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;d=
>>> iv&gt;=3DA0=3DA0Gofer new&lt;/div&gt;&lt;div&gt;=3D<br>
>>> &lt;span style=3D3D&quot;white-space: pre-wrap; &quot;&gt; =A0 =A0 =A0
>>> =A0&=
>>> lt;/span&gt;squeaksource: &amp;#39;Alien&amp;#3=3D<br>
>>> 9;;&lt;/div&gt;<br>
>>> &lt;div&gt;&lt;span style=3D3D&quot;white-space: pre-wrap; &quot;&gt; =A0
>>> &=
>>> lt;/span&gt;package: &amp;#39;Configur=3D<br>
>>> ationOfAlien&amp;#39;;&lt;/div&gt;&lt;div&gt;&lt;span
>>> style=3D3D&quot;white=
>>> -space: pre-wrap; &quot;&gt; =A0 &lt;/spa=3D<br>
>>> n&gt;load.&lt;/div&gt;&lt;div&gt;&lt;span style=3D3D&quot;white-space:
>>> pre-=
>>> wrap; &quot;&gt; =A0 =A0 =A0&lt;/span&gt;&lt;/div&gt;&lt;di=3D<br>
>>> v&gt;<br>
>>> (Smalltalk at: #ConfigurationOfAlien project version: &amp;#39;Pharo
>>> 1.1&am=
>>> p;#39;) =3D<br>
>>>
>>> load&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;=3DA0&lt;/div&g=
>>> t;&lt;div&gt;=3DA0Cheers,&lt;/div&gt;&lt;div&gt;&lt;br clear=3D<br>
>>> =3D3D&quot;all&quot;&gt;#Luc&lt;/div&gt;&lt;/span&gt;<br>
>>> &lt;br&gt;&lt;br&gt;&lt;div
>>> class=3D3D&quot;gmail_quote&quot;&gt;2010/11/18=
>>>  Esteban Lorenzano &lt;span dir=3D<br>
>>> =3D3D&quot;ltr&quot;&gt;&amp;lt;&lt;a href=3D3D&quot;mailto:<a
>>> href=3D"mail=
>>> to:estebanlm at gmail.com <to%3Aestebanlm at gmail.com>" target=3D"_blank">
>>> estebanlm at gmail.com</a>&quot;&gt;=
>>>
>> <a
>>
>>>
>>> href=3D"mailto:estebanlm at gmail.com" target=3D"_blank">estebanlm at gmail.co
>>> =
>>> m</a>&lt;/a&gt;=3D<br>
>>>
>>> </blockquote>
>>> &amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote <br>
>>> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
>>> .8ex;border-left:1p=
>>>
>>> x #ccc solid;padding-left:1ex">
>>> <br>
>>> class=3D3D&quot;gmail_quote&quot; style=3D3D&quot;margin:0 0 0
>>> .8ex=3D<br>
>>> ;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;<br>
>>> Hi,&lt;br&gt;<br>
>>> Does anybody knows if Alien should work with pharo 1.1.1 (non cog
>>> vm)?&lt;b=
>>> r&gt;<br>
>>> With ConfigurationOfAlien, I&amp;#39;m getting the &amp;quot;invalid
>>> array =
>>> size&amp;quo=3D<br>
>>> t; prereq violated.&lt;br&gt;<br>
>>> &lt;br&gt;<br>
>>> Cheers,&lt;br&gt;&lt;font color=3D3D&quot;#888888&quot;&gt;<br>
>>> Esteban&lt;br&gt;<br>
>>> &lt;br&gt;<br>
>>> &lt;br&gt;<br>
>>> &lt;br&gt;<br>
>>> &lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;<br>
>>> </blockquote>
>>> <br>
>>> <br>
>>> <br>
>>> <br>
>>> </blockquote></div><br>
>>>
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20101120/1c27ef68/attachment.htm>


More information about the Pharo-project mailing list