<div class="gmail_quote">2012/10/3 Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><br>
On 3 October 2012 20:31, Denis Kudriashov &lt;<a href="mailto:dionisiydk@gmail.com" target="_blank">dionisiydk@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Ok, I just remove keys from makefilelist. And now I have error no high res clock defined:<br>
&gt;<br>
&gt; sqLong<br>
&gt; ioHighResClock(void)<br>
&gt; {<br>
&gt;   /* return the value of the high performance counter */<br>
&gt;   sqLong value = 0;<br>
&gt; #if defined(__GNUC__) &amp;&amp; ( defined(i386) || defined(__i386) || defined(__i386__)  \<br>
&gt;             || defined(i486) || defined(__i486) || defined (__i486__) \<br>
&gt;             || defined(intel) || defined(x86) || defined(i86pc) )<br>
&gt;     __asm__ __volatile__ (&quot;rdtsc&quot; : &quot;=A&quot;(value));<br>
&gt; #else<br>
&gt; # error &quot;no high res clock defined&quot;<br>
&gt; #endif<br>
&gt;   return value;<br>
&gt; }<br>
&gt;<br>
&gt; I try to just return value here;<br>
&gt;<br>
</div>bad idea..<br>
<br>
seems like you get to the place where you need to make your hands<br>
dirty implementing some stuff :)<br>
<br>
But i think this was done before for ARM.<br>
<br>
I think, Dimitry can help you there, since he were adopted Stack VM<br>
for ARM  before:<br>
<br>
<a href="https://gitorious.org/~golubovsky/cogvm/dmg-blessed" target="_blank">https://gitorious.org/~golubovsky/cogvm/dmg-blessed</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({&#39;rating&#39;:{&#39;value&#39;:100,&#39;weight&#39;:13},&#39;flags&#39;:{},&#39;single&#39;:true,&#39;ttl&#39;:7200,&#39;expireTime&#39;:&#39;20121003231629&#39;}, self.className)},600);" class="wrc11" style="padding-right:16px;width:16px;height:16px"></span><span style="padding-right:16px;width:16px;min-height:16px"></span><span style="padding-right:16px;width:16px;min-height:16px"></span><br>



</blockquote><div><br>I will look at it. But now my linking process broken.<br>I have too many undefines during linking C executable StackVM which finished with error:<br><br><br>85%] Built target SurfacePlugin<br>Linking C executable /cogVM/blessed/results/StackVM<br>


CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `markAndTraceInterpreterOops&#39;:<br>gcc3x-interp.c:(.text+0x6130): undefined reference to `sqLowLevelMFence&#39;<br>CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `primitiveLongRunningPrimitiveSemaphore&#39;:<br>


gcc3x-interp.c:(.text+0x6868): undefined reference to `sqLowLevelMFence&#39;<br>CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `forceInterruptCheck&#39;:<br>gcc3x-interp.c:(.text+0x68c4): undefined reference to `sqLowLevelMFence&#39;<br>


CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `L0mapInterpreterOops&#39;:<br>gcc3x-interp.c:(.text+0x9a0c): undefined reference to `sqLowLevelMFence&#39;<br>gcc3x-interp.c:(.text+0x9a68): undefined reference to `sqLowLevelMFence&#39;<br>


CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `interpreterAllocationReserveBytes&#39;:<br>gcc3x-interp.c:(.text+0xac44): undefined reference to `pow&#39;<br>CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `forceInterruptCheckFromHeartbeat&#39;:<br>


gcc3x-interp.c:(.text+0x10bec): undefined reference to `sqLowLevelMFence&#39;<br>CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `L25assertClassOfiscompactClassIndex&#39;:<br>gcc3x-interp.c:(.text+0x129e4): undefined reference to `exp&#39;<br>


CMakeFiles/StackVM.dir/cogVM/blessed/src/vm/gcc3x-interp.c.o: In function `L5<br>...<br>dct.c:(.text+0x2d54): undefined reference to `cos&#39;<br>dct.c:(.text+0x2d60): undefined reference to `sin&#39;<br>dct.c:(.text+0x2ef8): undefined reference to `sincos&#39;<br>

collect2: perform <b>ld </b>complete with code 1<br>make[2]: *** [/cogVM/blessed/results/StackVM] Ошибка 1<br>make[1]: *** [CMakeFiles/StackVM.dir/all] Ошибка 2<br>make: *** [all] Ошибка 2<br><br><br>What can be reason? Are undefined&#39;s just warnings?<br>

<br>Mariano write about:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Then, I have a problem at linking time, “/usr/bin/<b>ld</b>: cannot find -lGL”, which <br>

</blockquote><div> <br>But I dont see any &quot;cannot find -lGL”.<br>What this error actualy means?<br></div><br></div></div>