Ok, I have found out what is the issue. In case anyone meets this issue,
here is explanation:

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.

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.

Sorry for spamming the list :)

2015-04-29 12:41 GMT+02:00 Mariusz Pluciński <[email protected]>:

> 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:
>
> In file included from /root/cmake-3.2.2/Source/kwsys/SystemTools.cxx:36:0:
> /root/cmake-3.2.2/Bootstrap.cmk/cmsys/ios/sstream: In member function
> ‘void cmsys_ios::istringstream::clear(int)’:
> /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]
>      this->IStrStream::clear(flags);
>                                   ^
>
> Am I doing something wrong, or CMake is not yet adjusted to latest GCC?
>
> --
> Best Regards
> Mariusz Plucinski
>



-- 
Best Regards
Mariusz Plucinski
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to