<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 16px; font-family: Courier, sans-serif;">
<div>
<div>
<div>
<div>Hello,</div>
<div><br>
</div>
<div>This is my first time posting here.</div>
<div><br>
</div>
<div>My compilation of CMake failed on my system (Ubuntu 15.1/Wily with gcc 5.2.1). My configure claims that sstream is not there and the compilation failure seems to be related to this. I do have the gcc/g++ libraries installed ( … a locate libstdc++ shows
 them).</div>
<div><br>
</div>
<div>I would like to try to get around this issue. I have put the relevant information below. Any help would be appreciated.</div>
<div><br>
</div>
<div><br>
</div>
<div>SYSTEM ENVIRONMENT</div>
<div>------------------</div>
<div><br>
</div>
<div>gtst@system1:~$ lsb_release -a</div>
<div>No LSB modules are available.</div>
<div>Distributor ID:<span class="Apple-tab-span" style="white-space:pre"> </span>
Ubuntu</div>
<div>Description:<span class="Apple-tab-span" style="white-space:pre"> </span>Ubuntu 15.10</div>
<div>Release:<span class="Apple-tab-span" style="white-space:pre"> </span>15.10</div>
<div>Codename:<span class="Apple-tab-span" style="white-space:pre"> </span>wily</div>
<div><br>
</div>
<div><br>
</div>
<div>COMPILER ENVIRONMENT</div>
<div>--------------------</div>
<div><br>
</div>
<div>gtst@system1:~$ gcc -v</div>
<div>Using built-in specs.</div>
<div>COLLECT_GCC=gcc</div>
<div>COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper</div>
<div>Target: x86_64-linux-gnu</div>
<div>Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.2.1-22ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id
 --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify
 --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release
 --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu</div>
<div>Thread model: posix</div>
<div>gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)</div>
<div><br>
</div>
<div><br>
</div>
<div>COMPILATION OUTPUT</div>
<div>------------------</div>
<div><br>
</div>
<div>/home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1$ ./configure </div>
<div>---------------------------------------------</div>
<div>CMake 2.8.12.1, Copyright 2000-2012 Kitware, Inc.</div>
<div>Found GNU toolchain</div>
<div>C compiler on this system is: gcc </div>
<div>C++ compiler on this system is: g++ </div>
<div>Makefile processor on this system is: gmake</div>
<div>g++ is GNU compiler</div>
<div>g++ has setenv</div>
<div>g++ has unsetenv</div>
<div>g++ does not have environ in stdlib.h</div>
<div>g++ has STL in std:: namespace</div>
<div>g++ has ANSI streams</div>
<div>g++ has streams in std:: namespace</div>
<div>g++ does not have sstream</div>
<div>g++ does not have strstream.h</div>
<div>g++ does not have strstrea.h</div>
<div>g++ does not have operator!=(string, char*)</div>
<div>g++ has stl iterator_traits</div>
<div>g++ has standard template allocator</div>
<div>g++ has allocator<>::rebind<></div>
<div>g++ does not have non-standard allocator<>::max_size argument</div>
<div>g++ has stl containers supporting allocator objects</div>
<div>g++ has header cstddef</div>
<div>g++ requires template friends to use <></div>
<div>g++ supports member templates</div>
<div>g++ has standard template specialization syntax</div>
<div>g++ has argument dependent lookup</div>
<div>g++ has struct stat with st_mtim member</div>
<div>g++ has ios::binary openmode</div>
<div>g++ has ANSI for scoping</div>
<div>---------------------------------------------</div>
<div><br>
</div>
<div><br>
</div>
<div>In file included from /home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Source/cmDocumentVariables.cxx:4:0:</div>
<div>/home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Bootstrap.cmk/cmsys/ios/sstream: In member function ‘void cmsys_ios::istringstream::clear(int)’:</div>
<div>/home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Bootstrap.cmk/cmsys/ios/sstream:176:34: error: invalid conversion from ‘int’ to ‘std::ios_base::iostate {aka std::_Ios_Iostate}’ [-fpermissive]</div>
<div>     this->IStrStream::clear(flags);</div>
<div>                                  ^</div>
<div>In file included from /usr/include/c++/5/bits/basic_ios.h:516:0,</div>
<div>                 from /usr/include/c++/5/ios:44,</div>
<div>                 from /usr/include/c++/5/istream:38,</div>
<div>                 from /usr/include/c++/5/fstream:38,</div>
<div>                 from /home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Source/cmStandardIncludes.h:84,</div>
<div>                 from /home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Source/cmSystemTools.h:15,</div>
<div>                 from /home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Source/cmake.h:16,</div>
<div>                 from /home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Source/cmDocumentVariables.cxx:2:</div>
<div>/usr/include/c++/5/bits/basic_ios.tcc:41:5: note:   initializing argument 1 of ‘void std::basic_ios<_CharT, _Traits>::clear(std::ios_base::iostate) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::iostate = std::_Ios_Iostate]’</div>
<div>     basic_ios<_CharT, _Traits>::clear(iostate __state)</div>
<div>     ^</div>
<div>Makefile:126: recipe for target 'cmDocumentVariables.o' failed</div>
<div>gmake: *** [cmDocumentVariables.o] Error 1</div>
<div>---------------------------------------------</div>
<div>Error when bootstrapping CMake:</div>
<div>Problem while running gmake</div>
<div>---------------------------------------------</div>
<div>Log of errors: /home/gtst/devcode/os/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Bootstrap.cmk/cmake_bootstrap.log</div>
<div><br>
</div>
<div><br>
</div>
<div>#####</div>
</div>
<div><br>
</div>
<div>
<div>
<div>-----------</div>
<div>* Amalaye Oyake                                       *</div>
<div>* Instrument Product Software Development Group  */\  *</div>
<div>* Jet Propulsion Laboratory, Pasadena            *||  *</div>
<div>* CA 91109 818.393.7168 work   626.399.1707 cell /||\ *</div>
<div>**************************************************^^***</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>