Repository navigation
Closed
Labels
bug 🐞Something isn't workinginfrastructureRelating to build systems, CI, or testingplatform/android 🤖Android-specific build, execution, benchmarking, and deployment
Description
I'm seeing flakey failures in the new Android CMake cross compilation build on both pre and post submit. There's one failure that's happened twice and another that's happened once, but the common thread appears to be hooking into the llvm host build.
CMake Error at third_party/llvm-project/llvm/CMakeLists.txt:775 (include):
include could not find load file:
/tmpfs/src/github/iree/build/host/third_party/llvm-project/llvm/LLVMBuild.cmake
CMake Error at third_party/llvm-project/llvm/CMakeLists.txt:767 (message):
Unexpected failure executing llvm-build: Traceback (most recent call last):
File "/tmpfs/src/github/iree/third_party/llvm-project/llvm/utils/llvm-build/llvm-build", line 6, in <module>
llvmbuild.main()
File "/tmpfs/src/github/iree/third_party/llvm-project/llvm/utils/llvm-build/llvmbuild/main.py", line 833, in main
opts.optional_components)
File "/tmpfs/src/github/iree/third_party/llvm-project/llvm/utils/llvm-build/llvmbuild/main.py", line 417, in write_library_table
elif filecmp.cmp(output_path, output_path+'.new'):
File "/usr/lib/python3.6/filecmp.py", line 52, in cmp
s2 = _sig(os.stat(f2))
FileNotFoundError: [Errno 2] No such file or directory:
'/tmpfs/src/github/iree/build/host/third_party/llvm-project/llvm/tools/llvm-config/LibraryDependencies.inc.new'
https://source.cloud.google.com/results/invocations/6392cebf-00bd-4c31-b808-77c16b2543c7/targets/iree%2Fgcp_ubuntu%2Fcmake%2Fandroid%2Farm64-v8a%2Fpresubmit/log
https://source.cloud.google.com/results/invocations/a4cbca79-cc53-4c9d-a92f-27aee38553d6/targets/iree%2Fgcp_ubuntu%2Fcmake%2Fandroid%2Farm64-v8a%2Fpresubmit/log
Metadata
Metadata
Assignees
Labels
bug 🐞Something isn't workinginfrastructureRelating to build systems, CI, or testingplatform/android 🤖Android-specific build, execution, benchmarking, and deployment
Activity
antiagainst commentedon Jul 13, 2020
Hmm, interesting. I'm not able to reproduce this on my gLinux machine. Maybe because of the large number of concurrency there. From the face of it, it seems some dependency is not properly wired up.
antiagainst commentedon Jul 13, 2020
Also failing here
https://source.cloud.google.com/results/invocations/2e82e2e2-f983-4ec4-9b94-de4223f3f4c4/targets/iree%2Fgcp_ubuntu%2Fcmake%2Fandroid%2Farm64-v8a%2Fmain/log
Token a deeper look. The related code in LLVM is
https://github.com/llvm/llvm-project/blob/e72cba975735c2202b254621d79fb9dbbed08d39/llvm/utils/llvm-build/llvmbuild/main.py#L47-L49
There already exists a guard to make sure that the directory does not exist before calling into
os.makedirs. Some other thread created the directory in the middle? Then this should be revealed more easily with larger concurrency. Mysterious..[ci] Run cmake --build twice to temporary fix the flaky build
[ci] Run cmake --build twice to temporary fix the flaky build (#2501)
benvanik commentedon Nov 22, 2020
@antiagainst are we still --building twice? We need to fix that if so, as this is going to be important to getting a reliable vcpkg build for deployment.
antiagainst commentedon Nov 23, 2020
Yes still. (Sorry about that.) I'll spend some time later to figure this out.
Remove custom CMake cross compilation for Android. (#4584)
GMNGeoffrey commentedon Jan 25, 2021
If this is indeed fixed, we can enable the Android build on presubmit. Should we just try and find out?
ScottTodd commentedon Jan 25, 2021
Sure :D
antiagainst commentedon Jan 25, 2021
+1000. Thanks @ScottTodd! Ah, now I can sleep without this haunting me during night. :D