Repository navigation
Closed
Labels
bug 🐞Something isn't workingcompiler/toolsIREE's compiler tooling (iree-compile, iree-opt, etc)infrastructureRelating to build systems, CI, or testingplatform/android 🤖Android-specific build, execution, benchmarking, and deployment
Description
Blocking #3928
Sample buildkite run: https://buildkite.com/iree/iree-android-arm64-v8a/builds/3249
Summary:
The following tests FAILED:
--
| 34 - iree/modules/check/test/check_dylib-llvm-aot_dylib_success.mlir_on_android_device (Failed)
| 40 - iree/test/e2e/llvm_specific/check_llvm-aot-conv_img2col_conv.mlir_on_android_device (Failed)
| 41 - iree/test/e2e/llvm_specific/check_llvm-aot-exponential_fast_exponential.mlir_on_android_device (Failed)
| 50 - iree/test/e2e/structural/check_dylib-llvm-aot_dylib_slice_add.mlir_on_android_device (Failed)
| 153 - iree/test/e2e/xla_ops/check_dylib-llvm-aot_dylib_abs.mlir_on_android_device (Failed)
| 154 - iree/test/e2e/xla_ops/check_dylib-llvm-aot_dylib_add.mlir_on_android_device (Failed)
...
Specific error message:
+ adb shell 'cd /data/local/tmp && LD_LIBRARY_PATH=/data/local/tmp iree/test/e2e/xla_ops/check_dylib-llvm-aot_dylib_while.mlir/iree-check-module --driver=dylib iree/test/e2e/xla_ops/check_dylib-llvm-aot_dylib_while.mlir/check_dylib-llvm-aot_dylib_while.mlir_module.module'
--
| I ../iree/tools/utils/vm_util.cc:227] Creating driver and device for 'dylib'...
| [==========] Running 1 test from 1 test suite.
| [----------] Global test environment set-up.
| [----------] 1 test from module
| [ RUN ] module.while
| ../iree/modules/check/iree-check-module-main.cc:65: Failure
| Value of: iree_vm_context_create_with_modules( instance_, modules_.data(), modules_.size(), iree_allocator_system(), &context_)
| Expected: is OK
| Actual: 0x7258e1120e (of type void*), which is not OK
| [ FAILED ] module.while, where GetParam() = 2 (1 ms)
| [----------] 1 test from module (1 ms total)
We should be able to disable by setting IREE_LLVMAOT_DISABLE somewhere in our build/test scripts / Buildkite workflows / VM images.
Fixing may require setting the appropriate Android target triple as part of https://github.com/google/iree/blob/main/build_tools/cmake/iree_check_test.cmake
Metadata
Metadata
Assignees
Labels
bug 🐞Something isn't workingcompiler/toolsIREE's compiler tooling (iree-compile, iree-opt, etc)infrastructureRelating to build systems, CI, or testingplatform/android 🤖Android-specific build, execution, benchmarking, and deployment
Activity
ScottTodd commentedon Dec 4, 2020
cc @GMNGeoffrey @asaadaldien @hanhanW
If someone more familiar with our Android test infra and cross compilation on Linux could help with a workaround (or investigating the root cause), that would be appreciated. You can send pull requests based off of the
scotttodd-llvmaot-configbranch.asaadaldien commentedon Dec 4, 2020
I think we need to set android target triple here some where here for
iree--translationto usehttps://github.com/google/iree/blob/main/build_tools/cmake/iree_check_test.cmake#L98
I will look into that, These tests are also failing locally right ?
asaadaldien commentedon Dec 7, 2020
I pushed a commit that made tests passes locally on
scotttodd-llvmaot-configbranch.ScottTodd commentedon Dec 7, 2020
Thanks! That looks about right to me, but it doesn't quite work on our Buildkite CI:
https://buildkite.com/iree/iree-android-arm64-v8a/builds/3262#d95a9a46-5b89-4298-993b-96f66340c9f7
🤔
asaadaldien commentedon Dec 7, 2020
hanhanW commentedon Dec 7, 2020
Probably need to update this as well: https://github.com/google/iree/blob/3632da3fbd55b8cae934a18bd4c6b24f783145e7/build_tools/mako/compile_android_modules.sh#L53
hanhanW commentedon Dec 7, 2020
This is for mako testing, so it won't fix the error.
Remove explicitly setting IREE_LLVMAOT_LINKER_PATH in build scripts (#…
Update cmake-android docker image (#4116)
ScottTodd commentedon Dec 9, 2020
Fixed!