Thanks David. Yes, I agree as well:<br><br>Name: CMakeVMMaker-MarianoMartinezPeck.114<br>Author: MarianoMartinezPeck<br>Time: 5 July 2011, 1:56:28 pm<br>UUID: e473f414-b9ec-4b86-895f-6a8fd289f45b<br>Ancestors: CMakeVMMaker-EstebanLorenzano.113<br>
<br>Remove &quot;-mno-fused-madd&quot; from FloatMathPlugin<br><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 1:44 PM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.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><div></div><div class="h5"><br>
On Mon, Jul 04, 2011 at 11:39:14PM -0400, Dimitry Golubovsky wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Thanks Igor and Mariano. I synced my clone repo with blessed, and was<br>
&gt; able to build Cog via cmake (looks like I did not read one paragraph<br>
&gt; in Mariano&#39;s guide ;)<br>
&gt;<br>
&gt; I ran into the cc1: error: unrecognized command line option<br>
&gt; &quot;-mno-fused-madd&quot; error while compiling the float math plugin.<br>
&gt;<br>
&gt; I use<br>
&gt;<br>
&gt; dima@slax:~/src/cogvm/dmg-blessed/build$ gcc --version<br>
&gt; gcc (GCC) 4.2.4<br>
&gt; Copyright (C) 2007 Free Software Foundation, Inc.<br>
&gt;<br>
&gt; not very new but did not really have plans to upgrade it. I followed<br>
&gt; this discussion:<br>
&gt;<br>
&gt; <a href="http://forum.world.st/Failed-to-build-FloatMathPlugin-on-FreeBSD-td3346374.html" target="_blank">http://forum.world.st/Failed-to-build-FloatMathPlugin-on-FreeBSD-td3346374.html</a><br>
&gt;<br>
&gt; commenting out the relevant line in FloatMathPlugin/CMakeLists.txt<br>
&gt;<br>
&gt; I see where it is coming from (class CPlatformConfig in CMakeVMMaker):<br>
&gt;<br>
&gt; configureFloatMathPlugin: maker<br>
&gt;       &quot;extra rules for FloatMathPlugin&quot;<br>
&gt; ....<br>
&gt;<br>
&gt;       &quot;according to <a href="http://www.netlib.org/fdlibm/readme" target="_blank">http://www.netlib.org/fdlibm/readme</a><br>
&gt;       it should be compiled with no optimizations&quot;<br>
&gt;       maker addDefinitions: &#39;-O0 -mno-fused-madd&#39;.<br>
&gt;<br>
<br>
</div></div>I would suggest removing the -mno-fused-madd option from the cmake<br>
configuration. Ian made this change for the cmake build in trunk,<br>
see platforms/unix/plugins/FloatMathPlugin/config.cmake for reference.<br>
<br>
Some background is at <a href="http://bugs.squeak.org/view.php?id=7592" target="_blank">http://bugs.squeak.org/view.php?id=7592</a> and<br>
also some discussion on vm-dev, but to summarize the conclusion as<br>
I understand it:<br>
<br>
  There is no evidence that the -mno-fused-madd option has any<br>
  effect on the plugin that can be detected by the unit tests.<br>
  This is a non-portable compiler option that is not necessary<br>
  for correct functioning of the plugin, and therefore should<br>
  not be used.<br>
<br>
Dave<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>