-
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
Bazel built at HEAD cannot compile Bazel on OS X #7397
Comments
More relevant bugs/links:
Seems like if #5127 is still "working as intended" then some of the workarounds from rules_haskell or rules_rust need to be incorporated into Bazel. |
@philwo This also applies to 0.23.0 RC1:
now at
|
FWIW I just built Bazel on HEAD with 0.22 on 10.14.2 and the build succeeded. |
@jin's comment makes me realize my issue may be unclear. If B22 is bazel 0.22.0 release, BH is the bazel binary produced by Also, |
Hi Dan, |
And make sure that the target_libc macos string literal is kept in sync between the legacy read-from-CROSSTOOL and the new all-is-Starlark behavior. Issue #7397 RELNOTES: None. PiperOrigin-RevId: 233716569
I tried to repro this, but can't, because my build with Xcode CLT as my system toolchain fails way earlier: $ sudo xcode-select -s /Library/Developer/CommandLineTools
$ USE_BAZEL_VERSION=0.23.0rc1 bazel clean --expunge
INFO: Invocation ID: 82c242dc-944c-486f-b426-e2bae36f3ad5
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Starting clean.
$ USE_BAZEL_VERSION=0.23.0rc1 bazel build //src:bazel
INFO: Invocation ID: 78143220-8012-4d5e-858a-9b316da60af7
Starting local Bazel server and connecting to it...
ERROR: /private/var/tmp/_bazel_but_philwo/7a01905b4627ca044e5e3f5ad5b14d26/external/local_config_cc/BUILD:55:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-ios_armv7: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, try: "bazel clean --expunge" to re-run Xcode configuration
ERROR: Analysis of target '//src:bazel' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-ios_armv7' failed; build aborted
INFO: Elapsed time: 5.370s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (158 packages loaded, 1912 targets configured)
currently loading: third_party/aws-sdk-auth-lite ... (3 packages) I get the same error with Bazel 0.22.0. When I switch back to full Xcode via |
@dhalperi Can you give us some more information about your system? Maybe the output of these commands helps: xcodebuild -version
xcode-select -p
clang -v |
I have a similar setup (as do many coworkers). XCode is heavy and there's no reason to install it for people who don't use it as their editing environment -- if I only want to build C/C++ code, that shouldn't require an IDE. |
I installed Xcode using the "standard" path for CLI homebrew users. |
Confirmed fixed by 6ca7763 |
Thanks for testing! I'll cherry pick this into 0.23.0 then. |
And make sure that the target_libc macos string literal is kept in sync between the legacy read-from-CROSSTOOL and the new all-is-Starlark behavior. Issue #7397 RELNOTES: None. PiperOrigin-RevId: 233716569
Closing this as we have a fix, thanks all for looking into this. |
And make sure that the target_libc macos string literal is kept in sync between the legacy read-from-CROSSTOOL and the new all-is-Starlark behavior. Issue #7397 RELNOTES: None. PiperOrigin-RevId: 233716569
And make sure that the target_libc macos string literal is kept in sync between the legacy read-from-CROSSTOOL and the new all-is-Starlark behavior. Issue #7397 RELNOTES: None. PiperOrigin-RevId: 233716569
And make sure that the target_libc macos string literal is kept in sync between the legacy read-from-CROSSTOOL and the new all-is-Starlark behavior. Issue #7397 RELNOTES: None. PiperOrigin-RevId: 233716569
And make sure that the target_libc macos string literal is kept in sync between the legacy read-from-CROSSTOOL and the new all-is-Starlark behavior. Issue #7397 RELNOTES: None. PiperOrigin-RevId: 233716569
Description of the problem / feature request:
Bazel head does not compile on OS X
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
macOS 10.14.3
What's the output of
bazel info release
?INFO: Invocation ID: 155ccf1d-a650-4feb-98d8-7764f3dbe57b
development version
It's built and attempted-to-be-rebuilt at
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?[email protected]:bazelbuild/bazel.git
163e61f
163e61f
Have you found anything relevant by searching the web?
Some old bugs look vaguely related but also look like fixes were internal.
The text was updated successfully, but these errors were encountered: