[MacPorts] #68451: libgcc11 fails to build on Mac Sonoma
MacPorts
noreply at macports.org
Fri Oct 13 07:01:02 UTC 2023
#68451: libgcc11 fails to build on Mac Sonoma
------------------------------+-----------------------------
Reporter: jade2k11598 | Owner: (none)
Type: defect | Status: new
Priority: High | Milestone: MacPorts Future
Component: ports | Version: 2.8.1
Keywords: libgcc11, Sonoma | Port:
------------------------------+-----------------------------
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](https://github.com/Homebrew/homebrew-core/issues/145991) and
it seems compiling with the option -Wl,-ld_classic, fixes the problem.
--
Ticket URL: <https://trac.macports.org/ticket/68451>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list