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)

main.log (431.9 KB) - added by watsodw 8 years ago.
patch-numpy_rpath.diff (1.3 KB) - added by michaelld (Michael Dickens) 8 years ago.

Download all attachments as: .zip

Change History (22)

Changed 8 years ago by watsodw

Attachment: main.log added

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

Please do not Cc openmaintainer@… because it is not a valid email address.

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Summary: py27-scipy faols to upgrade/installpy27-scipy fails to upgrade/install

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Cc: mf2k@… added

Cc Me!

comment:4 Changed 8 years ago by mf2k (Frank Schima)

Summary: py27-scipy fails to upgrade/installpy-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:7 Changed 8 years ago by mark.chilenski@…

Cc: mark.chilenski@… added

Cc Me!

comment:8 Changed 8 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:9 Changed 8 years ago by jeisch@…

Cc: jeisch@… added

Cc Me!

comment:10 Changed 8 years ago by rionda (Matteo Riondato)

Cc: riondato@… added

Cc Me!

comment:11 Changed 8 years ago by rionda (Matteo Riondato)

Cc: riondato@… removed

Cc Me!

comment:12 Changed 8 years ago by rionda (Matteo Riondato)

Cc: riondato@… added

Cc Me!

comment:13 Changed 8 years ago by mf2k (Frank Schima)

Cc: paulomal@… added

Cc reporter of duplicate #52030.

comment:14 Changed 8 years ago by stromnov (Andrey Stromnov)

Cc: stromnov@… added

Cc Me!

comment:15 Changed 8 years ago by dplr

Cc: david.raulo@… added

Cc Me!

comment:16 Changed 8 years ago by astroboylrx (Rixin Li)

Cc: astroboylrx@… added

Cc Me!

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: newclosed

OK. done in r153885.

Note: See TracTickets for help on using tickets.