CMake configuration step fails after workers update
See original GitHub issueHi,
I’ve set up GitHub workflow with run-cmake and 5 days ago it did work fine.
Right now configuration step fails on macos-latest
runner with the following error:
CMake Error: The current CMakeCache.txt directory /Users/runner/runners/2.263.0/work/chessx/b/ninja/CMakeCache.txt is different than the directory /Users/runner/runners/2.262.1/work/chessx/b/ninja where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
25
CMake Error: The source "/Users/runner/runners/2.263.0/work/chessx/chessx/CMakeLists.txt" does not match the source "/Users/runner/runners/2.262.1/work/chessx/chessx/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
Judging from path mismatches it appears that worker infrastructure has been updated.
However where did CMakeCache.txt with old path come from?
Is there any caching going on in run-cmake
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
CMake configuration post-steps fail with "Error
First time running CMake after cleaning the build directory on remote VM, I get a timeout error (probably because it uses FetchContent to...
Read more >cmake not working after update do Big Sur - Usage
After updating to Big Sur, I am unable to compile anything with cmake. I re-installed the command line tools (xcode-select --install) and ...
Read more >2.5.9. Build Steps — Buildbot 1.5.0 documentation
The basic behavior for a BuildStep is to: run for a while, then stop; possibly invoke some RemoteCommands on the attached worker; possibly...
Read more >Configure CMake - Android Developers
A CMake build script is a plain text file that you must name CMakeLists.txt and includes commands CMake uses to build your C/C++...
Read more >CMAKE Build failing after newest commit to abseil/abseil-cpp
Today abseil/abseil-cpp@a766987 was merged and robotstxt build started to fail. Build is run in debian:buster-slim docker.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess warning about existing build directory is spot on; silently cleaning the directory is likely to mask user’s mistake
No problem, happy to help. The ‘dir’ step indeed revealed the presence of CMakeCache.txt file in the build directory pointed by the argument of CMake. I think the ‘run-cmake’ action could to delete the content of the build directory, or at least warn about the presence of an existing CMakeCache.txt.