@bazel_tools//tools/cpp:toolchain_utils.bzl does not contain the symbol use_cpp_toolchain required by cc_flag_supplier.bzl on a fresh build #133
Labels
P3
Accepted issue. Team is likely to fix this issue in the future, but no short-term promises are made.
Description of the problem / feature request:
My repository using
rules_cc
no longer builds correctly because it cannot find the symbolsuse_cpp_toolchain
in@bazel_tools//tools/cpp:toolchain_utils.bzl
. When removing the cache (rm -rf ~/.cache/bazel
) and rebuilding, the definition ofuse_cpp_toolchain
is indeed not in the file located at~/.cache/bazel/install/[hash]/embedded_tools/tools/cpp
. But when looking in the bazel repo attools/cpp/toolchain_utils.bzl
. There is a definition ofuse_cpp_toolchain
.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
If you remove
~/.cache/bazel
folder, clone mediapipe, and build any of the desktop examples, it should cause the problem (tested on 2 computers).What operating system are you running Bazel on?
Ubuntu 20.04 LTS
What's the output of
bazel info release
?5.0.0
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?
What Bazel options do you use to trigger the issue? What C++ toolchain do you use?
bazel clean --expunge
thenbazel build --verbose_failure -c opt --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 \ mediapipe/examples/desktop/face_detection:face_detection_gpu
Have you found anything relevant by searching the web?
I have found nothing relevant on these websites
Any other information, logs, or outputs that you want to share?
I have tried:
The text was updated successfully, but these errors were encountered: