BAZEL_USE_CPP_ONLY_TOOLCHAIN doesn't work without Xcode / Xcode CLT installed. #134
Labels
P3
Accepted issue. Team is likely to fix this issue in the future, but no short-term promises are made.
Description of the bug:
Equivalent to Bazel issue: bazelbuild/bazel#16009
BAZEL_USE_CPP_ONLY_TOOLCHAIN
on Darwin is meant to disable the Xcode toolchain resolution and use the common Unix toolchain resolution based on what binaries are available on thePATH
and set with environment variables. However it will still hardcode several apple tools, like/usr/bin/libtool
,/usr/bin/gcc
and/usr/bin/install_name_tool
(incc_wrapper.sh
).What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Expected output: successful build using the binaries on your
PATH
.Actual output:
Which operating system are you running Bazel on?
macOS 12.5 21G72
What is the output of
bazel info release
?release 5.2.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?What version of rules_cc do you use? Can you paste the workspace rule used to fetch rules_cc? What other relevant dependencies does your project have?
From: https://sourcegraph.com/github.com/tensorflow/runtime@021b5f0d3daea2d1666599d7d9c471a426c35f65/-/blob/third_party/rules_cuda/cuda/dependencies.bzl?L35-44
What Bazel options do you use to trigger the issue? What C++ toolchain do you use?
See repro.
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: