Opened 8 years ago
Closed 8 years ago
#51419 closed defect (fixed)
py-scipy fails to build with +openblas
Reported by: | watsodw | Owned by: | seanfarley (Sean Farley) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | michaelld (Michael Dickens), mf2k (Frank Schima), mark.chilenski@…, petrrr, jeisch@…, rionda (Matteo Riondato), paulomal@…, stromnov (Andrey Stromnov), dplr, astroboylrx (Rixin Li) | |
Port: | py-scipy |
Description
Using numpy with openblas, get "-rpath=" error. see log
Attachments (2)
Change History (22)
Changed 8 years ago by watsodw
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Cc: | sean@… openmaintainer@… removed |
---|---|
Owner: | changed from macports-tickets@… to sean@… |
Port: | py-scipy added; py27-scipy removed |
comment:2 Changed 8 years ago by mf2k (Frank Schima)
Summary: | py27-scipy faols to upgrade/install → py27-scipy fails to upgrade/install |
---|
comment:4 Changed 8 years ago by mf2k (Frank Schima)
Summary: | py27-scipy fails to upgrade/install → py-scipy fails to build with +openblas |
---|
See also the reverse problem for py-numpy #51250 (fails with +atlas but works with +openblas).
comment:5 Changed 8 years ago by watsodw
Is there any resolution to this problem? It's beginning to affect upgrading other packages (py-seaborn).
comment:6 Changed 8 years ago by seanfarley (Sean Farley)
Ah, this is the rpath option error. I haven't had anytime to look at this, unfortunately. Was anyone else able to make progress?
comment:13 Changed 8 years ago by mf2k (Frank Schima)
Cc: | paulomal@… added |
---|
Cc reporter of duplicate #52030.
comment:17 Changed 8 years ago by astroboylrx (Rixin Li)
Does anyone have a workaround now?
I tried to find the files that contain "rpath=" in the building directory, but I found none. Unlike the numpy package, there is also no gnu.py.
Thanks a lot in advanced.
Changed 8 years ago by michaelld (Michael Dickens)
Attachment: | patch-numpy_rpath.diff added |
---|
comment:18 Changed 8 years ago by michaelld (Michael Dickens)
This issue is related to #51250.
I just attached a patch for NumPy that fixed this build error for me. It should work on at least 10.9 and newer (libc++). I don't have a 10.[6-8] box around for testing (libstdc++ via GCC 4.2.1). I did verify that the rpath setting works on a modern Linux box running GCC 4.9 ("-Wl,-rpath -Wl,"/R/P/A/T/H", where "/R/P/A/T/H" is the actual desired rpath, in ""s to allow for spaces in directory names).
Could others please test & verify? You'll need to do roughly the following (assuming the patch is in ~/Downloads/patch-numpy_rpath.diff):
pushd $(port dir py27-numpy) sudo patch -p0 < ~/Downloads/patch-numpy_rpath.diff sudo port upgrade py27-numpy
assuming that works, then do:
sudo patch -R -p0 < ~/Downloads/patch-numpy_rpath.diff sudo port clean "py*-scipy" sudo port install py27-scipy +openblas
comment:19 Changed 8 years ago by seanfarley (Sean Farley)
Yep, this patch fixes it for me. I would say go ahead and push it.
comment:20 Changed 8 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
OK. done in r153885.
Please do not Cc openmaintainer@… because it is not a valid email address.