[Vm-dev] Re: Cog crash on linux
eliot.miranda at gmail.com
Tue Oct 5 23:27:19 UTC 2010
Thanks, Igor. I'm integrating this advice into unixbuild/HowToBuild.
On Tue, Oct 5, 2010 at 3:31 PM, Igor Stasenko <siguctua at gmail.com> wrote:
> Okay, i found where the problem (if anyone interested).
> A HowToBuild file says use following command to configure it:
> ../../platforms/unix/config/configure CFLAGS="-g -O2 -msse2
> -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1
> -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread
> The last one "LIBS=-lpthread"
> caused repeating -lpthread twice in makefiles:
> LIBS= -lutil -ldl -lpthread -lm -lnsl -lpthread
> Interesting that it builds w/o any errors/warnings,
> but crashing soon after few interactions after image startup.
> And i think this was the source of gdb confusion as well.
> So, the solution is simply NOT put "LIBS=-lpthread" in configure command.
> P.S. now, please repeat it for me again: C is better than ...XYZ ? :)
> Best regards,
> Igor Stasenko AKA sig.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev