-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Description
the "cc-compiler-darwin_arm64" toolchain cannot be detected when install CommandLineTools and Xcode.app is not installed.
What operating system are you running Bazel on?
MacOS(M1)
What's the output of bazel info release?
release 4.1.0
use bazel (/opt/homebrew/Cellar/bazel/4.1.0... (9 files, 29.9MB))
bazel git:(master) bazel shutdown
Extracting Bazel installation...
bazel git:(master) bazel build //examples/cpp/...
Starting local Bazel server and connecting to it...
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:103:14: rbe_ubuntu1804_java11 not using checked in configs as detect_java_home was set to True
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:103:14: rbe_ubuntu1604_java8 not using checked in configs as detect_java_home was set to True
ERROR: /Volumes/work/bazelbuild/bazel/examples/cpp/BUILD:9:10: Target '//examples/cpp:hello-world' depends on toolchain '@local_config_cc//:cc-compiler-darwin_arm64', which cannot be found: no such target '@local_config_cc//:cc-compiler-darwin_arm64': target 'cc-compiler-darwin_arm64' not declared in package '' defined by /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/local_config_cc/BUILD'
ERROR: Analysis of target '//examples/cpp:hello-world' failed; build aborted: Analysis failed
INFO: Elapsed time: 44.611s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (18 packages loaded, 50 targets configured)
bazel git:(master) git sho
bazel git:(master) git pull
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint: git config pull.rebase false # merge (the default strategy)
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
remote: Enumerating objects: 103, done.
remote: Counting objects: 100% (103/103), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 72 (delta 49), reused 58 (delta 36), pack-reused 0
Unpacking objects: 100% (72/72), 9.63 KiB | 159.00 KiB/s, done.
From https://github.com/bazelbuild/bazel
5a647bb..024deb5 master -> origin/master
Updating 5a647bb..024deb5
Fast-forward
src/main/java/com/google/devtools/build/lib/analysis/BaseRuleClasses.java | 12 ++++++---
src/main/java/com/google/devtools/build/lib/analysis/RuleConfiguredTargetBuilder.java | 2 +-
src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java | 4 +--
.../com/google/devtools/build/lib/analysis/constraints/RuleContextConstraintSemantics.java | 2 +-
src/main/java/com/google/devtools/build/lib/analysis/starlark/FunctionTransitionUtil.java | 2 +-
.../java/com/google/devtools/build/lib/analysis/starlark/StarlarkRuleClassFunctions.java | 10 ++++++--
src/main/java/com/google/devtools/build/lib/analysis/test/InstrumentedFilesCollector.java | 2 +-
src/main/java/com/google/devtools/build/lib/packages/Attribute.java | 29 +++++++++++++++++++++
src/main/java/com/google/devtools/build/lib/packages/DependencyFilter.java | 7 +-----
src/main/java/com/google/devtools/build/lib/packages/RuleClass.java | 20 +++++++++++----
.../java/com/google/devtools/build/lib/analysis/StarlarkAttrTransitionProviderTest.java | 61 ---------------------------------------------
src/test/shell/integration/target_compatible_with_test.sh | 16 +++++++++++-
12 files changed, 83 insertions(+), 84 deletions(-)
bazel git:(master) bazel build //examples/cpp/...
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:103:14: rbe_ubuntu1804_java11 not using checked in configs as detect_java_home was set to True
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:103:14: rbe_ubuntu1604_java8 not using checked in configs as detect_java_home was set to True
ERROR: /Volumes/work/bazelbuild/bazel/examples/cpp/BUILD:9:10: Target '//examples/cpp:hello-world' depends on toolchain '@local_config_cc//:cc-compiler-darwin_arm64', which cannot be found: no such target '@local_config_cc//:cc-compiler-darwin_arm64': target 'cc-compiler-darwin_arm64' not declared in package '' defined by /private/var/tmp/_bazel_caesar/3dbd51b498342f1222f4220c3d8fbd0a/external/local_config_cc/BUILD'
ERROR: Analysis of target '//examples/cpp:hello-world' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.143s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 3 targets configured)
bazel git:(master)Metadata
Metadata
Assignees
Labels
No labels
