[solved] Problem with image build centos7

hi there
i start image build on centos 7 but i get this problem

collect2: error: ld returned 1 exit status
make[5]: *** [cc1] Error 1
make[5]: Leaving directory `/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0-initial/gcc'
make[4]: *** [all-gcc] Error 2
make[4]: Leaving directory `/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0-initial'
make[3]: *** [/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0-initial/.built] Error 2
make[3]: Leaving directory `/home/skywave/openwrt/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#4.66#1.42#35.08
make[2]: *** [toolchain/gcc/initial/compile] Error 2
make[2]: Leaving directory `/home/skywave/openwrt'
make[1]: *** [/home/skywave/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory `/home/skywave/openwrt'
make: *** [world] Error 2

thx

All the important lines are the ones just above what you've posted.

hi jeff

tree-ssa-live.o: In function `remove_unused_locals()':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-live.c:837: undefined reference to `ssa_default_def(function*, tree_node*)'
tree-ssa-live.o: In function `remove_unused_locals()':
tree-ssa-live.c:(.text+0x15bf): undefined reference to `set_ssa_default_def(function*, tree_node*, tree_node*)'
tree-ssa-live.o: In function `calculate_live_ranges(_var_map*, bool)':
tree-ssa-live.c:(.text+0x1fd8): undefined reference to `ssa_default_def(function*, tree_node*)'
tree-ssa-loop-ch.o: In function `do_while_loop_p(loop*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-loop-ch.c:152: undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ch.o: In function `do_while_loop_p(loop*)':
tree-ssa-loop-ch.c:(.text+0x165): undefined reference to `last_and_only_stmt(basic_block_def*)'
tree-ssa-loop-ch.o: In function `(anonymous namespace)::ch_base::copy_headers(function*)':
tree-ssa-loop-ch.c:(.text+0x5c4): undefined reference to `gimple_duplicate_sese_region(edge_def*, edge_def*, basic_block_def**, unsigned int, basic_block_def**, bool)'
tree-ssa-loop-ch.c:(.text+0x6d0): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-ch.c:(.text+0x864): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ch.c:(.text+0x921): undefined reference to `eni_size_weights'
tree-ssa-loop-ch.c:(.text+0x929): undefined reference to `estimate_num_insns(gimple*, eni_weights*)'
tree-ssa-loop-ivcanon.o: In function `tree_estimate_loop_size(loop*, edge_def*, edge_def*, loop_size*, int)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-loop-ivcanon.c:245: undefined reference to `eni_size_weights'
tree-ssa-loop-ivcanon.o: In function `tree_estimate_loop_size(loop*, edge_def*, edge_def*, loop_size*, int)':
tree-ssa-loop-ivcanon.c:(.text+0x381): undefined reference to `estimate_num_insns(gimple*, eni_weights*)'
tree-ssa-loop-ivcanon.c:(.text+0x5d9): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ivcanon.c:(.text+0x636): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ivcanon.o: In function `canonicalize_loop_induction_variables(loop*, bool, unroll_level, bool)':
tree-ssa-loop-ivcanon.c:(.text+0xff0): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ivcanon.c:(.text+0x134c): undefined reference to `chrec_contains_undetermined(tree_node const*)'
tree-ssa-loop-ivcanon.c:(.text+0x154c): undefined reference to `chrec_contains_undetermined(tree_node const*)'
tree-ssa-loop-ivcanon.c:(.text+0x159b): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ivcanon.c:(.text+0x16ee): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ivcanon.c:(.text+0x19c4): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-ivcanon.o: In function `tree_unroll_loops_completely(bool, bool)':
tree-ssa-loop-ivcanon.c:(.text+0x2c85): undefined reference to `replace_uses_by(tree_node*, tree_node*)'
tree-ssa-loop-ivcanon.c:(.text+0x2d21): undefined reference to `replace_uses_by(tree_node*, tree_node*)'
tree-ssa-loop-ivcanon.c:(.text+0x2d97): undefined reference to `cleanup_tree_cfg()'
tree-ssa-loop-ivcanon.c:(.text+0x2df4): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-ivcanon.c:(.text+0x2e00): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-ivcanon.o: In function `canonicalize_induction_variables()':
tree-ssa-loop-ivcanon.c:(.text+0x3068): undefined reference to `need_ssa_update_p(function*)'
tree-ssa-loop-manip.o: In function `create_iv(tree_node*, tree_node*, tree_node*, loop*, gimple_stmt_iterator*, bool, tree_node**, tree_node**)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-loop-manip.c:138: undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-ssa-loop-manip.o: In function `create_iv(tree_node*, tree_node*, tree_node*, loop*, gimple_stmt_iterator*, bool, tree_node**, tree_node**)':
tree-ssa-loop-manip.c:(.text+0xeeb): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-manip.c:(.text+0xf03): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-manip.o: In function `rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)':
tree-ssa-loop-manip.c:(.text+0x20c3): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-manip.c:(.text+0x20e9): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-manip.c:(.text+0x242b): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-ssa-loop-manip.c:(.text+0x2442): undefined reference to `create_new_def_for(tree_node*, gimple*, tree_node**)'
tree-ssa-loop-manip.c:(.text+0x2468): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-manip.o: In function `split_loop_exit_edge(edge_def*)':
tree-ssa-loop-manip.c:(.text+0x27bc): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-ssa-loop-manip.c:(.text+0x27ce): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-manip.o: In function `ip_normal_pos(loop*)':
tree-ssa-loop-manip.c:(.text+0x28a6): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-manip.o: In function `standard_iv_increment_position(loop*, gimple_stmt_iterator*, bool*)':
tree-ssa-loop-manip.c:(.text+0x2913): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-manip.o: In function `gimple_duplicate_loop_to_header_edge(loop*, edge_def*, unsigned int, simple_bitmap_def*, edge_def*, vec<edge_def*, va_heap, vl_ptr>*, int)':
tree-ssa-loop-manip.c:(.text+0x2a63): undefined reference to `add_phi_args_after_copy_bb(basic_block_def*)'
tree-ssa-loop-manip.o: In function `can_unroll_loop_p(loop*, unsigned int, tree_niter_desc*)':
tree-ssa-loop-manip.c:(.text+0x2b4b): undefined reference to `eni_size_weights'
tree-ssa-loop-manip.o: In function `tree_transform_and_unroll_loop(loop*, unsigned int, edge_def*, tree_niter_desc*, void (*)(loop*, void*), void*)':
tree-ssa-loop-manip.c:(.text+0x2f05): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-manip.c:(.text+0x3134): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-ssa-loop-manip.c:(.text+0x314b): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-manip.c:(.text+0x3162): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-manip.c:(.text+0x3373): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-manip.o: In function `canonicalize_loop_ivs(loop*, tree_node**, bool)':
tree-ssa-loop-manip.c:(.text+0x3c59): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-manip.c:(.text+0x3c80): undefined reference to `extract_true_false_edges_from_block(basic_block_def*, edge_def**, edge_def**)'
tree-ssa-loop-manip.c:(.text+0x3cfc): undefined reference to `remove_phi_node(gimple_stmt_iterator*, bool)'
tree-ssa-loop-split.o: In function `(anonymous namespace)::pass_loop_split::execute(function*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-loop-split.c:80: undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-split.o: In function `(anonymous namespace)::pass_loop_split::execute(function*)':
tree-ssa-loop-split.c:(.text+0x869): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-split.c:(.text+0x9a5): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-split.c:(.text+0x9ca): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-split.c:(.text+0xc20): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-ssa-loop-split.c:(.text+0xc37): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-split.c:(.text+0xc4e): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop-split.c:(.text+0x10ca): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-split.c:(.text+0x1157): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-split.c:(.text+0x116b): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-split.c:(.text+0x1287): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-split.c:(.text+0x129b): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-unswitch.o:/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-loop-unswitch.c:199: more undefined references to `last_stmt(basic_block_def*)' follow
tree-ssa-loop-unswitch.o: In function `tree_unswitch_single_loop(loop*, int)':
tree-ssa-loop-unswitch.c:(.text+0x952): undefined reference to `extract_true_false_edges_from_block(basic_block_def*, edge_def**, edge_def**)'
tree-ssa-loop-unswitch.c:(.text+0x99e): undefined reference to `update_ssa(unsigned int)'
tree-ssa-loop-unswitch.c:(.text+0xa45): undefined reference to `eni_size_weights'
tree-ssa-loop-unswitch.c:(.text+0xb7f): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-unswitch.o: In function `tree_ssa_unswitch_loops()':
tree-ssa-loop-unswitch.c:(.text+0x1110): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-unswitch.c:(.text+0x112d): undefined reference to `extract_true_false_edges_from_block(basic_block_def*, edge_def**, edge_def**)'
tree-ssa-loop-unswitch.c:(.text+0x1643): undefined reference to `extract_true_false_edges_from_block(basic_block_def*, edge_def**, edge_def**)'
tree-ssa-loop-unswitch.c:(.text+0x1708): undefined reference to `last_stmt(basic_block_def*)'
tree-ssa-loop-unswitch.c:(.text+0x1945): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-loop.o: In function `tree_num_loop_insns(loop*, eni_weights*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-loop.c:830: undefined reference to `estimate_num_insns(gimple*, eni_weights*)'
tree-ssa-phiprop.o: In function `phiprop_insert_phi(basic_block_def*, gphi*, gimple*, phiprop_d*, unsigned long)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-phiprop.c:220: undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-ssa-phiprop.o: In function `phiprop_insert_phi(basic_block_def*, gphi*, gimple*, phiprop_d*, unsigned long)':
tree-ssa-phiprop.c:(.text+0x4a6): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-ssa-phiprop.o: In function `(anonymous namespace)::pass_phiprop::execute(function*)':
tree-ssa-phiprop.c:(.text+0x128b): undefined reference to `stmt_can_throw_internal(gimple*)'
tree-ssa-propagate.o: In function `simulate_stmt(gimple*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-propagate.c:254: undefined reference to `stmt_ends_bb_p(gimple*)'
tree-ssa-propagate.o: In function `substitute_and_fold(tree_node* (*)(tree_node*), bool (*)(gimple_stmt_iterator*))':
tree-ssa-propagate.c:(.text+0x1508): undefined reference to `gimple_purge_all_dead_eh_edges(bitmap_head const*)'
tree-ssa-propagate.c:(.text+0x1514): undefined reference to `fixup_noreturn_call(gimple*)'
tree-ssa-propagate.c:(.text+0x1599): undefined reference to `remove_phi_node(gimple_stmt_iterator*, bool)'
tree-ssa-propagate.o: In function `substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)':
tree-ssa-propagate.c:(.text+0x1db2): undefined reference to `maybe_clean_or_replace_eh_stmt(gimple*, gimple*)'
tree-ssa-propagate.c:(.text+0x204f): undefined reference to `stmt_could_throw_p(gimple*)'
tree-ssa-scopedtables.o: In function `avail_expr_hash(expr_hash_elt*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssa-scopedtables.c:374: undefined reference to `get_ref_base_and_extent(tree_node*, long*, long*, long*, bool*)'
tree-ssa-scopedtables.o: In function `expr_elt_hasher::equal(expr_hash_elt* const&, expr_hash_elt* const&)':
tree-ssa-scopedtables.c:(.text+0x16a5): undefined reference to `stmt_could_throw_p(gimple*)'
tree-ssa-scopedtables.c:(.text+0x16b6): undefined reference to `lookup_stmt_eh_lp(gimple*)'
tree-ssa-scopedtables.c:(.text+0x16c2): undefined reference to `lookup_stmt_eh_lp(gimple*)'
tree-ssa-scopedtables.c:(.text+0x19a9): undefined reference to `get_ref_base_and_extent(tree_node*, long*, long*, long*, bool*)'
tree-ssa-scopedtables.c:(.text+0x19da): undefined reference to `get_ref_base_and_extent(tree_node*, long*, long*, long*, bool*)'
tree-ssanames.o: In function `verify_ssaname_freelists(function*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-ssanames.c:209: undefined reference to `names_to_release'
tree-ssanames.o: In function `release_ssa_name_fn(function*, tree_node*)':
tree-ssanames.c:(.text+0x1787): undefined reference to `name_registered_for_update_p(tree_node*)'
tree-ssanames.c:(.text+0x18dc): undefined reference to `release_ssa_name_after_update_ssa(tree_node*)'
tree-stdarg.o: In function `expand_ifn_va_arg(function*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-stdarg.c:1043: undefined reference to `chkp_function_instrumented_p(tree_node*)'
tree-stdarg.o: In function `expand_ifn_va_arg(function*)':
tree-stdarg.c:(.text+0x347): undefined reference to `gimple_find_sub_bbs(gimple*, gimple_stmt_iterator*)'
tree-stdarg.c:(.text+0x3b2): undefined reference to `update_ssa(unsigned int)'
tree-stdarg.c:(.text+0x3cd): undefined reference to `chkp_fixup_inlined_call(tree_node*, tree_node*)'
tree-tailcall.o: In function `arg_needs_copy_p(tree_node*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-tailcall.c:802: undefined reference to `ssa_default_def(function*, tree_node*)'
tree-tailcall.o: In function `create_tailcall_accumulator(char const*, basic_block_def*, tree_node*)':
tree-tailcall.c:(.text+0x69f): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-tailcall.c:(.text+0x6c7): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-tailcall.o: In function `tree_optimize_tail_calls_1(bool)':
tree-tailcall.c:(.text+0x10e7): undefined reference to `last_stmt(basic_block_def*)'
tree-tailcall.c:(.text+0x11c4): undefined reference to `ssa_default_def(function*, tree_node*)'
tree-tailcall.c:(.text+0x11f1): undefined reference to `set_ssa_default_def(function*, tree_node*, tree_node*)'
tree-tailcall.c:(.text+0x11fc): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-tailcall.c:(.text+0x1226): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-tailcall.c:(.text+0x1572): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-tailcall.c:(.text+0x179f): undefined reference to `last_stmt(basic_block_def*)'
tree-tailcall.c:(.text+0x19f9): undefined reference to `mark_virtual_operands_for_renaming(function*)'
tree-tailcall.o: In function `add_successor_phi_arg(edge_def*, tree_node*, tree_node*)':
tree-tailcall.c:(.text+0x300): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.o: In function `slpeel_duplicate_current_defs_from_edges(edge_def*, edge_def*) [clone .isra.36]':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/tree-vect-loop-manip.c:349: undefined reference to `get_virtual_phi(basic_block_def*)'
tree-vect-loop-manip.o: In function `slpeel_duplicate_current_defs_from_edges(edge_def*, edge_def*) [clone .isra.36]':
tree-vect-loop-manip.c:(.text+0x2b0): undefined reference to `get_virtual_phi(basic_block_def*)'
tree-vect-loop-manip.c:(.text+0x2d2): undefined reference to `get_current_def(tree_node*)'
tree-vect-loop-manip.c:(.text+0x34d): undefined reference to `get_current_def(tree_node*)'
tree-vect-loop-manip.c:(.text+0x363): undefined reference to `get_current_def(tree_node*)'
tree-vect-loop-manip.c:(.text+0x372): undefined reference to `set_current_def(tree_node*, tree_node*)'
tree-vect-loop-manip.o: In function `rename_use_op(ssa_use_operand_t*)':
tree-vect-loop-manip.c:(.text+0x459): undefined reference to `get_current_def(tree_node*)'
tree-vect-loop-manip.o: In function `slpeel_update_phi_nodes_for_loops(_loop_vec_info*, loop*, loop*, bool) [clone .isra.54]':
tree-vect-loop-manip.c:(.text+0x10ee): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-vect-loop-manip.c:(.text+0x110d): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.o: In function `slpeel_update_phi_nodes_for_guard1(loop*, loop*, edge_def*, edge_def*)':
tree-vect-loop-manip.c:(.text+0x1267): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-vect-loop-manip.c:(.text+0x12b3): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.c:(.text+0x12ca): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.o: In function `slpeel_tree_duplicate_loop_to_edge_cfg(loop*, loop*, edge_def*)':
tree-vect-loop-manip.c:(.text+0x14bc): undefined reference to `add_phi_args_after_copy(basic_block_def**, unsigned int, edge_def*)'
tree-vect-loop-manip.c:(.text+0x17d3): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.c:(.text+0x1908): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.c:(.text+0x19eb): undefined reference to `add_phi_args_after_copy(basic_block_def**, unsigned int, edge_def*)'
tree-vect-loop-manip.o: In function `vect_do_peeling(_loop_vec_info*, tree_node*, tree_node*, tree_node**, int, bool, bool)':
tree-vect-loop-manip.c:(.text+0x2521): undefined reference to `update_ssa(unsigned int)'
tree-vect-loop-manip.c:(.text+0x2cdc): undefined reference to `get_current_def(tree_node*)'
tree-vect-loop-manip.c:(.text+0x2d75): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-vect-loop-manip.c:(.text+0x2d8c): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.c:(.text+0x2da3): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.c:(.text+0x2e7e): undefined reference to `delete_update_ssa()'
tree-vect-loop-manip.c:(.text+0x34c9): undefined reference to `delete_update_ssa()'
tree-vect-loop-manip.c:(.text+0x355e): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-vect-loop-manip.c:(.text+0x35ad): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.o: In function `vect_loop_versioning(_loop_vec_info*, unsigned int, bool)':
tree-vect-loop-manip.c:(.text+0x5029): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
tree-vect-loop-manip.c:(.text+0x5051): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
tree-vect-loop-manip.c:(.text+0x50cc): undefined reference to `update_ssa(unsigned int)'
tree-vect-loop-manip.o: In function `slpeel_duplicate_current_defs_from_edges(edge_def*, edge_def*) [clone .isra.36]':
tree-vect-loop-manip.c:(.text+0x2fa): undefined reference to `set_current_def(tree_node*, tree_node*)'
auto-profile.o: In function `(anonymous namespace)::pass_ipa_auto_profile::execute(function*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/auto-profile.c:1303: undefined reference to `last_stmt(basic_block_def*)'
auto-profile.o: In function `(anonymous namespace)::pass_ipa_auto_profile::execute(function*)':
auto-profile.c:(.text+0x282c): undefined reference to `execute_fixup_cfg()'
auto-profile.c:(.text+0x298e): undefined reference to `update_ssa(unsigned int)'
auto-profile.c:(.text+0x2e4c): undefined reference to `optimize_inline_calls(tree_node*)'
auto-profile.c:(.text+0x2e5b): undefined reference to `update_ssa(unsigned int)'
auto-profile.c:(.text+0x2ea1): undefined reference to `cleanup_tree_cfg()'
auto-profile.o: In function `autofdo::early_inline()':
auto-profile.c:(.text+0xaa): undefined reference to `update_ssa(unsigned int)'
gimple-low.o: In function `lower_sequence(gimple**, lower_data*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/gimple-low.c:768: undefined reference to `build_addr(tree_node*)'
gimple-low.o: In function `lower_sequence(gimple**, lower_data*)':
gimple-low.c:(.text+0xcb0): undefined reference to `build_addr(tree_node*)'
gimple-ssa-isolate-paths.o: In function `insert_trap(gimple_stmt_iterator*, tree_node*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/gimple-ssa-isolate-paths.c:105: undefined reference to `stmt_ends_bb_p(gimple*)'
gimple-ssa-nonnull-compare.o: In function `do_warn_nonnull_compare(function*, tree_node*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/gimple-ssa-nonnull-compare.c:45: undefined reference to `ssa_default_def(function*, tree_node*)'
gimple-streamer-in.o: In function `input_bb(lto_input_block*, LTO_tags, data_in*, function*, int)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/gimple-streamer-in.c:50: undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/gimple-streamer-in.c:50: undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/gimple-streamer-in.c:75: undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
gimple-streamer-in.o: In function `input_bb(lto_input_block*, LTO_tags, data_in*, function*, int)':
gimple-streamer-in.c:(.text+0x62b): undefined reference to `add_stmt_to_eh_lp(gimple*, int)'
gimple-streamer-out.o: In function `output_bb(output_block*, basic_block_def*, function*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/gimple-streamer-out.c:228: undefined reference to `lookup_stmt_eh_lp_fn(function*, gimple*)'
ipa-inline-transform.o: In function `cgraph_node::can_remove_if_no_direct_calls_and_refs_p()':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/cgraph.h:2861: undefined reference to `chkp_function_instrumented_p(tree_node*)'
ipa-inline-transform.o: In function `inline_transform(cgraph_node*)':
ipa-inline-transform.c:(.text+0x5af): undefined reference to `tree_function_versioning(tree_node*, tree_node*, vec<ipa_replace_map*, va_gc, vl_embed>*, bool, bitmap_head*, bool, bitmap_head*, basic_block_def*)'
ipa-inline-transform.c:(.text+0x697): undefined reference to `optimize_inline_calls(tree_node*)'
ipa-inline-transform.c:(.text+0x6c2): undefined reference to `execute_fixup_cfg()'
ipa-icf.o: In function `ipa_icf::sem_function::dump_to_file(_IO_FILE*)':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/ipa-icf.h:314: undefined reference to `dump_function_to_file(tree_node*, _IO_FILE*, int)'
omp-simd-clone.o: In function `simd_clone_linear_addend(cgraph_node*, unsigned int, tree_node*, basic_block_def*) [clone .isra.28]':
/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0/gcc/omp-simd-clone.c:1055: undefined reference to `get_or_create_ssa_default_def(function*, tree_node*)'
omp-simd-clone.o: In function `simd_clone_adjust(cgraph_node*)':
omp-simd-clone.c:(.text+0x1f8a): undefined reference to `set_ssa_default_def(function*, tree_node*, tree_node*)'
omp-simd-clone.c:(.text+0x2180): undefined reference to `maybe_clean_eh_stmt(gimple*)'
omp-simd-clone.c:(.text+0x2191): undefined reference to `gimple_purge_dead_eh_edges(basic_block_def*)'
omp-simd-clone.c:(.text+0x2384): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
omp-simd-clone.c:(.text+0x23b8): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x24b6): undefined reference to `ssa_default_def(function*, tree_node*)'
omp-simd-clone.c:(.text+0x2928): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
omp-simd-clone.c:(.text+0x2941): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x2963): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x2ba3): undefined reference to `ssa_default_def(function*, tree_node*)'
omp-simd-clone.c:(.text+0x2c73): undefined reference to `ssa_default_def(function*, tree_node*)'
omp-simd-clone.c:(.text+0x2f5b): undefined reference to `ssa_default_def(function*, tree_node*)'
omp-simd-clone.c:(.text+0x310e): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
omp-simd-clone.c:(.text+0x3127): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x314c): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x31cb): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
omp-simd-clone.c:(.text+0x31e4): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x31fd): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x3492): undefined reference to `update_ssa(unsigned int)'
omp-simd-clone.c:(.text+0x39bb): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
omp-simd-clone.c:(.text+0x39ef): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x3a0e): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x3eb1): undefined reference to `create_phi_node(tree_node*, basic_block_def*)'
omp-simd-clone.c:(.text+0x3ec5): undefined reference to `add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int)'
omp-simd-clone.c:(.text+0x4757): undefined reference to `get_or_create_ssa_default_def(function*, tree_node*)'
collect2: error: ld returned 1 exit status
make[5]: *** [cc1] Error 1
make[5]: Leaving directory `/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0-initial/gcc'
make[4]: *** [all-gcc] Error 2
make[4]: Leaving directory `/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0-initial'
make[3]: *** [/home/skywave/openwrt/build_dir/toolchain-mips_24kc_gcc-7.4.0_musl/gcc-7.4.0-initial/.built] Error 2
make[3]: Leaving directory `/home/skywave/openwrt/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#4.93#1.60#35.60
make[2]: *** [toolchain/gcc/initial/compile] Error 2
make[2]: Leaving directory `/home/skywave/openwrt'
make[1]: *** [/home/skywave/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory `/home/skywave/openwrt'

in forum i cant past all result is what i past helpful ?

Yes, helpful! It shows that the problem appears to be in linking gcc-7.4.0-initial

I don't know the answer, but at least we know the symptoms of the problem now.

Based on some vague recollections, CentOS was shipping with a relatively ancient version of GCC (4.x??). If wiping everything in the build tree with make distclean and retrying doesn't help, you might want to see if you can upgrade to a more current version of GCC. Might even want to consider that before trying again, especially if you've got GCC v4 or even v5.

2 Likes

Worth trying with a fresh user too..... sometimes things like alternate-architecture-chroots play sorcery in ones behind the scene environment.

If it still happens post the output of the command;

set

thank u jeff your reply very helpful
i solved it as you say at first i clean all my configuration with (make distclean) and i upgrade my gcc to 5 after that i do ( make defconfig ) , and (make download ) and start make its done
thx

1 Like

@mustafan If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.