https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82548
Bug ID: 82548 Summary: After -r 253646 GCC 8.0 can't build cross compiler for mingw32 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mateuszb at poczta dot onet.pl Target Milestone: --- -r 253645 works OK (for mingw32), -r 253646 breaks build cross compiler with error: g++ -no-pie -pipe -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -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 -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -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-array-notation.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-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o c-family/c-attribs.o c-family/c-warn.o i386-c.o winnt-c.o msformat-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 ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/home/ma/m/build/for_cross/lib -lisl -L/home/ma/m/build/for_cross/lib -L/home/ma/m/build/for_cross/lib -L/home/ma/m/build/for_cross/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -L./../zlib -lz i386.o: In function `ix86_sched_init_global(_IO_FILE*, int, int)': i386.c:(.text+0xb5f1): undefined reference to `ix86_core2i7_init_hooks()' i386.o:(.data+0x258): undefined reference to `ix86_adjust_cost(rtx_insn*, int, rtx_insn*, int, unsigned int)' i386.o:(.data+0x268): undefined reference to `ix86_issue_rate()' i386.o:(.data+0x298): undefined reference to `ix86_atom_sched_reorder(_IO_FILE*, int, rtx_insn**, int*, int)' i386.o:(.data+0x2a8): undefined reference to `ix86_macro_fusion_p()' i386.o:(.data+0x2b0): undefined reference to `ix86_macro_fusion_pair_p(rtx_insn*, rtx_insn*)' i386.o:(.data+0x2f0): undefined reference to `ia32_multipass_dfa_lookahead()' i386.o:(.data+0x3b8): undefined reference to `ix86_bd_do_dispatch(rtx_insn*, int)' i386.o:(.data+0x3c0): undefined reference to `ix86_bd_has_dispatch(rtx_insn*, int)' insn-automata.o: In function `insn_latency(rtx_insn*, rtx_insn*)': insn-automata.c:(.text+0x66cf): undefined reference to `ix86_agi_dependent(rtx_insn*, rtx_insn*)' insn-automata.c:(.text+0x6735): undefined reference to `ix86_agi_dependent(rtx_insn*, rtx_insn*)' insn-automata.c:(.text+0x6759): undefined reference to `ix86_agi_dependent(rtx_insn*, rtx_insn*)' insn-automata.c:(.text+0x6781): undefined reference to `ix86_agi_dependent(rtx_insn*, rtx_insn*)' insn-automata.c:(.text+0x6aac): undefined reference to `ix86_agi_dependent(rtx_insn*, rtx_insn*)' insn-automata.o:insn-automata.c:(.text+0x6ac4): more undefined references to `ix86_agi_dependent(rtx_insn*, rtx_insn*)' follow collect2: error: ld returned 1 exit status /home/ma/m/source/gcc-8/gcc/c/Make-lang.in:85: recipe for target 'cc1' failed make[1]: *** [cc1] Error 1 make[1]: Leaving directory '/home/ma/m/build/bc_gcc/gcc' Makefile:4285: recipe for target 'all-gcc' failed make: *** [all-gcc] Error 2