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

Missing shared library search path #70

Open
m-diers opened this issue Apr 30, 2024 · 2 comments
Open

Missing shared library search path #70

m-diers opened this issue Apr 30, 2024 · 2 comments
Assignees

Comments

@m-diers
Copy link

m-diers commented Apr 30, 2024

When creating hpx with lci 1.7.7 from a non-standard installation directory, there is a link error with the lci libraries. The interdependent lci libraries are not found.
This can be fixed temporarily during the build of lci using the following example:

cmake -DCMAKE_INSTALL_PREFIX=/opt/lci/ \
      -DCMAKE_INSTALL_RPATH='$ORIGIN/../lib' \
      ../lci-src/

This should already be fixed internally.

@JiakunYan
Copy link
Collaborator

Sorry, just saw this. Did you mean if LCI is built externally (not HPX_WITH_AUTOFETCH_LCI) and installed at a non-standard location, the HPX runtime failed to find the LCI installation? If this is the case, it is expected. Common practice is to tell HPX where to find a library using LD_LIBRARY_PATH.

@JiakunYan JiakunYan self-assigned this Dec 2, 2024
@m-diers
Copy link
Author

m-diers commented Dec 3, 2024

Yes, LCI is built externally (not HPX_WITH_AUTOFETCH_LCI) and installed at a non-standard location (/opt/lci). Configure HPX with -DLCI_ROOT=/opt/lci so far everything fits, but when linking an application against HPX there are link problems (or unresolved symbols) that originate from the sub-libraries of LCI (liblct.so, liblci-ucx.so), as these are not found automatically. I was able to fix this with the above mentioned fix, adding a rpath to the LCI-libs. I think instead of the origin hack, /opt/lci/lib would also work in this case.

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

No branches or pull requests

2 participants