[CMake] 2.4.7 testsuite failures on Tru64 UNIX 5.1
Albert Chin
cmake at mlists.thewrittenword.com
Thu Sep 20 16:39:22 EDT 2007
On Thu, Sep 20, 2007 at 02:02:51PM -0500, Albert Chin wrote:
> Built cmake-2.4.7 on Tru64 UNIX 5.1 with the following:
> % cc -V
> Compaq C V6.5-303 (dtk) on Compaq Tru64 UNIX V5.1 (Rev. 732)
> Compiler Driver V6.5-302 (dtk) cc Driver
> % cxx -V
> Compaq C++ V6.5-042 for Compaq Tru64 UNIX V5.1 (Rev. 732)
> Compiler Driver V6.5-042 (cxx) cxx Driver
>
> % gtar zxf cmake-2.4.7.tar.gz
> % cd cmake-2.4.7
> % CC=cc CXX=cxx ./bootstrap -verbose
> % gmake VERBOSE=1
> % gmake test VERBOSE=1
> ...
> 26% tests passed, 49 tests failed out of 66
>
> Anyone else seeing this? I tried rerunning one of the tests in verbose
> mode:
> % bin/ctest --force-new-ctest-process --extra-verbose \
> --tests-regex CommandLineTest
> Add coverage exclude regular expressions.
> Add coverage exclude: XCode
> Add coverage exclude: Kdevelop
> Start processing tests
> Test project /opt/build/china/cmake-2.4.7
> Constructing a list of tests
> Done constructing a list of tests
> Changing directory into /opt/build/china/cmake-2.4.7/Source/kwsys
> Changing directory into /opt/build/china/cmake-2.4.7/Utilities/cmcurl
> Changing directory into /opt/build/china/cmake-2.4.7/Source
> 15/ 66 Testing CommandLineTest
> Test command: /opt/build/china/cmake-2.4.7/bin/ctest --build-and-test /opt/build/china/cmake-2.4.7/Tests/CommandLineTest /opt/build/china/cmake-2.4.7/Tests/CommandLineTest --build-two-config --build-generator Unix\ Makefiles --build-makeprogram /opt/fsw/bin/gmake --build-project CommandLineTest --test-command CommandLineTest
> Internal cmake changing into directory: /opt/build/china/cmake-2.4.7/Tests/CommandLineTest
> Error: cmake execution failed
> CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a simple test program.
> ...
>
> Any idea how to resolve this?
Ok, found the problem. cxx isn't in the list of C++ compilers. Patch
attached.
--
albert chin (china at thewrittenword.com)
-------------- next part --------------
Index: bootstrap
===================================================================
--- bootstrap.orig 2007-09-19 22:16:16.056287546 +0000
+++ bootstrap 2007-09-20 19:11:08.547019759 +0000
@@ -85,7 +85,7 @@
fi
CMAKE_KNOWN_C_COMPILERS="cc gcc xlc icc tcc"
-CMAKE_KNOWN_CXX_COMPILERS="aCC xlC CC g++ c++ icc como "
+CMAKE_KNOWN_CXX_COMPILERS="aCC xlC CC cxx g++ c++ icc como "
CMAKE_KNOWN_MAKE_PROCESSORS="gmake make"
CMAKE_PROBLEMATIC_FILES="\
Index: Modules/CMakeDetermineCXXCompiler.cmake
===================================================================
--- Modules/CMakeDetermineCXXCompiler.cmake.orig 2007-07-16 21:12:29.000000000 +0000
+++ Modules/CMakeDetermineCXXCompiler.cmake 2007-09-20 19:11:51.644461320 +0000
@@ -32,7 +32,7 @@
IF(CMAKE_CXX_COMPILER_INIT)
SET(CMAKE_CXX_COMPILER_LIST ${CMAKE_CXX_COMPILER_INIT})
ELSE(CMAKE_CXX_COMPILER_INIT)
- SET(CMAKE_CXX_COMPILER_LIST c++ g++ CC aCC cl bcc xlC)
+ SET(CMAKE_CXX_COMPILER_LIST c++ g++ CC aCC cxx cl bcc xlC)
ENDIF(CMAKE_CXX_COMPILER_INIT)
# Find the compiler.
More information about the CMake
mailing list