Hi Frank. Last week, JB send fixes for this (I guess Eliot will integrte them soon)<br>Here I copy paste them:<br><br>-------<br><br><br><div style="word-wrap: break-word;">yesterday, i forward you the fix to 
do to compile Cog, the fix is send to Eliot and will be integrated soon,<br></div><br><div style="word-wrap: break-word;"><div>Process to do: </div><div>-
 Load Cog With the configurationOfCog , proceed all the warnings (if you
 can remove the Warnings).</div><div>- checkout the repository at <a href="http://www.squeakvm.org/svn/squeak/branches/Cog" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog</a></div><div>-
 generate source but exclude the MiscPrimitivePlugin (or fix it if you 
have time).</div><div>go in macbuild folder</div><div>- Fix the library 
file :</div><div><blockquote type="cite"><div style="word-wrap: break-word;"><div> <span style="white-space: pre-wrap;">        </span>- sq.h</div><div><span style="white-space: pre-wrap;">        </span>- SoundPlugin.h 
or sqMacUnixInterfaceSound.c</div><div><span style="white-space: pre-wrap;">        </span>- sqMacWindowUniversal.c or HostWindowPlugin.h</div></div></blockquote></div><div>(How
 is put at the en of the mail)</div><div>-Fix the mvm file (just replace
 makevm by ./makevm, if you don&#39;t have . in your Path).</div><div>-run 
the command ./mvm -A</div><div>And,Taddaa you have 3 VM cog:</div><div>Debug,Fast,Assert</div><div><br></div><div>If
 you want to have the simulator working you need to do compile 
the BochsIA32Plugin but it&#39;s well explain in the HowToBuild File.</div><div>If
 you have any problem ask me.</div><div><br></div><div><br></div><div>PS
 : the problem of the library is conflicting type you can resolve that 
by changing some method</div><div><blockquote type="cite"><div style="word-wrap: break-word;"><br><div>In : sq.h</div><div>From :</div><div><div style="margin: 0px;"><span style="color: rgb(84, 129, 135);">sqInt</span> readImageFromFileHeapSizeStartingAt(<span style="color: rgb(84, 129, 135);">sqImageFile</span> f, <span style="color: rgb(84, 129, 135);">usqInt</span> desiredHeapSize, <span style="color: rgb(117, 73, 44);">squeakFileOffsetType</span> imageOffset);</div>
</div><div>To:</div><div><div style="margin: 0px;">sqInt readImageFromFileHeapSizeStartingAt(<span style="color: rgb(84, 129, 135);">sqImageFile</span>  f, <span style="color: rgb(84, 129, 135);">sqInt</span> desiredHeapSize, <span style="color: rgb(117, 73, 44);">squeakFileOffsetType</span>  
imageOffset);</div></div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div><div>SoundPlugin.h :</div><div><div style="margin: 0px;"><span style="color: rgb(84, 129, 135);">sqInt</span> snd_InsertSamplesFromLeadTime(<span style="color: rgb(84, 129, 135);">sqInt</span> frameCount, <span style="color: rgb(182, 14, 162);">void</span> *srcBufPtr, <span style="color: rgb(84, 129, 135);">sqInt</span> samplesOfLeadTime)</div>
</div><div style="margin: 0px;"><br></div><div><span style="color: rgb(16, 135, 4); font-family: Menlo; font-size: 11px;"></span>sqMacUnixInterfaceSound.c
 :</div><div><div style="margin: 0px;"><span style="color: rgb(182, 14, 162);">int</span> snd_InsertSamplesFromLeadTime(<span style="color: rgb(182, 14, 162);">int</span> frameCount, <span style="color: rgb(182, 14, 162);">int</span> srcBufPtr, <span style="color: rgb(182, 14, 162);">int</span> samplesOfLeadTime)</div>
</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div>SoundPlugin.h :</div><div><div style="margin: 0px;"><span style="color: rgb(84, 129, 135);">sqInt</span> snd_PlaySamplesFromAtLength(<span style="color: rgb(84, 129, 135);">sqInt</span> frameCount, <span style="color: rgb(182, 14, 162);">void</span> *srcBufPtr, <span style="color: rgb(84, 129, 135);">sqInt</span> startIndex)</div>
</div><div style="margin: 0px;"><br></div><div>sqMacUnixInterfaceSound.c :</div></div><div><div style="margin: 0px;"><span style="color: rgb(182, 14, 162);">int</span> snd_PlaySamplesFromAtLength(<span style="color: rgb(182, 14, 162);">int</span> frameCount, <span style="color: rgb(182, 14, 162);">int</span> arrayIndex, <span style="color: rgb(182, 14, 162);">int</span> startIndex)</div>
</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div>SoundPlugin.h</div><div><div style="margin: 0px;"><span style="color: rgb(84, 129, 135);">sqInt</span> snd_RecordSamplesIntoAtLength(<span style="color: rgb(182, 14, 162);">void</span> *buf, <span style="color: rgb(84, 129, 135);">sqInt</span> startSliceIndex, <span style="color: rgb(84, 129, 135);">sqInt</span> bufferSizeInBytes)</div>
</div><div style="margin: 0px;"><br></div><div>sqMacUnixInterfaceSound.c :</div><div><div style="margin: 0px;"><span style="color: rgb(182, 14, 162);">int</span> snd_RecordSamplesIntoAtLength(<span style="color: rgb(182, 14, 162);">int</span> buf, <span style="color: rgb(182, 14, 162);">int</span> startSliceIndex, <span style="color: rgb(182, 14, 162);">int</span> bufferSizeInBytes)</div>
</div><div style="margin: 0px;"><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div><font face="Menlo" size="3"><span style="font-size: 11px;"><font face="Helvetica"><span style="font-size: medium;"><br>
</span></font></span></font></div><div><div style="margin: 0px; min-height: 13px;"><span style="font-family: Helvetica; font-size: medium;">SoundPlugin.h</span></div><div style="margin: 0px;"><span style="color: rgb(182, 14, 162);">void</span> snd_SetRecordLevel(<span style="color: rgb(84, 129, 135);">sqInt</span> level)</div>
</div><div style="margin: 0px;"><br></div><div><span style="font-family: Menlo; font-size: 11px;"><span style="color: rgb(182, 14, 162);"><span style="font-family: Helvetica; font-size: medium;">sqMacUnixInterfaceSound.c
 :</span></span></span></div><div><span style="font-family: Menlo; font-size: 11px;"><span style="color: rgb(182, 14, 162);">int</span></span><span style="font-family: Menlo; font-size: 11px;">  snd_SetRecordLevel(</span><span style="font-family: Menlo; font-size: 11px;"><span style="color: rgb(182, 14, 162);">int</span></span><span style="font-family: Menlo; font-size: 11px;"> level)</span><span style="font-family: Menlo; font-size: 11px;"><span style="white-space: pre-wrap;">                </span></span></div>
<div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div>sqMacWindowUniversal.c</div><div><font color="#b60ea2" face="Menlo" size="3"><span style="font-size: 11px;"><div style="margin: 0px;">
<span style="color: rgb(182, 14, 162);">int</span> ioShowDisplayOnWindow(</div><div style="margin: 0px;"><span style="white-space: pre-wrap;">        </span><span style="color: rgb(182, 14, 162);">unsigned</span> <span style="color: rgb(182, 14, 162);">int</span>*  dispBitsIndex, <span style="color: rgb(182, 14, 162);">int</span> <span style="color: rgb(84, 129, 135);">width</span>, <span style="color: rgb(182, 14, 162);">int</span> <span style="color: rgb(84, 129, 135);">height</span>, <span style="color: rgb(182, 14, 162);">int</span> depth,</div>
<div style="margin: 0px; color: rgb(84, 129, 135);"><span style="color: rgb(0, 0, 0);"><span style="white-space: pre-wrap;">        </span></span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedL<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedR<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedT<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedB<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span></div>
<div style="margin: 0px; color: rgb(84, 129, 135);"><span style="color: rgb(0, 0, 0);"><span style="white-space: pre-wrap;">        </span>windowIndex)</span></div><div style="margin: 0px; color: rgb(84, 129, 135);"><font face="Helvetica"><span style="font-size: medium;">HostWindowPlugin.h</span></font></div>
<div style="margin: 0px; color: rgb(84, 129, 135);"><font face="Helvetica"><span style="font-size: medium;"><div style="margin: 0px;"><span style="color: rgb(182, 14, 162);">int</span> ioShowDisplayOnWindow( </div><div style="margin: 0px;">
<span style="color: rgb(182, 14, 162);"><span style="white-space: pre-wrap;">        </span>unsigned</span> <span style="color: rgb(182, 14, 162);">char</span> *dispBitsIndex, <span style="color: rgb(182, 14, 162);">int</span> <span style="color: rgb(84, 129, 135);">width</span>, <span style="color: rgb(182, 14, 162);">int </span><span style="color: rgb(84, 129, 135);">height<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> depth,</span></span></div>
<div style="margin: 0px;"><span style="color: rgb(84, 129, 135);"><span style="color: rgb(0, 0, 0);"><span style="white-space: pre-wrap;">        </span></span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedL<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedR<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedT<span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(182, 14, 162);">int</span><span style="color: rgb(0, 0, 0);"> </span>affectedB<span style="color: rgb(0, 0, 0);">,</span></span><span style="color: rgb(182, 14, 162);">int</span></div>
<div style="margin: 0px;"><span style="color: rgb(182, 14, 162);"></span><span style="white-space: pre-wrap;">        </span>windowIndex);</div></span></font></div></span></font></div></div></blockquote></div><div><div style="word-wrap: break-word;">
<div><font color="#b60ea2" face="Menlo" size="3"><span style="font-size: 11px;"><div style="margin: 0px; color: rgb(84, 129, 135);"><font face="Helvetica"><span style="font-size: medium;"><div style="margin: 0px;"><br></div>
</span></font></div></span></font></div></div></div><div><br></div></div><br><br><div class="gmail_quote">On Mon, Dec 6, 2010 at 10:49 AM, Frank Shearar <span dir="ltr">&lt;<a href="mailto:frank.shearar@angband.za.org">frank.shearar@angband.za.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <br>(Moving the conversation to vm-dev)<br>
<br>
On 2010/12/05 19:58, Frank Shearar wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 2010/12/05 19:15, David T. Lewis wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Sun, Dec 05, 2010 at 06:14:54PM +0000, Frank Shearar wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
And building completed without error! I haven&#39;t attempted running an<br>
image; I only have terminal access to a FreeBSD machine.<br>
<br>
I&#39;d mentioned in vm-dev that it would be really useful to have an image<br>
that only evaluated &quot;3 + 4&quot; and wrote that to stdout. (Maybe someone<br>
already has one?) We could use that with a Hudson instance, and verify<br>
our VM builds automatically.<br>
<br>
frank<br>
</blockquote>
<br>
Actually, you do not need a special image for this. Just supply a start<br>
script when you start Squeak, and run headless using the -vm-display-null<br>
parameter. The script can evaluate 3+4, write output to /dev/tty, then<br>
exit.<br>
An example start script is attached.<br>
</blockquote>
<br>
Excellent!<br>
<br>
Turns out I&#39;d only run configure, not make, so when I&#39;ve figured out<br>
what make&#39;s telling me I did wrong (it might be a 64-bit thing judging<br>
by &quot;warning: cast from pointer to integer of different size&quot;), I&#39;ll give<br>
it a whirl.<br>
</blockquote>
<br>
It&#39;s longAt() that my system&#39;s complaining about at least some of the time, and fails here:<br>
<br>
usqInt<br>
youngStartAddress(void) {<br>
        return ((usqInt)((&amp;GIV(youngStart)))); // This line<br>
}<br>
<br>
Make doesn&#39;t tell me anything useful other than &quot;Error code 1&quot;. (This is off an svn checkout from yesterday.) I&#39;ve attached the output; most of it just looks like 64-bit pointer-like issues.<br>
<br>
frank<br>
<br></blockquote></div><br>