[MacPorts] #65573: libgcc12: build fails for macOS 12.6 and 13 Beta

MacPorts noreply at macports.org
Thu Oct 27 12:05:53 UTC 2022


#65573: libgcc12: build fails for macOS 12.6 and 13 Beta
--------------------------+----------------------
  Reporter:  adamgao1996  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.2
Resolution:               |   Keywords:  monterey
      Port:  libgcc12     |
--------------------------+----------------------

Comment (by soapdog):

 This is still happening on macOS Ventura with Xcode 14.1 RC 2 with the
 Command Line Tools reinstalled after installing the RC 2.

 {{{
 :info:build 0  0x1009cc1a0  __assert_rtn + 140
 :info:build 1  0x100853a8c
 mach_o::relocatable::Parser<arm64>::parse(mach_o::relocatable::ParserOptions
 const&) + 4536
 :info:build 2  0x100825d38
 mach_o::relocatable::Parser<arm64>::parse(unsigned char const*, unsigned
 long long, char const*, long, ld::File::Ordinal,
 mach_o::relocatable::ParserOptions const&) + 148
 :info:build 3  0x10088e4ac
 ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 1468
 :info:build 4  0x100891360
 ___ZN2ld4tool10InputFilesC2ER7Options_block_invoke + 56
 :info:build 5  0x1b3627544  _dispatch_client_callout2 + 20
 :info:build 6  0x1b363b024  _dispatch_apply_invoke + 224
 :info:build 7  0x1b3627504  _dispatch_client_callout + 20
 :info:build 8  0x1b36390b4  _dispatch_root_queue_drain + 684
 :info:build 9  0x1b36397c0  _dispatch_worker_thread2 + 164
 :info:build 10  0x1b37aa0c4  _pthread_wqthread + 228
 :info:build A linker snapshot was created at:
 :info:build     /tmp/libstdc++.6.dylib-2022-10-27-130036.ld-snapshot
 :info:build ld: Assertion failed: (_file->_atomsArrayCount ==
 computedAtomCount && "more atoms allocated than expected"), function
 parse, file macho_relocatable_file.cpp, line 2061.
 :info:build collect2: error: ld returned 1 exit status
 :info:build make[6]: *** [libstdc++.la] Error 1
 :info:build make[6]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build/arm64
 -apple-darwin22/libstdc++-v3/src'
 :info:build make[5]: *** [all-recursive] Error 1
 :info:build make[5]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build/arm64
 -apple-darwin22/libstdc++-v3/src'
 :info:build make[4]: *** [all-recursive] Error 1
 :info:build make[4]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build/arm64
 -apple-darwin22/libstdc++-v3'
 :info:build make[3]: *** [all] Error 2
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build/arm64
 -apple-darwin22/libstdc++-v3'
 :info:build make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build'
 :info:build make[1]: *** [stage1-bubble] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build'
 :info:build make: *** [bootstrap-lean] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/build"
 && /usr/bin/make -j8 -w bootstrap-lean
 :info:build Exit code: 2
 :error:build Failed to build libgcc12: command execution failed
 :debug:build Error code: CHILDSTATUS 48019 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 }}}

 Versions used:

 {{{
 agarzia at Andres-MacBook-Air Desktop % xcodebuild -version
 Xcode 14.1
 Build version 14B47b
 }}}

 This version is coming from the tools inside the Xcode 14.1 RC 2 bundle:

 {{{
 agarzia at Andres-MacBook-Air Documentation % gcc -v
 Apple clang version 14.0.0 (clang-1400.0.29.202)
 Target: arm64-apple-darwin22.1.0
 Thread model: posix
 InstalledDir:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 agarzia at Andres-MacBook-Air Documentation %
 }}}

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


More information about the macports-tickets mailing list