Closed OmSaran closed 3 years ago
Youngjin, I believe this is a question for you. Please let us know if not.
On Sat, Oct 16, 2021 at 11:18 AM Om Saran @.***> wrote:
Looks like we are not using Assise's libpmem library file ( libfs/lib/nvml/src/nondebug/libpmem.so) during runtime.
https://github.com/ut-osa/assise/blob/1285fa297cb5345e5acb1f12ba445e0bce761e99/libfs/Makefile#L49 (corresponding -Wl,-rpath missing for libpmem). Due to this, during runtime, Assise falls back to using the system's (For e.g., located in /usr/lib/x86_64-linux-gnu/) libpmem instead.
Is this the correct intent? Because we seem to be using Assise's libpmem flag for compiling (in -L flag) which got me thinking.
Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ut-osa/assise/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHQBMWNZP6QPMPXKY4PVQ3UHGQUZANCNFSM5GDZLNFQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
This is an oversight. To avoid compatibility issues, Assise should indeed be using its included libpmem during runtime.
I've introduced a small patch to fix this.
Looks like we are not using Assise's libpmem library file (
libfs/lib/nvml/src/nondebug/libpmem.so
) during runtime. https://github.com/ut-osa/assise/blob/1285fa297cb5345e5acb1f12ba445e0bce761e99/libfs/Makefile#L49 (corresponding-Wl,-rpath
missing for libpmem). Due to this, during runtime, Assise falls back to using the system's (For e.g., located in/usr/lib/x86_64-linux-gnu/
) libpmem instead.Here's what LDD output:
After adding the
-Wl,rpath
flags, here's the LDD output:Is this the correct intent? Because we seem to be using Assise's libpmem flag for compiling (in
-L
flag) which got me thinking.Thanks