Bill Hoffman wrote:
Matthew Woehlke wrote:
A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?!

(* the test suite has an odd problem with GNU make 3.81, otherwise it was clean)

I also can't seem to find any output from the failed tests, which were:
[snip]

Ideas? The most obvious difference I can think of is that a different compiler is being used in this case ("Sun C 5.8 2005/10/13", also there is a(n ancient!) gcc 2.95.3 available) versus the box where CMake tested OK ("Sun C 5.7 2005/01/07", no gcc available).

If the machine is on a network, you can do:
make Experimental

This will send the results to the CMake dashboard. Then others will be able to see the full results. If not you can run ctest -V to see more verbose output.

ctest -V was monumentally helpful...

ld.so.1: executable: fatal: libstdc++.so.2.10.0: open failed: No such file or directory

...I bet that's the problem in most/all cases. Ok, turns out (well, I sort-of knew this before, but) g++ is broken, at least in that binaries it produces all have this problem. Which means I seem to have found a "bug"; tests that involve compiling C++ programs either a: ignore that I was using CC=cc CXX=CC to build cmake, or b: fail to notice that g++ produces broken executables. (I'm attaching the full output of 'VERBOSE=1 bin/ctest -V -I 63,63'.)

After forcing the issue with 'CC=cc CXX=cxx bin/ctest', the test suite passes.

On a different note: I thought the verbose output was always written to a file somewhere; is this not the case?

FYI test 47 is leaking output as follows:
47/ 67 Testing wrapping sh: QT_MOC_EXECUTABLE-NOTFOUND: not found
sh: QT_UIC_EXECUTABLE-NOTFOUND: not found
   Passed

Another note: running test 63 "broken" once made it almost impossible to clean things up and re-run with the right compilers... ultimately I did 'rm -rf Tests' and re-unpacked the tarball to fix it. Is it supposed to be that difficult? (I did try nuking just Tests/SubDir/CMakeFiles first, to no effect.)

Anyway, thanks for the quick help!

--
Matthew
"Stop that, it's silly!" -- Colonel
(Monty Python, "And Now For Something Completely Different")
 Add coverage exclude regular expressions.
 Add coverage exclude: XCode
 Add coverage exclude: Kdevelop
Start processing tests
Test project /usr/local/src/cmake-2.4.6
Constructing a list of tests
Done constructing a list of tests
Changing directory into /usr/local/src/cmake-2.4.6/Source/kwsys
Changing directory into /usr/local/src/cmake-2.4.6/Utilities/cmcurl
Changing directory into /usr/local/src/cmake-2.4.6/Source
 63/ 67 Testing SubDir
