Opened 11 months ago

Last modified 11 months ago

#68451 closed defect

libgcc11 @11.4.0: ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336. — at Version 1

Reported by: jade2k11598 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc:
Port: libgcc11

Description (last modified by ryandesign (Ryan Carsten Schmidt))

After updating to Sonoma 14.0, issued command sudo port upgrade outdated and failed when building libgcc11:

:info:build -macosx_version_min has been renamed to -macos_version_min
:info:build 0  0x1067a8f43  __assert_rtn + 64
:info:build 1  0x1066aaf43  ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc const*&, long long&) const + 1411
:info:build 2  0x1066c7431  ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 19745
:info:build 3  0x1066d7b71  ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 657
:info:build 4  0x7ff817f3c5cd  _dispatch_client_callout2 + 8
:info:build 5  0x7ff817f4e19d  _dispatch_apply_invoke_and_wait + 214
:info:build 6  0x7ff817f4d6ab  _dispatch_apply_with_attr_f + 1181
:info:build 7  0x7ff817f4d85f  dispatch_apply + 45
:info:build 8  0x106770972  ld::AtomFileConsolidator::parseFiles(bool) + 370
:info:build 9  0x1066f7d67  main + 12263
:info:build ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336.

main.log is attached.

I did issue sudo port clean libgcc11 before re-issuing sudo port upgrade outdated before the same error occurred again.

I looked online and notice that people using homebrew came across the same error and it seems compiling with the option -Wl,-ld_classic, fixes the problem.

Change History (2)

Changed 11 months ago by jade2k11598

Attachment: part-main.log added

Last several lines the error log provided by macport when the libgcc11 failed to build; couldn't load the whole file since the file was too large.

comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sonoma added; libgcc11 Sonoma removed
Milestone: MacPorts Future
Port: libgcc11 added
Priority: HighNormal
Summary: libgcc11 fails to build on Mac Sonomalibgcc11 @11.4.0: ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336.
Note: See TracTickets for help on using tickets.