[MacPorts] #63161: gcc11 / libgcc11: not building for 32bit SnowLeopard ld: illegal text-relocation to ___stack_chk_guard in /usr/lib/libSystem.dylib

MacPorts noreply at macports.org
Fri Jul 2 17:18:09 UTC 2021


#63161: gcc11 / libgcc11: not building for 32bit SnowLeopard ld: illegal text-
relocation to ___stack_chk_guard in /usr/lib/libSystem.dylib
-----------------------------+-------------------------
  Reporter:  kencu           |      Owner:  (none)
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  snowleopard
      Port:  libgcc11 gcc11  |
-----------------------------+-------------------------

Comment (by kencu):

 Upstream points this out to be a bug in the 32 bit clang implementation,
 which it indeed seems to be.

 They have a more intricate patch that still allows no-pie to be used where
 it should be used and fixes the issue...testing now.

 It will be harder to maintain that more intricate patch, but it's a better
 patch.

 Older gcc versions may also need that fix to bootstrap with clang 32 bit.
 Or we can arrange to bootstrap clang with gcc, starting with gcc-4.2
 (bootstraps up to gcc10), or gcc-4.8 or gcc-5.0 (bootstraps gcc11+ as
 well).

-- 
Ticket URL: <https://trac.macports.org/ticket/63161#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list