Thanks, Igor.  I&#39;m integrating this advice into unixbuild/HowToBuild.<br><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 3:31 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@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>
Okay, i found where the problem (if anyone interested).<br>
<br>
A HowToBuild file says use following command to configure it:<br>
../../platforms/unix/config/configure CFLAGS=&quot;-g -O2 -msse2<br>
-D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1<br>
-DCOGMTVM=0 -DDEBUGVM=0&quot; LIBS=-lpthread<br>
<br>
<br>
The last one &quot;LIBS=-lpthread&quot;<br>
caused repeating -lpthread twice in makefiles:<br>
<br>
LIBS=           -lutil -ldl -lpthread -lm -lnsl -lpthread<br>
<br>
Interesting that it builds w/o any errors/warnings,<br>
but crashing soon after few interactions after image startup.<br>
And i think this was the source of gdb confusion as well.<br>
<br>
So, the solution is simply NOT put &quot;LIBS=-lpthread&quot; in configure command.<br>
<br>
P.S. now, please repeat it for me again: C is better than ...XYZ ? :)<br>
<div><div></div><div class="h5"><br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br>