Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recompiled version for libnative_device on Ubuntu 24.04 #907

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

badrishc
Copy link
Contributor

@badrishc badrishc commented Jan 10, 2025

Recompiled libnative_device.so on Ubuntu 24.04 so that it uses libaio.so.1t64 instead of libaio.so.1. This lib works on Ubuntu 24.04 but it has stopped working on Ubuntu 22.04 out of the box.

Any ideas how to make it work out-of-the-box on both? We could do a symbolic link as mentioned here but that requires sudo permission and manual intervention.

Here is the error on Ubuntu 22.04 after this PR:

  Error Message:
   System.DllNotFoundException : Unable to load shared library 'runtimes/linux-x64/native/libnative_device.so' 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:
libaio.so.1t64: cannot open shared object file: No such file or directory

@badrishc
Copy link
Contributor Author

We should hold off on merging this until we figure out how to avoid breaking on Ubuntu 22.04. Thoughts?

@badrishc
Copy link
Contributor Author

badrishc commented Jan 10, 2025

Repro on Ubuntu 22.04:

cd libs/storage/Tsavorite/cs/test
dotnet test -c Debug --logger:"console;verbosity=detailed" --filter NativeDeviceTest1

  Failed NativeDeviceTest1 [41 ms]
  Error Message:
   System.DllNotFoundException : Unable to load shared library 'runtimes/linux-x64/native/libnative_device.so' 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:
libaio.so.1t64: cannot open shared object file: No such file or directory

Manual fix on Ubuntu 22.04:

sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1 /usr/lib/x86_64-linux-gnu/libaio.so.1t64

@badrishc badrishc marked this pull request as draft January 10, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant