[MacPorts] #65510: Can no longer compile R packages with MacPorts's GCC (@rpath related)
MacPorts
noreply at macports.org
Wed Jul 20 09:34:40 UTC 2022
#65510: Can no longer compile R packages with MacPorts's GCC (@rpath related)
----------------------+--------------------------
Reporter: szhorvat | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: gcc11, gcc12
----------------------+--------------------------
Since recently, I can no longer use MacPort's GCC/gfortran to compile R
packages. The packages will not load. The error is:
{{{
Library not loaded: @rpath/libgfortran.5.dylib
...
Reason: image not found
}}}
If I look at what the shared library that was compiled references with
`otool -L`, I see this:
{{{
...
/opt/local/lib/libgmp.10.dylib (compatibility version 15.0.0, current
version 15.1.0)
/opt/local/lib/libglpk.40.dylib (compatibility version 44.0.0, current
version 44.1.0)
...
@rpath/libgfortran.5.dylib (compatibility version 6.0.0, current version
6.0.0)
@rpath/libquadmath.0.dylib (compatibility version 1.0.0, current version
1.0.0)
}}}
As I recall, in the past, `libgfortran` and `libquadmath` used to be
referenced with full path. Now they are referenced with @rpath. I do not
know how shared libraries are looked up on macOS, or what @rpath means,
but I assume this is the source of the problem.
This makes it impossible to use MacPort's GCC to compile R packages, which
is a serious problem for me.
Is there a workaround?
--
Ticket URL: <https://trac.macports.org/ticket/65510>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list