[MacPorts] #65503: libgcc12: libgcc_s.1.dylib is missing its @rpath entry
MacPorts
noreply at macports.org
Mon Jul 18 09:03:36 UTC 2022
#65503: libgcc12: libgcc_s.1.dylib is missing its @rpath entry
--------------------------+----------------------
Reporter: cjones051073 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: libgcc12
--------------------------+----------------------
Leads to issues such as one recently posted on the user list, where
following the update all previously OK binaries where failing to run with
{{{
dyld: Library not loaded: @rpath/libgcc_s.1.1.dylib
Referenced from: /opt/local/lib/libgcc/libgcc_s.1.dylib
Reason: image not found
Trace/BPT trap
}}}
Recompiling the code fixed things, but what I think is odd is the fact
/opt/local/lib/libgcc/libgcc_s.1.dylib does not have an RPATH entry
{{{
Oberon /opt/local/lib/libgcc > otool -l libgcc_s.1.1.dylib | grep -A 3
RPATH
Oberon /opt/local/lib/libgcc >
}}}
compared to other dylib in libgcc12
{{{
/opt/local/lib/libgcc > otool -l libgfortran.5.dylib | grep -A 3 RPATH
cmd LC_RPATH
cmdsize 32
path @loader_path/ (offset 12)
Load command 16
cmd LC_RPATH
cmdsize 40
path /opt/local/lib/libgcc (offset 12)
Load command 17
cmd LC_RPATH
cmdsize 32
path @loader_path (offset 12)
Load command 18
cmd LC_RPATH
cmdsize 120
path
/opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_lang_gcc12/libgcc12/work/build/gcc
(offset 12)
Load command 19
cmd LC_RPATH
cmdsize 32
path /opt/local/lib (offset 12)
}}}
In particular, given we build gcc with the option
{{{
--with-darwin-extra-rpath=${prefix}/lib/libgcc
}}}
I would at least expect to see that there ?
Ken - thoughts ? Can you check with Iain as to if this is a bug or not ?
--
Ticket URL: <https://trac.macports.org/ticket/65503>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list