<br><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 1:10 PM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com">pdebruic@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;">
<br>
Hi Rob,<br>
<br>
In case you never got a CogVM compiled:<br>
<br>
I was able to compile to 32bit VM on 64 bit ubuntu 10.04 desktop after installing these packages:<br>
<br>
lib32asound2-dev<br>
libgl1-mesa-dev<br>
libglu1-mesa-dev<br>
build-essential<br>
ia32-libs<br>
gcc-multilib<br>
g++multilib<br></blockquote><div><br></div><div>Thanks, Paul.  I&#39;ve added this to the HowToBuild.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Then follow the instructions here:<br>
<br>
<a href="http://www.squeakvm.org/svn/squeak/branches/Cog/unixbuild/HowToBuild" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog/unixbuild/HowToBuild</a><br>
<br>
This was the configure incantation:<br>
<br>
../../platforms/unix/config/configure CC=&quot;gcc -m32&quot; CXX=&quot;g++ -m32&quot; CFLAGS=&quot;-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0&quot; LIBS=-lpthread<br>
<br>
Then do this:<br>
<a href="http://forum.world.st/CogVM-td2262856.html#a2262856" target="_blank">http://forum.world.st/CogVM-td2262856.html#a2262856</a><br>
<br>
<br>
But.  The VM will open your image, but it seg faults a short, random amount of time after that.  Even if you make the change Eliot recommends here:<br>
<br>
<a href="http://forum.world.st/Cog-segfaults-on-linux-td2289607.html#a2289607" target="_blank">http://forum.world.st/Cog-segfaults-on-linux-td2289607.html#a2289607</a></blockquote><div><br></div><div>Have you updated to r2244 or better?  As I hoped in the log:</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>svn log platforms/unix/vm/sqUnixHeartbeat.c</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>r2244 | eliot | 2010-07-20 11:20:26 -0700 (Tue, 20 Jul 2010) | 3 lines</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Fix heartbeat clock log (-ve % +ve =&gt; -ve bounds violation).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>This will hopefully fix crashes in the heartbeat under linux. </div>
<div><br></div><div>If you&#39;re already at 2244 then what&#39;s the backtrace in gdb, registers etc?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Good luck.<br><font color="#888888">
Paul<br>
<br>
<br>
</font></blockquote></div><br>