Conversation
|
should we just update to the latest LTS version, r26? |
|
It seems not easy. |
What's not easy? The image includes 26.0.10792818, and the Android SDKs and NDKs appears to be the same versions across all the macos and linux images I looked at. |
|
There are also predefined environment variables for the NDK path that we could maybe use instead of calculating our own NDK_PATH value |
|
New NDK version means new compiler/new linker version. As you can see there are some wired link errors after I made the change. Tomorrow I will try to reproduce them locally |
|
Yeah it's odd. I have a local WSL2 setup with NDK 25.2 that I used a couple of months ago and it built ORT without a problem back then, and now it's complaining about this being missing (same as the CI): It's defined in the framework library and that hasn't changed for years. Possibly some other cmake change is affecting the libraries the test exe is building against. onnxruntime/onnxruntime/core/framework/data_types.cc Lines 1463 to 1472 in 74a8acf FWIW building with the 26.0 NDK works. https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=1166226&view=logs&j=b27c03c3-79f9-5527-4b3a-dcfd5ff9627d&t=40e3fc77-3920-5dd0-c3e1-53eae25358ab As the security guidance is to use the latest NDK maybe we should just try and do that instead of chasing down a link error that occurs with 25.2 but not 25.0 or 26.0 (or any other build of ORT). |
May need to add |
### Description Similar to #17852 ### Motivation and Context To avoid downloading NDK
### Description Update NDK to 26.0.10792818 which is included in every macOS build machine so that we do not need to download a different version every time in every build. ### Motivation and Context Downloading NDK on-the-fly is a main contributor of Android related build failures.
### Description Similar to microsoft#17852 ### Motivation and Context To avoid downloading NDK
Description
Update NDK to 26.0.10792818 which is included in every macOS build machine so that we do not need to download a different version every time in every build.
Motivation and Context
Downloading NDK on-the-fly is a main contributor of Android related build failures.