[CMake] Cannot find appropriate C++ compiler

Ilias Miroslav Miroslav.Ilias at umb.sk
Mon Jun 10 23:59:35 EDT 2013


Ad: http://www.cmake.org/pipermail/cmake/2013-June/054994.html

Dear Bill,

the log output file is attached; repeating errors in this file are:

------------------------------------------
cmake_bootstrap_22794_test.cxx:3:21: error: iostream: No such file or directory
cmake_bootstrap_22794_test.cxx: In function ‘int main()’:
cmake_bootstrap_22794_test.cxx:22: error: ‘cout’ is not a member of ‘std’
cmake_bootstrap_22794_test.cxx:22: error: ‘endl’ is not a member of ‘std’
Test failed to compile

Even with installing old headers:
export CPLUS_INCLUDE_PATH=/usr/include/c++/3.4.6/backward:$CPLUS_INCLUDE_PATH
export C_INCLUDE_PATH=/usr/include/c++/3.4.6/backward:$C_INCLUDE_PATH

I got new bunch  errors:
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/ilias/bin/cmake/cmake-2.8.11.1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------

and the "cmake_bootstrap.log" contains
------------------------------------------

------------------------------------------
cmake_bootstrap_22994_test.cxx:3:21: error: iostream: No such file or directory
cmake_bootstrap_22994_test.cxx: In function ‘int main()’:
cmake_bootstrap_22994_test.cxx:22: error: ‘cout’ is not a member of ‘std’
cmake_bootstrap_22994_test.cxx:22: error: ‘endl’ is not a member of ‘std’
Test failed to compile

.
.
.
In file included from /usr/include/c++/3.4.6/backward/iostream.h:31,
                 from cmake_bootstrap_22994_test.cxx:5:
/usr/include/c++/3.4.6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from cmake_bootstrap_22994_test.cxx:5:
/usr/include/c++/3.4.6/backward/iostream.h:32:20: error: iostream: No such file or directory
In file included from cmake_bootstrap_22994_test.cxx:5:
/usr/include/c++/3.4.6/backward/iostream.h:34: error: ‘std::iostream’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:35: error: ‘std::ostream’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:36: error: ‘std::istream’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:37: error: ‘std::ios’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:38: error: ‘std::streambuf’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:40: error: ‘std::cout’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:41: error: ‘std::cin’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:42: error: ‘std::cerr’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:43: error: ‘std::clog’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:51: error: ‘std::ws’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:52: error: ‘std::endl’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:53: error: ‘std::ends’ has not been declared
/usr/include/c++/3.4.6/backward/iostream.h:54: error: ‘std::flush’ has not been declared
cmake_bootstrap_22994_test.cxx: In function ‘int main()’:
cmake_bootstrap_22994_test.cxx:20: error: ‘cout’ was not declared in this scope
cmake_bootstrap_22994_test.cxx:20: error: ‘endl’ was not declared in this scope
Test failed to compile

Best, Miro


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_bootstrap.log
Type: text/x-log
Size: 3418 bytes
Desc: cmake_bootstrap.log
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130611/703bdcac/attachment.bin>


More information about the CMake mailing list