-
Notifications
You must be signed in to change notification settings - Fork 94
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
[toolchains] allowlist_include_directories
does not work on non-absolute paths
#277
Comments
Memory is getting jogged... I think this broke when we migrated to bzlmod. |
It looks like this is rooted in issues where the relative paths for directories end up once in the sandbox:
Shortened: - e38ec8e746bf3d11672a536413f07932/external/+_repo_rules+clang-linux-x86_64/include/c++/v1/memory
+ e38ec8e746bf3d11672a536413f07932/execroot/_main/external/+_repo_rules+clang-linux-x86_64/include/c++/v1/memory |
Clang is resolving the |
Fun finding, you can force include paths to be relative with clang via
|
Would this issue also explain an error like this?
While trying to get stardoc working with Bazel 8, this error occurs when building protobuf, absl, or one of its dependencies. The |
A while back while rolling through Bazel updates I noticed changes in behaviors to
cxx_builtin_include_directories
(allowlist_include_directories
in rule-based toolchains) where it seemed to stop properly allowlisting toolchain builtin include paths.Inspired by bazelbuild/bazel#23615, I wanted to create a minimal reproducer, which is pretty easy:
This fails as seen below:
The text was updated successfully, but these errors were encountered: