https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114888
Bug ID: 114888 Summary: ICE when cross compiling binutils Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lordrasmus at gmail dot com Target Milestone: --- Created attachment 58071 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58071&action=edit aarch64.i compiling binutils fails on Fedora 40 binutils was configured like this ../binutils-2.28/configure '--build=x86_64-build_pc-linux-gnu' '--host=x86_64-build_pc-linux-gnu' '--target=arm-bbs-linux-gnueabihf' '--disable-werror' '--enable-ld=default' '--enable-gold=yes' '--enable-threads' '--enable-plugins' '--with-pkgversion=crosstool-NG ' '--disable-multilib' '--with-float=hard' i have build gcc from source and compiled the failed file here ist the output ../../binutils-2.28/gold/aarch64.cc: In constructor ‘{anonymous}::Stub_template_repertoire<big_endian>::Stub_template_repertoire()’: ../../binutils-2.28/gold/aarch64.cc:800:141: internal compiler error: in comptypes, at cp/typeck.cc:1681 0x7ca470 comptypes(tree_node*, tree_node*, int) ../../gcc/gcc/cp/typeck.cc:1681 0xcaf094 cp_build_binary_op(op_location_t const&, tree_code, tree_node*, tree_node*, int) ../../gcc/gcc/cp/typeck.cc:5505 0xa1a67b build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, int) ../../gcc/gcc/cp/call.cc:7516 0xc9e710 build_x_binary_op(op_location_t const&, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node*, tree_node**, int) ../../gcc/gcc/cp/typeck.cc:4735 0xb9d700 cp_parser_binary_expression ../../gcc/gcc/cp/parser.cc:10579 0xb9e234 cp_parser_assignment_expression ../../gcc/gcc/cp/parser.cc:10737 0xb9f37d cp_parser_constant_expression ../../gcc/gcc/cp/parser.cc:11027 0xba0446 cp_parser_initializer_clause ../../gcc/gcc/cp/parser.cc:26144 0xb9fa81 cp_parser_initializer_list ../../gcc/gcc/cp/parser.cc:26439 0xb9fa81 cp_parser_braced_list ../../gcc/gcc/cp/parser.cc:26186 0xba04ac cp_parser_initializer_clause ../../gcc/gcc/cp/parser.cc:26149 0xba5214 cp_parser_initializer ../../gcc/gcc/cp/parser.cc:26083 0xbdb253 cp_parser_init_declarator ../../gcc/gcc/cp/parser.cc:23571 0xbaecb4 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.cc:15900 0xbd4e60 cp_parser_declaration_statement ../../gcc/gcc/cp/parser.cc:14936 0xbdcd9e cp_parser_statement ../../gcc/gcc/cp/parser.cc:12892 0xbb1b97 cp_parser_statement_seq_opt ../../gcc/gcc/cp/parser.cc:13418 0xbb1dc7 cp_parser_compound_statement ../../gcc/gcc/cp/parser.cc:13272 0xbd4fd5 cp_parser_function_body ../../gcc/gcc/cp/parser.cc:25987 0xbd4fd5 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/gcc/cp/parser.cc:26038