<div dir="ltr"><div class="gmail_quote">On Mon, Mar 7, 2011 at 6:48 PM, RR <span dir="ltr">&lt;<a href="mailto:ranjtech@gmail.com">ranjtech@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;">

<div dir="ltr"><div class="gmail_quote"><div class="im">On Mon, Mar 7, 2011 at 6:31 PM, Stuart Longland <span dir="ltr">&lt;<a href="mailto:redhatter@gentoo.org" target="_blank">redhatter@gentoo.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 03/08/11 09:21, RR wrote:<br>
&gt; Hello Stuart<br>
&gt;<br>
&gt; On Mon, Mar 7, 2011 at 6:09 PM, Stuart Longland &lt;<a href="mailto:redhatter@gentoo.org" target="_blank">redhatter@gentoo.org</a><br>
</div><div>&gt; &lt;mailto:<a href="mailto:redhatter@gentoo.org" target="_blank">redhatter@gentoo.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Even if it doesn&#39;t help fix the problem, you probably will want to use<br>
&gt;     at least -mcpu=v9 (educated guess looking at the gcc manpage) if it&#39;s an<br>
&gt;     UltraSPARC as that will give you some of these instructions.  Asterisk<br>
&gt;     strikes me as an application that&#39;d make fairly hefty use of things like<br>
&gt;     integer multiplication.<br>
&gt;<br>
&gt; Ok, where would I put this -mcpu=v9 in the configure line?<br>
&gt;<br>
&gt; I tried ./configure CFLAGS=&quot;-mcpu=v9&quot;?<br>
<br>
</div>Normally it&#39;s specified in the environment; so maybe CFLAGS=&quot;-mcpu=v9&quot;<br>
./configure…<br>
<div><br></div></blockquote><div><br></div></div><div><font color="#000099" face="&#39;trebuchet ms&#39;, sans-serif">I tried both ways, my way and yours i.e. setting them as env variables and it still gets that error. Also found some other stuff on the net related to that in different context but none of those work for me. Some where in some old debian archives there&#39;s some mention of the Boost libraries and the flag that must be used on Sparc with Boost libraries. Although it also says that it was fixed in some later release which was back in 2008, so am assuming that fix is still in place in Squeeze. </font></div>

<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
&gt; BTW, at the end of the configure script, it&#39;s already detecting the host<br>
&gt; cpu as sparc64. If that helps. Maybe -march needs to be specified<br>
&gt; somewhere?<br>
<br>
</div>Maybe, the fact that it detected &#39;sparc64&#39; probably is more a case of<br>
telling the build system that the system is big-endian, requires that<br>
data structures be 64-bit aligned, etc.  Use of features that weren&#39;t in<br>
the first SPARC is an optional extra.</blockquote><div><br></div></div><div><font face="&#39;trebuchet ms&#39;, sans-serif" color="#000099">Ok, if that doesn&#39;t help then another interesting insight is that in config.log, it says that the response to &#39;arch&#39; and &#39;arch -k&#39; commands is &#39;unknown&#39;. Don&#39;t know if that helps.</font></div>

<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
&gt;     Another place to ask might be the Debian-SPARC mailing list?<br>
&gt;<br>
&gt; haha funny, I was just writing an email to that list when your email hit<br>
&gt; my inbox :)<br>
<br>
</div>Telepathy; seems we think alike. :-D  Must be due to me being from the<br>
same part of the world.<br>
<div><div></div><div><br></div></div></blockquote><div><br></div></div><div><font face="&#39;trebuchet ms&#39;, sans-serif" color="#000099">Possibly :) although I have found that there&#39;s not a lot of activity in that list on a regular basis. So not sure if my problem will get resolved there or not :(</font> </div>

</div></div></blockquote><div><br></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 153); font-family: &#39;trebuchet ms&#39;, sans-serif; ">Ok, so this is solved! The culprit was the the line &quot;mcpu=v8&quot; in the Makefile. Comment that out, and it makes properly.</span> </div>

</div><br></div>