Hi OpenJDK people !<br clear="all"><div><br></div><div>I tried to build the latest version of OpenJDK on my machine, but ran into a problem during the compilation.</div><div>The error I got was "gcc: error: unrecognized command line option '-mimpure-text'".</div>


<div><br></div><div>I am not a C/C++ programmer but I found out that this option is for Solaris only. It is used at line 70 in the file ./jdk/make/common/shared/Compiler-gcc.gmk</div><div>It seems that the problem is related to gcc v4.7, which is the version I used. I found a JIRA on JRuby where a user had the same problem (see "References" below).</div>


<div><br></div><div>I removed that option form the file Compiler-gcc.gmk and the build was successful. Was that the right thing to do or should I expect JVM crashes ?</div><div><br></div><div>I did not try to build the package using older versions of gcc, so I suppose that previous versions did tolerate the presence of this flag even if it is useful only on Solaris. Can someone confirm this ?</div>


<div><br></div><div>Sources :</div><div>- <a href="http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html</a></div><div>- <a href="http://jira.codehaus.org/browse/JRUBY-6633" target="_blank">http://jira.codehaus.org/browse/JRUBY-6633</a></div>


<div><br></div><div>Regards.</div><div><br></div>--<br><br>
Pierre Laporte<br><a href="mailto:pierre@pingtimeout.fr" target="_blank">pierre@pingtimeout.fr</a><br>
<a href="http://www.pingtimeout.fr/" target="_blank">http://www.pingtimeout.fr/</a><br>