https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90330

            Bug ID: 90330
           Summary: gcc 9.1.0 fails to install on macOS 10.14.4
           Product: gcc
           Version: 9.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matthew.thompson at nasa dot gov
  Target Milestone: ---

All,

I am trying to build GCC 9.1.0 on my Macbook today, but it's failing in the
make install step. The make step was happy, but when I try to install, it
fails. 

Note that I have built GCC from 5.4 up on this machine, including 8.2.0, but
that was a while ago. There has been OS and XCode updates since then.

Also, I do have the header files installed in /usr/include.

First, I did the usual:

./contrib/download_prerequisites

I then configured gcc with:

../gcc-9.1.0/configure
--prefix=/Users/mathomp4/installed/Core/gcc-gfortran/9.1.0
--enable-languages=c,c++,fortran --disable-multilib |& tee configure.log

I then ran:

make -j4 |& tee make.log

and finally:

make install |& tee makeinstall.log

The last step dies with an error seen below that seems C++-ish. As I'm a
Fortran coder, it's a bit above me. I can also attach my build logs so you can
see if I did something wrong (possible) if you like.

The error is:

make[2]: Entering directory '/Users/mathomp4/src/GCC/gcc-9.1.0-BUILD/gcc'
g++ -std=gnu++98    -g -O2 -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H 
-o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o
c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o
c/c-fold.o c/gimple-parser.o c-family/c-common.o c-family/c-cppbuiltin.o
c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o
c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o
c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o
c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o
c-family/c-ubsan.o c-family/known-headers.o c-family/c-attribs.o
c-family/c-warn.o c-family/c-spellcheck.o i386-c.o darwin-c.o \
  cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ./../intl/libintl.a -liconv 
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a 
-L/Users/mathomp4/src/GCC/gcc-9.1.0-BUILD/./isl/.libs  -lisl
-L/Users/mathomp4/src/GCC/gcc-9.1.0-BUILD/./gmp/.libs
-L/Users/mathomp4/src/GCC/gcc-9.1.0-BUILD/./mpfr/src/.libs
-L/Users/mathomp4/src/GCC/gcc-9.1.0-BUILD/./mpc/src/.libs -lmpc -lmpfr -lgmp  
-L./../zlib -lz
ld: warning: could not create compact unwind for
__ZL18ix86_target_stringxxiiPKcS0_11fpmath_unitbb.cold: stack size is large but
stack subq instruction not found
ld: warning: could not create compact unwind for
__ZNK9vec_usage4dumpEP12mem_locationR9mem_usage: stack subq instruction is too
different from dwarf stack size
ld: warning: could not create compact unwind for
__ZL18cselib_record_setsP8rtx_insn.cold: stack size is large but stack subq
instruction not found
ld: warning: could not create compact unwind for
__ZL16may_eliminate_ivP11ivopts_dataP6iv_useP7iv_candPP9tree_nodeP9tree_code:
stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for
__ZL16may_eliminate_ivP11ivopts_dataP6iv_useP7iv_candPP9tree_nodeP9tree_code.cold:
stack size is large but stack subq instruction not found
ld: warning: could not create compact unwind for
__Z12find_reloadsP8rtx_insniiiPs: stack subq instruction is too different from
dwarf stack size
ld: warning: could not create compact unwind for
__Z12find_reloadsP8rtx_insniiiPs.cold: stack size is large but stack subq
instruction not found
ld: warning: could not create compact unwind for
__ZN12_GLOBAL__N_113pass_backprop7executeEP8function.cold: stack size is large
but stack subq instruction not found
ld: warning: could not create compact unwind for
__ZL13powi_as_multsP20gimple_stmt_iteratorjP9tree_nodex: stack subq instruction
is too different from dwarf stack size
ld: warning: could not create compact unwind for
__Z11inline_callP11cgraph_edgebP3vecIS0_7va_heap6vl_ptrEPibPb.cold: stack size
is large but stack subq instruction not found
ld: warning: could not create compact unwind for
__ZL20process_alt_operandsi.cold: stack size is large but stack subq
instruction not found
Undefined symbols for architecture x86_64:
  "std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)",
referenced from:
      ipa_icf::sem_item_optimizer::worklist_push(ipa_icf::congruence_class*) in
libbackend.a(ipa-icf.o)
     
ipa_icf::sem_item_optimizer::traverse_congruence_split(ipa_icf::congruence_class*
const&, bitmap_head* const&, ipa_icf::traverse_split_pair*) in
libbackend.a(ipa-icf.o)
      ipa_icf::sem_item_optimizer::subdivide_classes_by_sensitive_refs() in
