<div dir="ltr"><div><div>Ok, I have found out what is the issue. In case anyone meets this issue, here is explanation:<br><br></div>cmsys/ios/sstream has own implementation of sstream, which is used when normal one could not be found (or is known as buggy). So it should not be even used in my build.<br><br></div><div>Eventually, it shows up that the problem was with the test that is done during bootstrap to decide if valid sstream is available. However, in my case test has failed not because sstream was not there, but because there was general issue with libstdc++ - it tried to run compiled code with  one builtin into system, instead of new one compiled together with GCC. Replacing old libstdc++ with a new one, and restarting CMake build from scratch fixed the issue.<br><br></div><div>Sorry for spamming the list :)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-29 12:41 GMT+02:00 Mariusz Pluciński <span dir="ltr"><<a href="mailto:plucinski.mariusz@gmail.com" target="_blank">plucinski.mariusz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have recently built newest GCC - 5.1.0 - on CentOS 7. Now, I am trying to build CMake with it. Unfortunately, it stops on "./configure" step with following message:<br clear="all"><div><br>In file included from /root/cmake-3.2.2/Source/kwsys/SystemTools.cxx:36:0:<br>/root/cmake-3.2.2/Bootstrap.cmk/cmsys/ios/sstream: In member function ‘void cmsys_ios::istringstream::clear(int)’:<br>/root/cmake-3.2.2/Bootstrap.cmk/cmsys/ios/sstream:176:34: error: invalid conversion from ‘int’ to ‘std::ios_base::iostate {aka std::_Ios_Iostate}’ [-fpermissive]<br>     this->IStrStream::clear(flags);<br>                                  ^<br><br></div><div></div><div>Am I doing something wrong, or CMake is not yet adjusted to latest GCC?<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br><div>Best Regards<div>Mariusz Plucinski</div></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Best Regards<div>Mariusz Plucinski</div></div>
</div>