question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CMake configuration step fails after workers update

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erysajcommented, Jun 4, 2020

I guess warning about existing build directory is spot on; silently cleaning the directory is likely to mask user’s mistake

0reactions
lukkacommented, Jun 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found