-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[BUG] No RPATH in Python extensions #719
Comments
Another consequence of this phenomenon is that it is not possible to BUILD some Python packages without first LOADING their dependencies. The following does NOT work:
At this point, I don't know how to get this working. |
Using the develop branch I was able to build py-netcdf, using 'spack Glenn On Fri, Apr 1, 2016 at 9:35 PM, Elizabeth Fischer notifications@github.com
|
Thank you for the hint. Looks like I've got my work cut out for me, digging through git diffs... |
I tried the same thing from I think that SHA 220c72d (Merge branch 'features/blas-lapack-hardening' into develop) broke things here. Before that commit, OpenBLAS ONLY built static libraries. py-numpy would statically link OpenBLAS, and things would "just work." Now, OpenBLAS builds shared by default. py-numpy links to the shared OpenBLAS library (without RPATH) and things don't work. An alternative workaround to the code posted in this PR would be to use openblas~shared. |
PR #721 helps with this somewhat. But it would be better if the new recursive module feature could list ONLY modules that are Python-related (i.e. that set PYTHONPATH in the module file). |
I think I'm seeing the same problem as you. When I try to install py-scipy, I get:
This never happened to me before though. I wonder if something changed. |
Load the scipy module
|
It's not a runtime problem, I literally can't even install it. I swear this worked a week or two ago. I wonder if some environment variables changed. |
@adamjstewart you may want to check if this or this affected your build in any way |
Just as a data point, I just successfully built py-scipy with openblas from the current spack devel branch. |
I also tried adding |
@glennpj I just tried the latest develop but I'm still seeing the same problem. Here is the full spack-build.out:
Seems to be exactly what @citibeth was seeing. It's interesting that I'm only seeing it for the first time now though. @citibeth you mentioned that you had an idea of how to get RPATH working for Python modules? |
@adamjstewart |
I can replicate what you are seeing with spack compiled gcc-6.1.0 and gcc-5.3.0. Building with the system gcc does work though. |
* updated bglibpy version * remove pinned BluePy version on BGLibPy * fixed style: [W293] blank line contains whitespace
See the dialog below for details. Since Spack does not use hierarchical modules, working around this bug requires that one do
spack load
on an arbitrary and growing set of modules.Uh-oh, what's wrong... let's debug this with
ldd
:Same problem, it cannot load
libopenblas.so
. So let's tell Spack to load it explicitly and try again:OK, now it works with
ldd
. And try with Python:Remember... LD_LIBRARY_PATH is EVIL!!!
The text was updated successfully, but these errors were encountered: