-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed recompaction: Permission denied #2493
Comments
Today I just realized every time I get the same error at first try and when I just try to build the intermediates again WITHOUT DOING ANYTHING it just works, yeah that's all It's just works. I made a video: https://www.youtube.com/watch?v=weA4eTKaESU |
Let me get this straight: your
The On Windows, it is not possible to delete a file if another process still has a handle on it (it is possible on Posix). I am curious to know why you would need to run CMake at build time, since Ninja already supports re-running the generator (CMake here) when needed. But what you see is not a Ninja issue, rather that neither Ninja nor CMake are designed to support this use case. |
@digit-google Hi, thanks for reply. I made profile guided optimization with clang with The solution was just write this file(GLOB_RECURSE MYFILE LIST_DIRECTORIES true CONFIGURE_DEPENDS ${CMAKE_BINARY_DIR}/bin/*) However, there's no mention of this solution anywhere on the internet, nor did AI help. I had to read the documentation. I should open a thread in the CMake forum and mentioned this solution. Let's not close this issue as it could be helpful in the future. |
I only get this error failed recompaction: Permission denied if I want to force running cmake twice. Here's my minimal cmake file and the minimal project itself
untitled.zip
ninja's output with -v note that, with MinGW and native ninja on windows, it's same.
The text was updated successfully, but these errors were encountered: