[MacPorts] #61494: gcc9 @9.3.0 "Failed to build libgcc9: command execution failed" in macOS 11.0 Big Sur

MacPorts noreply at macports.org
Mon Nov 16 04:32:31 UTC 2020


#61494: gcc9 @9.3.0 "Failed to build libgcc9: command execution failed" in macOS
11.0 Big Sur
---------------------------------+--------------------------
 Reporter:  kgerheiser           |      Owner:  (none)
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.6.4
 Keywords:  gcc9 libgcc9 bigsur  |       Port:  gcc9 libgcc9
---------------------------------+--------------------------
 I updated to Big Sur and attempted to build GCC9 and it fails. GCC 10
 worked.

 First, there was an error that it couldn't find the command `gsed`, so I
 installed it with MacPorts.

 Then, more errors:

 Looks like it's picking up the macOS version incorrectly and then thinking
 it's macOS 10.4?
 {{{
 info:build xgcc: warning: couldn't understand version 11.0
 ...
 :info:build ld: warning: building for macOS 10.4 is deprecated
 :info:build ld: warning: could not create compact unwind for
 __Unwind_RaiseException: non-standard register 0 being saved in prolog
 :info:build ld: warning: could not create compact unwind for
 __Unwind_ForcedUnwind: non-standard register 0 being saved in prolog
 :info:build ld: warning: could not create compact unwind for
 __Unwind_Resume: does not use RBP or RSP based frame
 :info:build ld: warning: could not create compact unwind for
 __Unwind_Resume_or_Rethrow: does not use RBP or RSP based frame
 :info:build
 MLIBS=`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/
 }}}

 {{{
 :info:build could not create compact unwind for
 std::__facet_shims::(anonymous
 namespace)::money_put_shim<wchar_t>::do_put(std::ostreambuf_iterator<wchar_t,
 std::char_traits<wchar_t> >, bool, std::ios_base&, wchar_t,
 std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>,
 std::allocator<wchar_t> > const&) const: dwarf uses DW_CFA_GNU_args_size
 :info:build ld: warning: could not create compact unwind for
 std::money_get<wchar_t, std::istreambuf_iterator<wchar_t,
 std::char_traits<wchar_t> > >::do_get(std::istreambuf_iterator<wchar_t,
 std::char_traits<wchar_t> >, std::istreambuf_iterator<wchar_t,
 std::char_traits<wchar_t> >, bool, std::ios_base&, std::_Ios_Iostate&,
 long double&) const: dwarf uses DW_CFA_GNU_args_size
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "__Unwind_DeleteException", referenced from:
 :info:build       ___cxa_end_catch in eh_catch.o
 :info:build       eh_globals_dtor(void*)  in eh_globals.o
 :info:build       ___cxa_tm_cleanup in eh_tm.o
 :info:build   "__Unwind_GetDataRelBase", referenced from:
 :info:build       base_of_encoded_value(unsigned char, _Unwind_Context*)
 in eh_personality.o
 :info:build   "__Unwind_GetLanguageSpecificData", referenced from:
 :info:build       ___gxx_personality_v0 in eh_personality.o
 :info:build   "__Unwind_GetRegionStart", referenced from:
 :info:build       base_of_encoded_value(unsigned char, _Unwind_Context*)
 in eh_personality.o
 :info:build       parse_lsda_header(_Unwind_Context*, unsigned char
 const*, lsda_header_info*) in eh_personality.o
 :info:build   "__Unwind_GetTextRelBase", referenced from:
 :info:build       base_of_encoded_value(unsigned char, _Unwind_Context*)
 in eh_personality.o
 :info:build   "__Unwind_RaiseException", referenced from:
 :info:build
 std::rethrow_exception(std::__exception_ptr::exception_ptr)  in eh_ptr.o
 :info:build       ___cxa_throw in eh_throw.o
 :info:build   "__Unwind_Resume", referenced from:
 :info:build       std::basic_istream<char, std::char_traits<char>
 >::ignore(long) in compatibility.o
 :info:build       std::basic_istream<wchar_t, std::char_traits<wchar_t>
 >::ignore(long) in compatibility.o
 :info:build       __gnu_cxx::__scoped_lock::~__scoped_lock() [clone
 .isra.0] in eh_alloc.o
 :info:build       ___cxa_call_unexpected in eh_personality.o
 :info:build       __cxxabiv1::__terminate(void (*)()) in eh_terminate.o
 :info:build       ___cxa_tm_cleanup in eh_tm.o
 :info:build       ___cxa_guard_acquire in guard.o
 :info:build       ...
 :info:build   "__Unwind_Resume_or_Rethrow", referenced from:
 :info:build       ___cxa_rethrow in eh_throw.o
 :info:build   "__Unwind_SetGR", referenced from:
 :info:build       ___gxx_personality_v0 in eh_personality.o
 :info:build   "__Unwind_SetIP", referenced from:
 :info:build       ___gxx_personality_v0 in eh_personality.o
 :info:build ld: symbol(s) not found for architecture x86_64
 :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_gcc9/libgcc9/work/build/x86_64
 -apple-darwin20/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_gcc9/libgcc9/work/build/x86_64
 -apple-darwin20/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_gcc9/libgcc9/work/build/x86_64
 -apple-darwin20/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_gcc9/libgcc9/work/build/x86_64
 -apple-darwin20/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_gcc9/libgcc9/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_gcc9/libgcc9/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_gcc9/libgcc9/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_gcc9/libgcc9/work/build"
 && /usr/bin/make -j20 -w bootstrap-lean
 :info:build Exit code: 2
 :error:build Failed to build libgcc9: command execution failed
 :debug:build Error code: CHILDSTATUS 10423 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61494>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list