libbackend.a(ipa-icf.o)
      ipa_icf::sem_item_optimizer::process_cong_reduction() in
libbackend.a(ipa-icf.o)
  "std::__detail::_List_node_base::_M_unhook()", referenced from:
      ipa_icf::sem_item_optimizer::worklist_pop() in libbackend.a(ipa-icf.o)
  "std::_Rb_tree_decrement(std::_Rb_tree_node_base*)", referenced from:
      std::pair<std::_Rb_tree_iterator<basic_block_def*>, bool>
std::_Rb_tree<basic_block_def*, basic_block_def*,
std::_Identity<basic_block_def*>, std::less<basic_block_def*>,
std::allocator<basic_block_def*> >::_M_insert_unique<basic_block_def*
const&>(basic_block_def* const&&&) in libbackend.a(auto-profile.o)
      std::pair<std::_Rb_tree_iterator<gimple*>, bool> std::_Rb_tree<gimple*,
gimple*, std::_Identity<gimple*>, std::less<gimple*>, std::allocator<gimple*>
>::_M_insert_unique<gimple*>(gimple*&&) in libbackend.a(auto-profile.o)
      std::_Rb_tree<char const*, std::pair<char const* const, unsigned int>,
std::_Select1st<std::pair<char const* const, unsigned int> >,
autofdo::string_compare, std::allocator<std::pair<char const* const, unsigned
int> > >::_M_get_insert_unique_pos(char const* const&) in
libbackend.a(auto-profile.o)
      std::_Rb_tree<char const*, std::pair<char const* const, unsigned int>,
std::_Select1st<std::pair<char const* const, unsigned int> >,
autofdo::string_compare, std::allocator<std::pair<char const* const, unsigned
int> >
>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<char
const* const, unsigned int> >, char const* const&) in
libbackend.a(auto-profile.o)
      std::_Rb_tree<unsigned int, std::pair<unsigned int const, long long>,
std::_Select1st<std::pair<unsigned int const, long long> >, std::less<unsigned
int>, std::allocator<std::pair<unsigned int const, long long> >
>::_M_get_insert_unique_pos(unsigned int const&) in
libbackend.a(auto-profile.o)
      std::_Rb_tree<unsigned int, std::pair<unsigned int const, long long>,
std::_Select1st<std::pair<unsigned int const, long long> >, std::less<unsigned
int>, std::allocator<std::pair<unsigned int const, long long> >
>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<unsigned
int const, long long> >, unsigned int const&) in libbackend.a(auto-profile.o)
      std::_Rb_tree<unsigned int, std::pair<unsigned int const,
autofdo::count_info>, std::_Select1st<std::pair<unsigned int const,
autofdo::count_info> >, std::less<unsigned int>,
std::allocator<std::pair<unsigned int const, autofdo::count_info> >
>::_M_get_insert_unique_pos(unsigned int const&) in
libbackend.a(auto-profile.o)
      ...
  "std::_Rb_tree_increment(std::_Rb_tree_node_base const*)", referenced from:
      autofdo::afdo_indirect_call(gimple_stmt_iterator*, std::map<unsigned int,
long long, std::less<unsigned int>, std::allocator<std::pair<unsigned int
const, long long> > > const&, bool) in libbackend.a(auto-profile.o)
      autofdo::function_instance::total_annotated_count() const in
libbackend.a(auto-profile.o)
      autofdo::autofdo_source_profile::~autofdo_source_profile() in
libbackend.a(auto-profile.o)
      autofdo::function_instance::find_icall_target_map(gcall*,
std::map<unsigned int, long long, std::less<unsigned int>,
std::allocator<std::pair<unsigned int const, long long> > >*) const in
libbackend.a(auto-profile.o)
      autofdo::autofdo_source_profile::update_inlined_ind_target(gcall*,
autofdo::count_info*) in libbackend.a(auto-profile.o)
  "std::_Rb_tree_increment(std::_Rb_tree_node_base*)", referenced from:
      autofdo::function_instance::~function_instance() in
libbackend.a(auto-profile.o)
      std::_Rb_tree<char const*, std::pair<char const* const, unsigned int>,
std::_Select1st<std::pair<char const* const, unsigned int> >,
autofdo::string_compare, std::allocator<std::pair<char const* const, unsigned
int> >
>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<char
const* const, unsigned int> >, char const* const&) in
libbackend.a(auto-profile.o)
      std::_Rb_tree<unsigned int, std::pair<unsigned int const, long long>,
std::_Select1st<std::pair<unsigned int const, long long> >, std::less<unsigned
int>, std::allocator<std::pair<unsigned int const, long long> >
>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<unsigned
int const, long long> >, unsigned int const&) in libbackend.a(auto-profile.o)
      std::_Rb_tree<unsigned int, std::pair<unsigned int const,
autofdo::count_info>, std::_Select1st<std::pair<unsigned int const,
autofdo::count_info> >, std::less<unsigned int>,
std::allocator<std::pair<unsigned int const, autofdo::count_info> >
>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<unsigned
int const, autofdo::count_info> >, unsigned int const&) in
libbackend.a(auto-profile.o)
      std::_Rb_tree<std::pair<unsigned int, unsigned int>,
std::pair<std::pair<unsigned int, unsigned int> const,
autofdo::function_instance*>, std::_Select1st<std::pair<std::pair<unsigned int,
unsigned int> const, autofdo::function_instance*> >,
std::less<std::pair<unsigned int, unsigned int> >,
std::allocator<std::pair<std::pair<unsigned int, unsigned int> const,
autofdo::function_instance*> >
>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<std::pair<unsigned
int, unsigned int> const, autofdo::function_instance*> >, std::pair<unsigned
int, unsigned int> const&) in libbackend.a(auto-profile.o)
      std::_Rb_tree<unsigned int, std::pair<unsigned int const,
autofdo::function_instance*>, std::_Select1st<std::pair<unsigned int const,
autofdo::function_instance*> >, std::less<unsigned int>,
std::allocator<std::pair<unsigned int const, autofdo::function_instance*> >
>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<unsigned
int const, autofdo::function_instance*> >, unsigned int const&) in
libbackend.a(auto-profile.o)
      ivs_params_clear(std::map<isl_id*, tree_node*, std::less<isl_id*>,
std::allocator<std::pair<isl_id* const, tree_node*> > >&) in
libbackend.a(graphite-isl-ast-to-gimple.o)
      ...
  "std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)", referenced from:
      std::pair<std::_Rb_tree_iterator<basic_block_def*>, bool>
std::_Rb_tree<basic_block_def*, basic_block_def*,
std::_Identity<basic_block_def*>, std::less<basic_block_def*>,
std::allocator<basic_block_def*> >::_M_insert_unique<basic_block_def*
const&>(basic_block_def* const&&&) in libbackend.a(auto-profile.o)
      std::pair<std::_Rb_tree_iterator<gimple*>, bool> std::_Rb_tree<gimple*,
gimple*, std::_Identity<gimple*>, std::less<gimple*>, std::allocator<gimple*>
>::_M_insert_unique<gimple*>(gimple*&&) in libbackend.a(auto-profile.o)
      std::_Rb_tree<unsigned int, std::pair<unsigned int const, long long>,
std::_Select1st<std::pair<unsigned int const, long long> >, std::less<unsigned
int>, std::allocator<std::pair<unsigned int const, long long> >
>::_M_insert_node(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::_Rb_tree_node<std::pair<unsigned int const, long long> >*) in
libbackend.a(auto-profile.o)
      autofdo::string_table::read() (.part.0) in libbackend.a(auto-profile.o)
      std::_Rb_tree_iterator<std::pair<unsigned int const, autofdo::count_info>
> std::_Rb_tree<unsigned int, std::pair<unsigned int const,
autofdo::count_info>, std::_Select1st<std::pair<unsigned int const,
autofdo::count_info> >, std::less<unsigned int>,
std::allocator<std::pair<unsigned int const, autofdo::count_info> >
>::_M_emplace_hint_unique<std::piecewise_construct_t const&,
std::tuple<unsigned int const&>, std::tuple<>
>(std::_Rb_tree_const_iterator<std::pair<unsigned int const,
autofdo::count_info> >, std::piecewise_construct_t const&&&,
std::tuple<unsigned int const&>&&, std::tuple<>&&) in
libbackend.a(auto-profile.o)
     
autofdo::function_instance::read_function_instance(auto_vec<autofdo::function_instance*,
0ul>*, long long) in libbackend.a(auto-profile.o)
      autofdo::autofdo_source_profile::read() in libbackend.a(auto-profile.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../gcc-9.1.0/gcc/c/Make-lang.in:85: cc1] Error 1
make[2]: Leaving directory '/Users/mathomp4/src/GCC/gcc-9.1.0-BUILD/gcc'
make[1]: *** [Makefile:5084: install-gcc] Error 2
make[1]: Leaving directory '/Users/mathomp4/src/GCC/gcc-9.1.0-BUILD'
make: *** [Makefile:2409: install] Error 2

Reply via email to