bazel: 4.1.0 toolchain failure with bazelisk 1.3.9 on Mac OS X 10.15.7
Description of the problem:
Observing the following toolchain error with the latest release of Bazelisk (1.3.9) that includes Bazel (4.1.0):
Starting local Bazel server and connecting to it...
...
Analyzing: 72 targets (214 packages loaded, 5638 targets configured)
ERROR: /private/var/tmp/_bazel_runner/8457af28b7e270ce29a11930611f114f/external/local_config_cc/BUILD:85:24: in cc_toolchain_config rule @local_config_cc//:ios_i386:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_runner/8457af28b7e270ce29a11930611f114f/external/local_config_cc/cc_toolchain_config.bzl", line 2049, column 65, in _impl
flags = _deterministic_libtool_flags(ctx) + [
File "/private/var/tmp/_bazel_runner/8457af28b7e270ce29a11930611f114f/external/local_config_cc/cc_toolchain_config.bzl", line 53, column 38, in _deterministic_libtool_flags
if _can_use_deterministic_libtool(ctx):
File "/private/var/tmp/_bazel_runner/8457af28b7e270ce29a11930611f114f/external/local_config_cc/cc_toolchain_config.bzl", line 45, column 25, in _can_use_deterministic_libtool
if _compare_versions(xcode_version, _SUPPORTS_DETERMINISTIC_MODE) >= 0:
File "/private/var/tmp/_bazel_runner/8457af28b7e270ce29a11930611f114f/external/local_config_cc/cc_toolchain_config.bzl", line 38, column 15, in _compare_versions
return dv1.compare_to(apple_common.dotted_version(v2))
Error: 'NoneType' value has no field or method 'compare_to'
Analysis of target '@local_config_cc//:ios_i386' failed
INFO: Elapsed time: 145.535s
INFO: 0 processes.
What operating system are you running Bazel on?
Mac OS X 10.15.7
What’s the output of bazel info release
?
Since this is running remotely, the only information I have is:
https://releases.bazel.build/4.1.0/release/bazel-4.1.0-darwin-x86_64
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 20 (15 by maintainers)
After some debugging, I was able to get it working. The following commands fixed my issue:
Before, my xcode location was:
I’m still seeing this issue