You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try compile the arm64 package, it will be ok to run on an arm64 android phone.
Reproduction Steps
1.Download the NDK version r21e.
2.Install the NDK in ~/android-ndk-r21e
3.Clone the main branch of josephmoresena/NativeAOT-AndroidHelloJniLib.
4.Compile NativeAOT-AndroidHelloJniLib using
dotnet publish -r linux-bionic-x64 -p:DisableUnsupportedError=true -p:PublishAotUsingRuntimePack=true -p:AssemblyName=libhello-jni.
5.Rename output AndroidHelloJniLib.so file to libhello-jni.so and put it inside com.example.hellojni jniLibs/ folder.
6.Android studio, Compile and debug com.example.hellojni on Android 86x64 device(WSA).
Expected behavior
The android application loads an shows a text generated by NativeAOT JNI library.
Actual behavior
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "tls_CurrentThread"
Regression?
Maybe only arm64 was fix but not 86x64, or maybe 86x64 was affected by fix arm64.
Activity
MichalStrehovsky commentedon Nov 6, 2023
Duplicate of #93942