-
Notifications
You must be signed in to change notification settings - Fork 63
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
Incorrect INSTALL_RPATH on cython extension files #779
Comments
Thanks for creating the issue! |
This will probably be fixed with #725 |
The libraries in the system lib directory (or
IIUC, what's happening above is a consequence of you being inside a conda environment but using the system linker. Inside a conda environment you probably want to be using the conda compilers and linkers, which will be compiled with the necessary additional search paths to use inside a conda environment. |
This is true for the system lib directory, but conda does not force
Here's what happens when I try to import
The
This
Actually the build-stage version of the cython .so contains the (absolute) directory to all required libraries, so I don't think the linker would make a difference here.
I think the problem is with the installation process, which is supposed to "relativize" all RPATHs, so that libraries point to each other correctly in a final installation environment, but that path is not set correctly. |
Thanks to @csadorf for reporting this.
The RPATH set on Cython extension modules on a non-editable installation is not appropriate for the location where those modules are stored. For example:
This is causing issues when using the canonical cpython interpreter, which (unlike
legate
) doesn't prime the library load path, so the RPATHs need to contain all relevant paths.In order for this extension to be able to find other required libraries, the RPATH should be pointing back to the containing
lib/
folder, i.e. for this module it should contain something like$ORIGIN/../../../../../
. Other modules, stored under different paths, might require a different RPATH.The text was updated successfully, but these errors were encountered: