Endres-iPod:~/src/cmake-2.8.6 root# ./bootstrap --------------------------------------------- CMake 2.8.6, Copyright 2000-2009 Kitware, Inc. Found GNU toolchain C compiler on this system is: gcc --------------------------------------------- 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: /var/root/src/cmake-2.8.6/Bootstrap.cmk/cmake_bootstrap.log --------------------------------------------- Endres-iPod:~/src/cmake-2.8.6 root# cat Bootstrap.cmk/cmake_bootstrap.log Checking for GNU toolchain Try: gcc Line: gcc cmake_bootstrap_1375_test.c -o cmake_bootstrap_1375_test ---------- file ----------------------- int main() { return 0; } ------------------------------------------ Test succeded Try: g++ Line: g++ cmake_bootstrap_1375_test.cpp -o cmake_bootstrap_1375_test ---------- file ----------------------- int main() { return 0; } ------------------------------------------ Test succeded Try: gcc Line: gcc cmake_bootstrap_1375_test.c -o cmake_bootstrap_1375_test ---------- file ----------------------- #ifdef __cplusplus # error \"The CMAKE_C_COMPILER is set to a C++ compiler\" #endif #include #if defined(__CLASSIC_C__) int main(argc, argv) int argc; char* argv[]; #else int main(int argc, char* argv[]) #endif { printf(\"%d%c\", (argv != 0), (char)0x0a); return argc-1; } ------------------------------------------ 1 Test succeded Try: g++ Line: g++ -DTEST1 cmake_bootstrap_1375_test.cxx -o cmake_bootstrap_1375_test ---------- file ----------------------- #if defined(TEST1) # include #else # include #endif class NeedCXX { public: NeedCXX() { this->Foo = 1; } int GetFoo() { return this->Foo; } private: int Foo; }; int main() { NeedCXX c; #ifdef TEST3 cout << c.GetFoo() << endl; #else std::cout << c.GetFoo() << std::endl; #endif return 0; } ------------------------------------------ cmake_bootstrap_1375_test.cxx:3:21: error: iostream: No such file or directory cmake_bootstrap_1375_test.cxx: In function \'int main()\': cmake_bootstrap_1375_test.cxx:22: error: \'cout\' is not a member of \'std\' cmake_bootstrap_1375_test.cxx:22: error: \'endl\' is not a member of \'std\' Test failed to compile Try: g++ Line: g++ -DTEST2 cmake_bootstrap_1375_test.cxx -o cmake_bootstrap_1375_test ---------- file ----------------------- #if defined(TEST1) # include #else # include #endif class NeedCXX { public: NeedCXX() { this->Foo = 1; } int GetFoo() { return this->Foo; } private: int Foo; }; int main() { NeedCXX c; #ifdef TEST3 cout << c.GetFoo() << endl; #else std::cout << c.GetFoo() << std::endl; #endif return 0; } ------------------------------------------ In file included from /usr/include/c++/4.0.0/backward/iostream.h:31, from cmake_bootstrap_1375_test.cxx:5: /usr/include/c++/4.0.0/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 header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. In file included from cmake_bootstrap_1375_test.cxx:5: /usr/include/c++/4.0.0/backward/iostream.h:32:20: error: iostream: No such file or directory In file included from cmake_bootstrap_1375_test.cxx:5: /usr/include/c++/4.0.0/backward/iostream.h:34: error: \'std::iostream\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:35: error: \'std::ostream\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:36: error: \'std::istream\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:37: error: \'std::ios\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:38: error: \'std::streambuf\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:40: error: \'std::cout\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:41: error: \'std::cin\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:42: error: \'std::cerr\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:43: error: \'std::clog\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:51: error: \'std::ws\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:52: error: \'std::endl\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:53: error: \'std::ends\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:54: error: \'std::flush\' has not been declared cmake_bootstrap_1375_test.cxx: In function \'int main()\': cmake_bootstrap_1375_test.cxx:22: error: \'cout\' is not a member of \'std\' cmake_bootstrap_1375_test.cxx:22: error: \'endl\' is not a member of \'std\' Test failed to compile Try: g++ Line: g++ -DTEST3 cmake_bootstrap_1375_test.cxx -o cmake_bootstrap_1375_test ---------- file ----------------------- #if defined(TEST1) # include #else # include #endif class NeedCXX { public: NeedCXX() { this->Foo = 1; } int GetFoo() { return this->Foo; } private: int Foo; }; int main() { NeedCXX c; #ifdef TEST3 cout << c.GetFoo() << endl; #else std::cout << c.GetFoo() << std::endl; #endif return 0; } ------------------------------------------ In file included from /usr/include/c++/4.0.0/backward/iostream.h:31, from cmake_bootstrap_1375_test.cxx:5: /usr/include/c++/4.0.0/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 header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. In file included from cmake_bootstrap_1375_test.cxx:5: /usr/include/c++/4.0.0/backward/iostream.h:32:20: error: iostream: No such file or directory In file included from cmake_bootstrap_1375_test.cxx:5: /usr/include/c++/4.0.0/backward/iostream.h:34: error: \'std::iostream\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:35: error: \'std::ostream\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:36: error: \'std::istream\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:37: error: \'std::ios\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:38: error: \'std::streambuf\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:40: error: \'std::cout\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:41: error: \'std::cin\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:42: error: \'std::cerr\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:43: error: \'std::clog\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:51: error: \'std::ws\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:52: error: \'std::endl\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:53: error: \'std::ends\' has not been declared /usr/include/c++/4.0.0/backward/iostream.h:54: error: \'std::flush\' has not been declared cmake_bootstrap_1375_test.cxx: In function \'int main()\': cmake_bootstrap_1375_test.cxx:20: error: \'cout\' was not declared in this scope cmake_bootstrap_1375_test.cxx:20: error: \'endl\' was not declared in this scope Test failed to compile