Skip to content

[naot][Android] Add test infra support for bundling native dependencies in apk #121210

@sbomer

Description

@sbomer

PInvoke smoke test fails on native AOT android with:

10-30 11:09:43.727  9055  9069 I DOTNET  : Testing marshalling blittable types
      10-30 11:09:43.729  9055  9069 E DOTNET  : Unhandled exception. 
      10-30 11:09:43.729  9055  9069 E DOTNET  : System.DllNotFoundException: Unable to load shared library 'PInvokeNative' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/PInvokeNative.so" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "PInvokeNative.so" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/libPInvokeNative.so" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "libPInvokeNative.so" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/PInvokeNative" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "PInvokeNative" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/libPInvokeNative" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : dlopen failed: library "libPInvokeNative" not found
      10-30 11:09:43.729  9055  9069 E DOTNET  : 
      10-30 11:09:43.729  9055  9069 E DOTNET  :    at System.Runtime.InteropServices.NativeLibrary.LoadLibErrorTracker.Throw(String) + 0x46
      10-30 11:09:43.729  9055  9069 E DOTNET  :    at Internal.Runtime.CompilerHelpers.InteropHelpers.FixupModuleCell(InteropHelpers.ModuleFixupCell*) + 0x147
      10-30 11:09:43.729  9055  9069 E DOTNET  :    at
      10-30 11:09:43.729  9055  9069 E DOTNET  : 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions