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

[Bazel CI] libandroid_support.a file failed error #532

Open
sgowroji opened this issue Dec 25, 2024 · 6 comments
Open

[Bazel CI] libandroid_support.a file failed error #532

sgowroji opened this issue Dec 25, 2024 · 6 comments

Comments

@sgowroji
Copy link
Member

sgowroji commented Dec 25, 2024

CI: https://buildkite.com/bazel/bazel-bazel-examples/builds/3951#0193fb1d-85ce-4058-a62c-8d6ca72a5681

Platform: MacOS

Logs:

ERROR: /Users/buildkite/builds/bk-macos-arm64-9ouj/bazel/bazel-bazel-examples/android/ndk/app/src/main/BUILD.bazel:22:15: Linking _nativedeps/669710a0.so failed: error reading file '@@androidndk//toolchains/llvm/prebuilt/darwin-x86_64/sysroot:usr/lib/i686-linux-android/libandroid_support.a': Input/output error
(01:01:37) ERROR: /Users/buildkite/builds/bk-macos-arm64-9ouj/bazel/bazel-bazel-examples/android/ndk/app/src/main/BUILD.bazel:22:15: Linking _nativedeps/669710a0.so failed: 1 input file(s) are in error
Target //app/src/main:app failed to build
(01:01:37) ERROR: /Users/buildkite/builds/bk-macos-arm64-9ouj/bazel/bazel-bazel-examples/android/ndk/app/src/main/BUILD.bazel:22:15 Linking _nativedeps/669710a0.so failed: 1 input file(s) are in error
(01:01:37) INFO: Elapsed time: 29.447s, Critical Path: 0.87s
(01:01:37) INFO: 63 processes: 63 internal.
(01:01:37) ERROR: Build did NOT complete successfully

Culprit:

Steps:

git clone https://github.com/bazelbuild/examples
cd ../android/ndk
git reset curl b51e3bdd468ce8c4a516d7dca993909dcc84af32--hard
export USE_BAZEL_VERSION=7.3.1 
bazel buiild --enable_bzlmod --android_platforms=//:arm64-v8a,//:x86 //app/src/main:app

CC Greenteam @meteorcloudy

@meteorcloudy
Copy link
Member

/cc @ahumesky @ted-xie

@ted-xie
Copy link

ted-xie commented Jan 2, 2025

This should be fixed by #536.

@ted-xie
Copy link

ted-xie commented Jan 2, 2025

Hmmm, evidently the problem is different from what I was expecting. I'll have to take another look.

@sgowroji
Copy link
Member Author

sgowroji commented Jan 3, 2025

Now the CI shows https://buildkite.com/bazel/bazel-bazel-examples/builds/3966#01942976-cb83-4db2-a0c5-7c5d870d757b below error.


(01:01:32) ERROR: /Users/buildkite/builds/bk-macos-arm64-ul53/bazel/bazel-bazel-examples/android/ndk/app/src/main/BUILD.bazel:22:15: Linking _nativedeps/669710a0.so failed: error reading file '@@androidndk//toolchains/llvm/prebuilt/darwin-x86_64/sysroot:usr/lib/i686-linux-android/libandroid_support.a': Input/output error
--
  | (01:01:32) ERROR: /Users/buildkite/builds/bk-macos-arm64-ul53/bazel/bazel-bazel-examples/android/ndk/app/src/main/BUILD.bazel:22:15: Linking _nativedeps/669710a0.so failed: 1 input file(s) are in error
  | Target //app/src/main:app failed to build
  | (01:01:32) ERROR: /Users/buildkite/builds/bk-macos-arm64-ul53/bazel/bazel-bazel-examples/android/ndk/app/src/main/BUILD.bazel:22:15 Linking _nativedeps/669710a0.so failed: 1 input file(s) are in error
  | (01:01:32) INFO: Elapsed time: 27.189s, Critical Path: 0.73s
  | (01:01:32) INFO: 65 processes: 65 internal.
  | (01:01:32) ERROR: Build did NOT complete successfully


@meteorcloudy
Copy link
Member

meteorcloudy commented Jan 3, 2025

I'm seeing all kinds of IO issues on macOS arm64 VMs, this might be an infra issue.
/cc @fweikert

@meteorcloudy
Copy link
Member

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

3 participants