-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Cached .d files contain absolute paths to system headers #7772
Comments
Here's a possible fix for this issue #7783 |
see also #7702 |
Thanks for the link! I don't think that the path to the same version of Xcode on 2 machines being different really warrants being "sufficiently different" so I feel like we should still find a way to share the cache between them |
For future reference about the resolution, these files still contain the paths, but when bazel maps them back if they're prefixed with |
Note this also causes an issue during local development if you change Xcode paths without doing a |
@keith Do you mind pointing out where Bazel maps those header paths? |
bazel/tools/cpp/osx_cc_configure.bzl Line 150 in e3e46e3
|
Not sure if I'm understanding it correctly, but does it mean with |
I think things have changed a bit since I filed this issue so I may have been confused on your question. AFAIUI at this point there are 2 header related things that might affect this:
|
When building a
cc_library
on macOS using a remote cache, you can get build failures if the machines have different paths to their Xcode.app. The error ends up looking something like this:What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
You can see that the
.d
file contains host specific paths with:And then opening
bazel-bin/examples/cpp/_objs/hello-lib/hello-lib.d
. Here you can see paths like:But there's no real guarantee that the Xcode.app being used is at this same file path.
What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?release 0.23.1
Have you found anything relevant by searching the web?
This appears to be related to this issue #1000 and the other issues linked to it.
I was hoping to work around this by disabling the
.d
file generation, there was an issue with that I filed here #7769The text was updated successfully, but these errors were encountered: