View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013237 | CMake | CMake | public | 2012-05-20 09:57 | 2016-06-10 14:31 | ||||
Reporter | Verbus Counts | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | X86 AMD | OS | Linux Suse | OS Version | 12.1 | ||||
Product Version | CMake 2.8.8 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013237: 25 - FindPackageTest (Failed) | ||||||||
Description | 99% tests passed, 1 tests failed out of 221 Label Time Summary: Label1 = 0.02 sec Label2 = 0.02 sec Total Test time (real) = 374.61 sec The following tests FAILED: 25 - FindPackageTest (Failed) Errors while running CTest make: *** [test] Error 8 verbus@linux-yu5w:~/Downloads/cmake-2.8.8> Verbus Counts verbus@gmail.com | ||||||||
Steps To Reproduce | make test | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0029512) Eric NOULARD (developer) 2012-05-20 10:47 |
Hi Verbus, This may be hard to reproduce without more detail concerning the failure. Moreover this particular test does not fail on any dashboard: http://open.cdash.org/testSummary.php?project=1&name=FindPackageTest&date=2012-05-20 [^] So the failure may be system specific. Could you give us more informations about the failure using: ctest -VV -R FindPackageTest an even better approach would be to setup a CMake dashboard submission for Open SuSE, I think there is currently no such submission. more info here: http://www.cmake.org/cmake/resources/testing.html [^] |
(0029513) Verbus Counts (reporter) 2012-05-20 14:20 |
Eric, verbus@linux-yu5w:~/Downloads/cmake-2.8.8> ctest -VV -R FindPackageTest UpdateCTestConfiguration from :/home/verbus/Downloads/cmake-2.8.8/DartConfiguration.tcl Parse Config file:/home/verbus/Downloads/cmake-2.8.8/DartConfiguration.tcl Add coverage exclude regular expressions. Add coverage exclude: XCode Add coverage exclude: Kdevelop Add coverage exclude: /Source/(cm|kw)sys/ Add coverage exclude: /CMakeFiles/CMakeTmp/ Add coverage exclude: [A-Za-z]./[Qq]t/qt-.+-opensource-src UpdateCTestConfiguration from :/home/verbus/Downloads/cmake-2.8.8/DartConfiguration.tcl Parse Config file:/home/verbus/Downloads/cmake-2.8.8/DartConfiguration.tcl Test project /home/verbus/Downloads/cmake-2.8.8 Constructing a list of tests Guessing configuration NoConfig Done constructing a list of tests Checking test dependency graph... Checking test dependency graph end test 25 Start 25: FindPackageTest 25: Test command: /home/verbus/Downloads/cmake-2.8.8/bin/ctest "--build-and-test" "/home/verbus/Downloads/cmake-2.8.8/Tests/FindPackageTest" "/home/verbus/Downloads/cmake-2.8.8/Tests/FindPackageTest" "--build-two-config" "--build-generator" "Unix Makefiles" "--build-makeprogram" "/usr/bin/gmake" "--build-project" "FindPackageTest" "--test-command" "FindPackageTest" 25: Test timeout computed to be: 1500 25: Internal cmake changing into directory: /home/verbus/Downloads/cmake-2.8.8/Tests/FindPackageTest 25: Error: cmake execution failed 25: CMake Warning at CMakeLists.txt:129 (FIND_PACKAGE): 25: Found package configuration file: 25: 25: /home/verbus/Downloads/cmake-2.8.8/Tests/FindPackageTest/cmake/SetFoundFALSEConfig.cmake 25: 25: but it set SetFoundFALSE_FOUND to FALSE so package "SetFoundFALSE" is 25: considered to be NOT FOUND. 25: 25: 25: CMake Error at CMakeLists.txt:224 (MESSAGE): 25: Package EnvB should have been [EnvB_DIR-NOTFOUND] but was 25: [/home/verbus/Downloads/cmake-2.8.8/Tests/FindPackageTest/lib/zot-3.1] 25: 25: 25: CMake Error at CMakeLists.txt:229 (MESSAGE): 25: Package EnvB should not have been found, but EnvB_FOUND is set to "1" 25: 25: 25: Preparing export(PACKAGE) test project 25: Searching for export(PACKAGE) test project 25: Configuring 25: Configuring incomplete, errors occurred! 25: 1/1 Test 0000025: FindPackageTest ..................***Failed 0.59 sec 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 0.86 sec The following tests FAILED: 25 - FindPackageTest (Failed) Errors while running CTest |
(0029518) Eric NOULARD (developer) 2012-05-21 09:20 |
This dashboard exhibit error on the same test http://open.cdash.org/testDetails.php?test=146850482&build=2296133 [^] even if it looks unrelated to the current one. |
(0029566) Verbus Counts (reporter) 2012-05-25 11:54 |
Eric, Any updates? Verbus |
(0030427) David Cole (manager) 2012-08-11 21:42 |
Sending old, never assigned issues to the backlog. (The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0036334) JVD (reporter) 2014-07-10 07:05 edited on: 2014-07-10 07:08 |
I'm seeing the same issue when building cmake-3.0.0 from tarball on RHEL-6.4 x86_64 with gcc-4.4.7-4 : $ ( export PATH="${PWD}/bin:$PATH"; unset DISPLAY; "${PWD}/bin/ctest" "--build-and-test" "${PWD}/Tests/FindPackageTest" \ > "${PWD}/Tests/FindPackageTest" "--build-two-config" "--build-generator" "Unix Makefiles" "--build-project" \ > "FindPackageTest" "--build-options" "-DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake" "--test-command" "FindPackageTest" ; \ > ) Internal cmake changing into directory: ${CMAKE_SRC_DIR}/Tests/FindPackageTest Error: cmake execution failed CMake Warning at CMakeLists.txt:139 (find_package): Found package configuration file: ${CMAKE_SRC_DIR}/Tests/FindPackageTest/cmake/SetFoundFALSEConfig.cmake but it set SetFoundFALSE_FOUND to FALSE so package "SetFoundFALSE" is considered to be NOT FOUND. CMake Warning at ${CMAKE_SRC_DIR}/Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config.cmake:2 (message): CMAKE_IGNORE_PATH failed to ignore this file! Call Stack (most recent call first): CMakeLists.txt:182 (find_package) CMake Error at CMakeLists.txt:234 (message): Package EnvB should have been [EnvB_DIR-NOTFOUND] but was [${CMAKE_SRC_DIR}/Tests/FindPackageTest/lib/cmake/zot-3.1] CMake Error at CMakeLists.txt:239 (message): Package EnvB should not have been found, but EnvB_FOUND is set to "1" Preparing export(PACKAGE) test project Searching for export(PACKAGE) test project Configuring Configuring incomplete, errors occurred! See also "${CMAKE_SRC_DIR}/Tests/FindPackageTest/CMakeFiles/CMakeOutput.log". (full path to cmake-3.0.0 changed to ${CMAKE_SRC_DIR} . This is the only test case that fails . Any ideas how to fix ? Thanks in advance! |
(0036344) JVD (reporter) 2014-07-10 13:57 |
Aha ! I found the root cause of the problem. The test always fails if '.' is in the PATH environment variable, and always succeeds if it is not. The tests that were failing in Tests/FindPackageTest/CMakeLists.txt: @line 224: set(EnvB_MISSING "EnvB_DIR-NOTFOUND") @lines 233-243: if(NOT "${${p}_DIR}" STREQUAL "${${p}_MISSING}") message(SEND_ERROR "Package ${p} should have been [${${p}_MISSING}] but " "was [${${p}_DIR}]") endif() if(${p}_FOUND) message(SEND_ERROR "Package ${p} should not have been found, but ${p}_FOUND is set to " "\"${${p}_FOUND}\"") endif() In fact, what appears to be happening, when running the ctest command under 'strace -f -e trace=execve', is that only if '.' is not in $PATH, is the 'FindPackageTest' target actually built and run; if '.' is in PATH, the 'FindPackageTest' target is neither built nor run. I guess the moral of the story is "don't use cmake with ':.' in $PATH". Like much about CMAKE, I find this rather incomprehensible. |
(0036513) Rolf Eike Beer (developer) 2014-07-31 05:01 |
I can't reproduce it here (openSUSE 12.3). What I did was mkdir clean-build cd clean-build export PATH=.:$PATH cmake -D CMAKE_BUILD_TYPE=Debug /some/where/cmake make ctest -V -R FindPackageTest Using current CMake master (202b7d12eb0609f1a2dd7f587c0ed17d45bec1c5) this worked fine. |
(0036516) JVD (reporter) 2014-07-31 05:39 |
This is still 100% reproducible - in cmake-3.0.0 build directory, after build,do: $ export PATH=/bin:/usr/bin:. $ bin/ctest -V -R FindPackageTest ... 26: CMake Warning at ${somewhere}/cmake-3.0.0/Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config.cmake:2 (message): 26: CMAKE_IGNORE_PATH failed to ignore this file! 26: Call Stack (most recent call first): 26: CMakeLists.txt:182 (find_package) 26: 26: 26: CMake Error at CMakeLists.txt:234 (message): 26: Package EnvB should have been [EnvB_DIR-NOTFOUND] but was 26: [${somewhere}/cmake-3.0.0/Tests/FindPackageTest/lib/cmake/zot-3.1] ... 1/1 Test 0000026: FindPackageTest ..................***Failed 0.93 sec 0% tests passed, 1 tests failed out of 1 --- But without the trailing ':.' in $PATH, it succeeds: $ export PATH=/bin:/usr/bin $ bin/ctest -V -R FindPackageTest ... 26: Running test command: "${somewhere}/cmake-3.0.0/Tests/FindPackageTest/FindPackageTest" 26: 1/1 Test 0000026: FindPackageTest .................. Passed 1.15 sec The following tests passed: FindPackageTest 100% tests passed, 0 tests failed out of 1 --- I think your test: $ ctest -V -R FindPackageTest would have been picking up 'ctest' from your $PATH, which probably did not include the ctest just built in ./bin/ctest. |
(0036518) Rolf Eike Beer (developer) 2014-07-31 06:05 |
Nope, I can neither reproduce this with 3.0.0 or current master, regardless of which ctest I call. The system CMake is 3.0.0 anyway, so it should have that error also. |
(0042051) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-05-20 09:57 | Verbus Counts | New Issue | |
2012-05-20 10:47 | Eric NOULARD | Note Added: 0029512 | |
2012-05-20 14:20 | Verbus Counts | Note Added: 0029513 | |
2012-05-21 09:20 | Eric NOULARD | Note Added: 0029518 | |
2012-05-25 11:54 | Verbus Counts | Note Added: 0029566 | |
2012-08-11 21:42 | David Cole | Status | new => backlog |
2012-08-11 21:42 | David Cole | Note Added: 0030427 | |
2014-07-10 07:05 | JVD | Note Added: 0036334 | |
2014-07-10 07:08 | JVD | Note Edited: 0036334 | |
2014-07-10 13:57 | JVD | Note Added: 0036344 | |
2014-07-31 05:01 | Rolf Eike Beer | Note Added: 0036513 | |
2014-07-31 05:39 | JVD | Note Added: 0036516 | |
2014-07-31 06:05 | Rolf Eike Beer | Note Added: 0036518 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0042051 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |