-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Adjust some build troubleshooting notes #4471
Conversation
|
||
Changes to packages installed on your system may not be noticed by `bazel`. This | ||
includes things such as changing LLVM versions, or installing libc++. Running | ||
`bazel clean` should force cached state to be rebuilt. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we leave a breadcrumb of the exact error here, so a search will turn it up as well?
Suggestion:
As one example, Bazel may raise "absolute path inclusion(s) found in rule" and "includes the following non-builtin files with absolute paths" as an error for libc++ includes if the location of the standard library header files changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm now tackling the libc++ issue down a different route, just validation during repo setup (also clang versions that we'd discussed in the past)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but maybe good to double check that with the precise & functional testing of libc++
now this has enough info in the troubleshooting from @danakj's perspective before merging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Co-authored-by: Chandler Carruth <[email protected]>
Came up due to libc++ install issues
We've discussed clang version verification, and adding that as long as I'm in here. The more significant bit is the libc++ check, which if it's not installed should fail like:
pre-commit runs bazel, and GitHub runners have an old clang by default (caught by the new check), so I'm installing here for a consistent version.