'Bazelisk build does not contain a toolchain for cpu error
I am trying to do a bazel build
bazelisk build -c opt --strip=ALWAYS --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --fat_apk_cpu=arm64-v8a,armeabi-v7a mediapipe/examples/android/src/java/com/google/mediapipe/apps/alta:mediapipe_object_detection.aar
And I got the following error
external/local_config_cc/BUILD:47:19: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'arm64-v8a'
ERROR: Analysis of target '//mediapipe/examples/android/src/java/com/google/mediapipe/apps/alta:mediapipe_object_detection.aar' failed; build aborted: Analysis of target '@local_config_cc//:toolchain' failed
I did use fat_apk_cpu option, and I made sure the android_sdk_repository is configured in WORKSPACE
Seeking some suggestions of what other things could go wrong.
Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
