#56163 closed defect (fixed)

OpenBLAS @0.2.20_1: libgcc* should be a runtime dependency

Reported by: michaellass (Michael Lass) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: michaelld (Michael Dickens)
Port: OpenBLAS

Description

gcc is used as Fortran compiler for OpenBLAS. The resulting library is linked against libgfortran and libquadmath which are provided by the corresponding libgcc port:

otool -L /opt/local/lib/libopenblas-r1.dylib
/opt/local/lib/libopenblas-r1.dylib:
	/opt/local/lib/libopenblas-r1.dylib (compatibility version 0.0.0, current version 0.0.0)
	/opt/local/lib/libgcc/libgfortran.4.dylib (compatibility version 5.0.0, current version 5.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)
	/opt/local/lib/libgcc/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)

port provides /opt/local/lib/libgcc/libgfortran.4.dylib
/opt/local/lib/libgcc/libgfortran.4.dylib is provided by: libgcc

port provides /opt/local/lib/libgcc/libquadmath.0.dylib
/opt/local/lib/libgcc/libquadmath.0.dylib is provided by: libgcc

The corresponding libgcc version should therefore be added as a runtime dependency.

I noticed this myself when doing a "port uninstall leaves" which uninstalled gcc6 and libgcc6 and left OpenBLAS broken. (The output shown above is now from the +gcc7 variant of OpenBLAS).

Change History (3)

comment:1 Changed 12 months ago by mf2k (Frank Schima)

Cc: NicosPavlov removed
Owner: set to NicosPavlov
Status: newassigned

comment:2 Changed 12 months ago by NicosPavlov

Thanks for the report, it will be committed soon after that.

comment:3 Changed 12 months ago by NicosPavlov

Resolution: fixed
Status: assignedclosed

In c6bb18ad2abb2cff9a5776f9ac84e61e7d05efe2/macports-ports (master):

OpenBLAS: Add libgcc explicitly as a runtime dependency (fixes #56163)

Note: See TracTickets for help on using tickets.