Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build --config=android_arm64 #140

Open
g-deSousa opened this issue Apr 12, 2024 · 0 comments
Open

cannot build --config=android_arm64 #140

g-deSousa opened this issue Apr 12, 2024 · 0 comments

Comments

@g-deSousa
Copy link

Hello,

I was able to build the linux version using the instructions on the README.md but the Android build keeps failing with the following error:

(main)$ bazel build -c opt lyra/cli_example:decoder_main --config=android_arm64
WARNING: Option 'strict_java_deps' is deprecated: Use --experimental_strict_java_deps instead
DEBUG: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'zlib' because it already exists.
DEBUG: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'fft2d' because it already exists.
DEBUG: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'rules_python' because it already exists.
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/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: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/local_config_cc/BUILD:47:19: Analysis of target '@local_config_cc//:toolchain' failed
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/flags/BUILD.bazel:286:11: errors encountered resolving select() keys for @com_google_absl//absl/flags:parse
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/flags/BUILD.bazel:215:11: errors encountered resolving select() keys for @com_google_absl//absl/flags:flag
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/status/BUILD.bazel:30:11: errors encountered resolving select() keys for @com_google_absl//absl/status:status
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/status/BUILD.bazel:69:11: errors encountered resolving select() keys for @com_google_absl//absl/status:statusor
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/memory/BUILD.bazel:28:11: errors encountered resolving select() keys for @com_google_absl//absl/memory:memory
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/meta/BUILD.bazel:28:11: errors encountered resolving select() keys for @com_google_absl//absl/meta:type_traits
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/random/BUILD.bazel:112:11: errors encountered resolving select() keys for @com_google_absl//absl/random:bit_gen_ref
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/time/BUILD.bazel:28:11: errors encountered resolving select() keys for @com_google_absl//absl/time:time
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/flags/BUILD.bazel:267:11: errors encountered resolving select() keys for @com_google_absl//absl/flags:usage
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/flags/BUILD.bazel:87:11: errors encountered resolving select() keys for @com_google_absl//absl/flags:marshalling
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/random/BUILD.bazel:30:11: errors encountered resolving select() keys for @com_google_absl//absl/random:random
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/types/BUILD.bazel:99:11: errors encountered resolving select() keys for @com_google_absl//absl/types:span
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/base/BUILD.bazel:131:11: errors encountered resolving select() keys for @com_google_absl//absl/base:core_headers
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/strings/BUILD.bazel:29:11: errors encountered resolving select() keys for @com_google_absl//absl/strings:strings
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_absl/absl/strings/BUILD.bazel:1067:11: errors encountered resolving select() keys for @com_google_absl//absl/strings:str_format
ERROR: /home/gabrieldesousa/.cache/bazel/_bazel_gabrieldesousa/36be898fb444714b6e5c82ca47e45a19/external/com_google_protobuf/BUILD:210:11: errors encountered resolving select() keys for @com_google_protobuf//:protobuf
WARNING: errors encountered while analyzing target '//lyra/cli_example:decoder_main': it will not be built
INFO: Analyzed target //lyra/cli_example:decoder_main (1 packages loaded, 3 targets configured).
INFO: Found 0 targets...
ERROR: command succeeded, but not all targets were analyzed
INFO: Elapsed time: 0.260s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
FAILED: Build did NOT complete successfully

It seems like there's something wrong with the toolchain. It seems like the failure comes from the tf lite build.

I installed the NDK and have the ANDROID_NDK_HOME and ANDROID_HOME variables set correctly.

image

Does anybody have a clue of how to solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant