[Vm-dev] Re: Cog on Linux

Eliot Miranda eliot.miranda at gmail.com
Thu Jul 22 20:17:06 UTC 2010


On Thu, Jul 22, 2010 at 1:10 PM, Paul DeBruicker <pdebruic at gmail.com> wrote:

>
> Hi Rob,
>
> In case you never got a CogVM compiled:
>
> I was able to compile to 32bit VM on 64 bit ubuntu 10.04 desktop after
> installing these packages:
>
> lib32asound2-dev
> libgl1-mesa-dev
> libglu1-mesa-dev
> build-essential
> ia32-libs
> gcc-multilib
> g++multilib
>

Thanks, Paul.  I've added this to the HowToBuild.


> Then follow the instructions here:
>
> http://www.squeakvm.org/svn/squeak/branches/Cog/unixbuild/HowToBuild
>
> This was the configure incantation:
>
> ../../platforms/unix/config/configure CC="gcc -m32" CXX="g++ -m32"
> CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1
> -DNO_VM_PROFILE=1 -DCOGMTVM=0" LIBS=-lpthread
>
> Then do this:
> http://forum.world.st/CogVM-td2262856.html#a2262856
>
>
> 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:
>
> http://forum.world.st/Cog-segfaults-on-linux-td2289607.html#a2289607


Have you updated to r2244 or better?  As I hoped in the log:

svn log platforms/unix/vm/sqUnixHeartbeat.c
r2244 | eliot | 2010-07-20 11:20:26 -0700 (Tue, 20 Jul 2010) | 3 lines

Fix heartbeat clock log (-ve % +ve => -ve bounds violation).
This will hopefully fix crashes in the heartbeat under linux.

If you're already at 2244 then what's the backtrace in gdb, registers etc?

Good luck.
> Paul
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100722/62b2d547/attachment.htm


More information about the Vm-dev mailing list