You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to upgrade a project to use rules_android_ndk (from the packaged one) and am facing some issues:
$ bazel build :cpuinfo --cpu=arm64-v8a --crosstool_top=@androidndk//:toolchain --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
ERROR: /usr/local/google/home/zhin/.cache/bazel/_bazel_zhin/6c29bbe1edd74d1c184bd5850967e7c9/external/androidndk/BUILD:9:6: no such target '@androidndk//toolchains/llvm/prebuilt/linux-x86_64:cc_toolchain_suite': target 'cc_toolchain_suite' not declared in package 'toolchains/llvm/prebuilt/linux-x86_64' defined by /usr/local/google/home/zhin/.cache/bazel/_bazel_zhin/6c29bbe1edd74d1c184bd5850967e7c9/external/androidndk/toolchains/llvm/prebuilt/linux-x86_64/BUILD.bazel (Tip: use `query "@androidndk//toolchains/llvm/prebuilt/linux-x86_64:*"` to see all the targets in that package) and referenced by '@androidndk//:toolchain'
ERROR: Analysis of target '//:cpuinfo' failed; build aborted:
INFO: Elapsed time: 0.126s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
I've read a couple of related issues here:
cpuinfo is a cc_binary so i'm using --cpu and --crosstool_top instead of the --fat_apk_cpu and --android_crosstool_top based on Cross compilation issues #19 (comment)
I also tried passing --extra_toolchains=@androidndk//..., and after resolving something related to @rules_python:
INFO: Build option --extra_toolchains has changed, discarding analysis cache.
ERROR: /usr/local/google/home/zhin/src/cpuinfo/BUILD.bazel:176:11: While resolving toolchains for target //:cpuinfo: invalid registered toolchain '@androidndk//...': error loading package under directory '': error loading package '@androidndk//sources/third_party/googletest/test': Unable to find package for @rules_python//python:defs.bzl: The repository '@rules_python' could not be resolved: Repository '@rules_python' is not defined.
ERROR: Analysis of target '//:cpuinfo' failed; build aborted:
INFO: Elapsed time: 0.231s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 6 targets configured)
currently loading: @androidndk//sources/third_party/googletest/test ... (2 packages)
I'm trying to upgrade a project to use rules_android_ndk (from the packaged one) and am facing some issues:
I've read a couple of related issues here:
cpuinfo
is acc_binary
so i'm using--cpu
and--crosstool_top
instead of the--fat_apk_cpu
and--android_crosstool_top
based on Cross compilation issues #19 (comment)I also tried passing
--extra_toolchains=@androidndk//...
, and after resolving something related to@rules_python
:by adding to WORKSPACE:
I get the same error about
no such target '@androidndk//toolchains/llvm/prebuilt/linux-x86_64:cc_toolchain_suite'
.To reproduce:
The text was updated successfully, but these errors were encountered: