[MacPorts] #65924: Linker crash when using GCC 12

MacPorts noreply at macports.org
Tue Nov 1 18:59:42 UTC 2022


#65924: Linker crash when using GCC 12
-----------------------+--------------------
  Reporter:  szhorvat  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  gcc12     |
-----------------------+--------------------

Comment (by mouse07410):

 This crash **does** happen on Intel Mac running Monterey 12.6.1 and
 Xcode-14.0.1. Current Macports. {{{gcc12 @12.2.0_0+stdlib_flag
 (active)}}}.

 Linker crashes with:
 {{{
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
 file: polynomi.o has no symbols
 0  0x105e0affa  __assert_rtn + 139
 1  0x105c3e28d
 mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions
 const&) + 4989
 2  0x105c2ef8f  mach_o::relocatable::Parser<x86_64>::parse(unsigned char
 const*, unsigned long long, char const*, long, ld::File::Ordinal,
 mach_o::relocatable::ParserOptions const&) + 207
 3  0x105ca59d4  ld::tool::InputFiles::makeFile(Options::FileInfo const&,
 bool) + 2036
 4  0x105ca8fa0  ___ZN2ld4tool10InputFilesC2ER7Options_block_invoke + 48
 5  0x7ff812a8134a  _dispatch_client_callout2 + 8
 6  0x7ff812a928f5  _dispatch_apply_invoke + 213
 7  0x7ff812a81317  _dispatch_client_callout + 8
 8  0x7ff812a90c0c  _dispatch_root_queue_drain + 673
 9  0x7ff812a9125c  _dispatch_worker_thread2 + 160
 10  0x7ff812c34f8a  _pthread_wqthread + 256
 A linker snapshot was created at:
         /tmp/libcryptopp.dylib-2022-11-01-114807.ld-snapshot
 ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount &&
 "more atoms allocated than expected"), function parse, file
 macho_relocatable_file.cpp, line 2061.
 collect2: error: ld returned 1 exit status
 make: *** [libcryptopp.dylib] Error 1
 }}}

 To my surprise, there's no crash report in the system log. I will attach
 linker snapshot {{{/tmp/ui-r7-2022-11-01-145806.ld-snapshot}}}.

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


More information about the macports-tickets mailing list