Test command: /usr/local/src/cmake-2.4.6/bin/ctest --build-and-test /usr/local/src/cmake-2.4.6/Tests/SubDir /usr/local/src/cmake-2.4.6/Tests/SubDir --build-exe-dir /usr/local/src/cmake-2.4.6/Tests/SubDir/Executable --build-generator Unix\ Makefiles --build-makeprogram /usr/gnu/bin/gmake --build-project SUBDIR --test-command test /usr/local/src/cmake-2.4.6/Tests/SubDir/ShouldBeHere /usr/local/src/cmake-2.4.6/Tests/SubDir/testfromsubdir.o
Internal cmCTest object used to run test.
Internal cmake changing into directory: /usr/local/src/cmake-2.4.6/Tests/SubDir
======== CMake output     ======
Re-run cmake no build system arguments
ThirdSubDir/pair+int.int1.c
ThirdSubDir/pair_p_int.int1.c
ThirdSubDir/testfromauxsubdir.c
ThirdSubDir/thirdone.c
Sources: ThirdSubDir/thirdone.c;ThirdSubDir/testfromauxsubdir.c;ThirdSubDir/pair_p_int.int1.c;ThirdSubDir/pair+int.int1.c;vcl_algorithm+vcl_pair+double.foo.c
======== End CMake output ======
/usr/local/src/cmake-2.4.6/bin/cmake -H/usr/local/src/cmake-2.4.6/Tests/SubDir -B/usr/local/src/cmake-2.4.6/Tests/SubDir --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_start /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 12
/usr/gnu/bin/gmake -f CMakeFiles/Makefile2 all
gmake[1]: Entering directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/gnu/bin/gmake -f CMakeFiles/TestFromSubdir.dir/build.make CMakeFiles/TestFromSubdir.dir/depend
gmake[2]: Entering directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
gmake[2]: Nothing to be done for `CMakeFiles/TestFromSubdir.dir/depend'.
gmake[2]: Leaving directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/gnu/bin/gmake -f CMakeFiles/TestFromSubdir.dir/build.make CMakeFiles/TestFromSubdir.dir/build
gmake[2]: Entering directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 1
[  8%] Building C object CMakeFiles/TestFromSubdir.dir/AnotherSubdir/testfromsubdir.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestFromSubdir.dir/AnotherSubdir/testfromsubdir.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/AnotherSubdir/testfromsubdir.c
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 2
[ 16%] Building C object CMakeFiles/TestFromSubdir.dir/AnotherSubdir/secondone.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestFromSubdir.dir/AnotherSubdir/secondone.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/AnotherSubdir/secondone.c
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 3
[ 25%] Building C object CMakeFiles/TestFromSubdir.dir/AnotherSubdir/pair+int.int.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestFromSubdir.dir/AnotherSubdir/pair+int.int.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/AnotherSubdir/pair+int.int.c
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 4
[ 33%] Building C object CMakeFiles/TestFromSubdir.dir/vcl_algorithm+vcl_pair+double.foo.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestFromSubdir.dir/vcl_algorithm+vcl_pair+double.foo.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/vcl_algorithm+vcl_pair+double.foo.c
Linking C executable TestFromSubdir
/usr/local/src/cmake-2.4.6/bin/cmake -P CMakeFiles/TestFromSubdir.dir/cmake_clean_target.cmake
/opt/sfw/bin/gcc     -fPIC "CMakeFiles/TestFromSubdir.dir/AnotherSubdir/testfromsubdir.o" "CMakeFiles/TestFromSubdir.dir/AnotherSubdir/secondone.o" "CMakeFiles/TestFromSubdir.dir/AnotherSubdir/pair+int.int.o" "CMakeFiles/TestFromSubdir.dir/vcl_algorithm+vcl_pair+double.foo.o"   -o TestFromSubdir
gmake[2]: Leaving directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles  1 2 3 4
[ 33%] Built target TestFromSubdir
/usr/gnu/bin/gmake -f CMakeFiles/TestWithAuxSourceDir.dir/build.make CMakeFiles/TestWithAuxSourceDir.dir/depend
gmake[2]: Entering directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
gmake[2]: Nothing to be done for `CMakeFiles/TestWithAuxSourceDir.dir/depend'.
gmake[2]: Leaving directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/gnu/bin/gmake -f CMakeFiles/TestWithAuxSourceDir.dir/build.make CMakeFiles/TestWithAuxSourceDir.dir/build
gmake[2]: Entering directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 5
[ 41%] Building C object CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/thirdone.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/thirdone.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/ThirdSubDir/thirdone.c
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 6
[ 50%] Building C object CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/testfromauxsubdir.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/testfromauxsubdir.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/ThirdSubDir/testfromauxsubdir.c
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 7
[ 58%] Building C object CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/pair_p_int.int1.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/pair_p_int.int1.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/ThirdSubDir/pair_p_int.int1.c
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 8
[ 66%] Building C object CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/pair+int.int1.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/pair+int.int1.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/ThirdSubDir/pair+int.int1.c
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 9
[ 75%] Building C object CMakeFiles/TestWithAuxSourceDir.dir/vcl_algorithm+vcl_pair+double.foo.o
/opt/sfw/bin/gcc   -o CMakeFiles/TestWithAuxSourceDir.dir/vcl_algorithm+vcl_pair+double.foo.o   -c /usr/local/src/cmake-2.4.6/Tests/SubDir/vcl_algorithm+vcl_pair+double.foo.c
Linking C executable TestWithAuxSourceDir
/usr/local/src/cmake-2.4.6/bin/cmake -P CMakeFiles/TestWithAuxSourceDir.dir/cmake_clean_target.cmake
/opt/sfw/bin/gcc     -fPIC "CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/thirdone.o" "CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/testfromauxsubdir.o" "CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/pair_p_int.int1.o" "CMakeFiles/TestWithAuxSourceDir.dir/ThirdSubDir/pair+int.int1.o" "CMakeFiles/TestWithAuxSourceDir.dir/vcl_algorithm+vcl_pair+double.foo.o"   -o TestWithAuxSourceDir
gmake[2]: Leaving directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles  5 6 7 8 9
[ 75%] Built target TestWithAuxSourceDir
/usr/gnu/bin/gmake -f Executable/CMakeFiles/test.dir/build.make Executable/CMakeFiles/test.dir/depend
gmake[2]: Entering directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
gmake[2]: Nothing to be done for `Executable/CMakeFiles/test.dir/depend'.
gmake[2]: Leaving directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/gnu/bin/gmake -f Executable/CMakeFiles/test.dir/build.make Executable/CMakeFiles/test.dir/build
gmake[2]: Entering directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 10
[ 83%] Building CXX object Executable/CMakeFiles/test.dir/test.o
/opt/sfw/bin/g++    -o Executable/CMakeFiles/test.dir/test.o -c /usr/local/src/cmake-2.4.6/Tests/SubDir/Executable/test.cxx
Linking CXX executable test
cd /usr/local/src/cmake-2.4.6/Tests/SubDir/Executable && /usr/local/src/cmake-2.4.6/bin/cmake -P CMakeFiles/test.dir/cmake_clean_target.cmake
cd /usr/local/src/cmake-2.4.6/Tests/SubDir/Executable && /opt/sfw/bin/g++      -fPIC "CMakeFiles/test.dir/test.o"   -o test
ld: warning: symbol `clog' has differing types:
        (file /opt/sfw/gcc-2/lib/gcc-lib/i386-pc-solaris2.10/2.95.3/libstdc++.so type=OBJT; file /usr/lib/libm.so type=FUNC);
        /opt/sfw/gcc-2/lib/gcc-lib/i386-pc-solaris2.10/2.95.3/libstdc++.so definition taken
gmake[2]: Leaving directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_report /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles  10
[ 83%] Built target test
gmake[1]: Leaving directory `/usr/local/src/cmake-2.4.6/Tests/SubDir'
/usr/local/src/cmake-2.4.6/bin/cmake -E cmake_progress_start /usr/local/src/cmake-2.4.6/Tests/SubDir/CMakeFiles 0
Running test executable: /usr/local/src/cmake-2.4.6/Tests/SubDir/Executable/test /usr/local/src/cmake-2.4.6/Tests/SubDir/ShouldBeHere /usr/local/src/cmake-2.4.6/Tests/SubDir/testfromsubdir.o
Failed to run test command: /usr/local/src/cmake-2.4.6/Tests/SubDir/Executable/test
ld.so.1: test: fatal: libstdc++.so.2.10.0: open failed: No such file or directory

*** Exception executing: Child killed

***Failed
Changing directory into /usr/local/src/cmake-2.4.6/Tests/CMakeTests

0% tests passed, 1 tests failed out of 1

The following tests FAILED:
         63 - SubDir (Failed)
Errors while running CTest
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to