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
Checking for GNU toolchain
Try: gcc
Line: gcc cmake_bootstrap_22794_test.c -o cmake_bootstrap_22794_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
Test succeded
Try: g++
Line: g++ cmake_bootstrap_22794_test.cpp -o cmake_bootstrap_22794_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
Test succeded
Try: gcc
Line: gcc cmake_bootstrap_22794_test.c -o cmake_bootstrap_22794_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#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_22794_test.cxx -o cmake_bootstrap_22794_test
---------- file -----------------------
#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#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_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
Try: g++
Line: g++ -DTEST2 cmake_bootstrap_22794_test.cxx -o cmake_bootstrap_22794_test
---------- file -----------------------
#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#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_22794_test.cxx:5:23: error: iostream.h: 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
Try: g++
Line: g++ -DTEST3 cmake_bootstrap_22794_test.cxx -o cmake_bootstrap_22794_test
---------- file -----------------------
#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#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_22794_test.cxx:5:23: error: iostream.h: No such file or directory
cmake_bootstrap_22794_test.cxx: In function âint main()â:
cmake_bootstrap_22794_test.cxx:20: error: âcoutâ was not declared in this scope
cmake_bootstrap_22794_test.cxx:20: error: âendlâ was not declared in this scope
Test failed to compile
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake