-
Notifications
You must be signed in to change notification settings - Fork 29
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
Tries to open nonexistent .d file in LLVM ASM build #80
Comments
Any thoughts on this one @evmar ? |
Sorry for not responding! Can you find the relevant snippet of the |
(Alternatively, you could attach your entire build.ninja file and I could take a look) |
Ping @tru :) |
I'll wait for someone else to repro, no prob. |
Hi! So sorry I didn't reply, it's been busy days for me. But I pulled latest from the n2 repo and reproduced it with llvm-project
Attached is the build.ninja file. |
@evmar did you see my reply on this one? I just retried it today and it still have the same problem. I can provide new files if you want. |
CMake can sometimes write depfile directives to build.ninja even when no depfile is generated. This was handled by "ninja" by just ignoring the missing file and going on with the build, see the code here: https://github.com/ninja-build/ninja/blob/master/src/build.cc#L894 This fixes evmar#80
I didn’t, thanks for pinging oops! |
It looks like the relevant snippet is
but I don't see the definition of |
@evmar i don't have access to a computer right now, but it just does depfile = $DEP_FILE for rule definition. I then compared how ninja handled this and stepped through it in the debugger and noticed that it just ignored the not found error. So I think this is the "right" fix. |
Some notes from random digging:
So I conclude treating missing files as empty is more or less right. |
CMake can sometimes write depfile directives to build.ninja even when no depfile is generated. This was handled by "ninja" by just ignoring the missing file and going on with the build, see the code here: https://github.com/ninja-build/ninja/blob/master/src/build.cc#L894 This fixes #80
Hi,
Another weird one (sorry!). After #78 was fixed I was able to build .cpp files from the LLVM repo on Windows, but I run into problems with ASM files, here is the error:
Here is the command invocation:
I am guessing that n2 tries to find the dependency file for the .asm file, but ml64 doesn't output (maybe no assemblers do?). Hopefully an easy fix.
The text was updated successfully, but these errors were encountered: