[MacPorts] #63677: libgcc11 11.2.0_1 fails to build on Monterey
MacPorts
noreply at macports.org
Tue Nov 23 15:06:29 UTC 2021
#63677: libgcc11 11.2.0_1 fails to build on Monterey
------------------------+-------------------------------
Reporter: jwhowarth | Owner: Knapoc <Knapoc@…>
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.7.99
Resolution: | Keywords:
Port: libgcc11 |
------------------------+-------------------------------
Comment (by JohnPritchard):
I have successfully built libgcc11 (and gcc11) on macOS Monterey arm64 by
applying the workaround patch gcc11_patch_macOS12_arm64 (that I have
attached to this ticket) which I think addresses the symptoms, rather than
curing the problem.
The issues seem to revolve around libgcc_s.1.1.dylib.
The first issue is that when "checking whether we are cross compiling" it
is checks for libgcc_s.1.1.dylib only in /usr/lib and /usr/local/lib, so
the first part of the patch is to create (and remove) a softlink
/usr/local/lib/libgcc_s.1.1.dylib so that it will be found when needed.
The 2nd issue is that once created, libgcc_s.1.1.dylib doesn't have
executable permissions, like all the other dylibs created, so the 2nd part
of the patch sets the permissions (on all the dylibs, just in case...)
I don't understand why these problems present only for arm64 and not for
x86_64 (probably because they are using different versions), I leave that
for others to resolve.
--
Ticket URL: <https://trac.macports.org/ticket/63677#comment:46>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list