[MacPorts] #68255: libgcc12 @12.3.0: ld: Assertion failed: (resultIndex < sectData.atoms.size())

MacPorts noreply at macports.org
Thu Sep 28 10:48:25 UTC 2023


#68255: libgcc12 @12.3.0: ld: Assertion failed: (resultIndex <
sectData.atoms.size())
-----------------------------+--------------------------
  Reporter:  AP1010          |      Owner:  (none)
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.8.1
Resolution:                  |   Keywords:  sonoma arm64
      Port:  libgcc12 gcc12  |
-----------------------------+--------------------------

Comment (by AP1010):

 Replying to [comment:6 freedomtan]:This workaround is working for me as
 well.

 > This is a bug of new ld shipped with Xcode 15. A simple workaround is to
 use previous ld. I changed the **--with-ld=${prefix}/bin/ld ** in
 **lang/gcc12/Portfile** to **--with-ld=
 /Library/Developer/CommandLineTools/usr/bin/ld-classic** then I can build
 libgcc12 and gcc12 without problem.

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


More information about the macports-tickets mailing list