Ask questionsBuild of Hello World Failed on Darwin (MacOS)

$ bazel build -c opt mediapipe/examples/desktop/hello_world:hello_world Starting local Bazel server and connecting to it... DEBUG: Rule 'build_bazel_rules_apple' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "6c9fcae7a3597aabd43f28be89466afe0eab18de", shallow_since = "1565379803 -0700" and dropping ["tag"] DEBUG: Call stack for the definition of repository 'build_bazel_rules_apple' which is a git_repository (rule definition at /private/var/tmp/_bazel_faucherd/3a6923036fc899f82029b0fb9d70b802/external/bazel_tools/tools/build_defs/repo/git.bzl:181:18):

  • /Users/faucherd/Documents/Personal/Machine_Learning/Google/mediapipe/WORKSPACE:251:1 ERROR: /private/var/tmp/_bazel_faucherd/3a6923036fc899f82029b0fb9d70b802/external/local_config_cc/BUILD:46:1: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'darwin_x86_64' ERROR: Analysis of target '//mediapipe/examples/desktop/hello_world:hello_world' failed; build aborted: Analysis of target '@local_config_cc//:toolchain' failed; build aborted INFO: Elapsed time: 58.077s INFO: 0 processes. FAILED: Build did NOT complete successfully (53 packages loaded, 1164 targets configured)

Answer questions jiuqiant

I am wondering if you need to uninstall and install bazel again after your get Xcode and its command line tools. Also, please do bazel clean --expunge to make sure you have a clean start.

It seems like the error message is truncated, I would like to see more error message if possible. Moreover, can you report the version number of your OS, Bazel, clang, and XCode?

Here are some links that may help:


Related questions

Get hand_tracking_cpu source code to extract detected hand metadata hot 2
SSL certification error while downloading dependency libraries via Bazel hot 1
Bazel build failed in Android Studio hot 1
Fail to pull in MediaPipe's external dependencies due to unstable internet connection hot 1
at<clinit>( hot 1
Hand Tracking Desktop GPU Build Error hot 1
ERROR: An error occurred during the fetch of repository 'bazel_skylib' hot 1
Bazel build failed to fetch Maven dependency hot 1
Running error hot 1
Hello World failed build on Raspberry Pi - mediapipe hot 1
Accessing landmarks, tracking multiple hands, and enabling depth on desktop hot 1
Unable to load the hand detection model hot 1
build aar failed hot 1
Error in building TensorFlow Object Detection Demo hot 1
Bazel build failed in Android Studio hot 1
Github User Rank List