[MacPorts] #65472: gcc12/libgcc12: has made the @rpath transition happen, now we need to manage it
MacPorts
noreply at macports.org
Mon Jul 11 17:00:16 UTC 2022
#65472: gcc12/libgcc12: has made the @rpath transition happen, now we need to
manage it
--------------------+-------------------------
Reporter: kencu | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: libgcc, gcc
--------------------+-------------------------
As expected now that we have included Iain's latest patch in our default
libgcc12 installation, the @rpath transition is upon us:
{{{
% otool -L /opt/local/lib/libgcc/libstdc++.6.dylib
/opt/local/lib/libgcc/libstdc++.6.dylib:
@rpath/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.30.0)
/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0,
current version 9.1.0)
@rpath/libgcc_s.1.1.dylib (compatibility version 1.0.0, current
version 1.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1311.0.0)
}}}
however, only two of our gcc ports, gcc12 and gcc-devel (on arm only) are
using the extra piece that adds the needed rpath directory to the rpath
search directory list.
So any ports that are newly built with any other version of gcc on systems
newer than MacOS 10.11 will be broken, as they won't find the @rpath
libraries.
We should update all our gcc versions (gcc10 and gcc11) on all systems to
Iain's forks to fix them.
All other versions of gcc (gcc9 and below, I believe) are not going to get
Iain's @rpath fixes and will build broken binaries unless the needed rpath
search paths are added manually to every build, which I don't recommend.
So gccs less than gcc10 will need to be blacklisted I suppose on MacOS
10.11 and newer.
It is quite possible that some broken software out there will need to be
rebuilt to get the needed rpaths embedded in them.
--
Ticket URL: <https://trac.macports.org/ticket/65472>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list