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
stdout: stderr: xcodebuild: error: SDK "macosx10.10" cannot be located. - mediapipe hot 1
SSL certification error while downloading dependency libraries via Bazel hot 1
unable to run multi-hand tracking on video - mediapipe hot 1
Bazel build failed in Android Studio hot 1
Memory leak of facedetectioncpu example on Android (RK3399 specific) - mediapipe 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
Is there a way to change color in real time on the hair segmentation android? - mediapipe hot 1
Running error hot 1
Hello World failed build on Raspberry Pi - mediapipe hot 1
Is there any way to write front end in Flutter? - mediapipe hot 1
Github User Rank List