https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114910
--- Comment #11 from Chris Packham <judge.packham at gmail dot com> --- After working around things by not passing --enable-target-optspace I end up getting an ICE later in the toolchain build. [ALL ] during RTL pass: mach [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/libstdc++-v3/src/c++17/fs_path.cc: In member function 'void std::filesystem::__cxx11::path::_M_append(std::basic_string_view<char>)': [ERROR] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/libstdc++-v3/src/c++17/fs_path.cc:868:1: internal compiler error: in priority, at haifa-sched.cc:1601 [ALL ] 868 | } [ALL ] | ^ [ALL ] 0x43ad27 priority [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/haifa-sched.cc:1601 [ALL ] 0x13c48f9 priority [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/haifa-sched.cc:1597 [ALL ] 0x13c48f9 apply_replacement [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/haifa-sched.cc:4732 [ALL ] 0x13c57df undo_replacements_for_backtrack [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/haifa-sched.cc:4467 [ALL ] 0x13c5a04 restore_last_backtrack_point [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/haifa-sched.cc:4564 [ALL ] 0x13c9230 schedule_block(basic_block_def**, void*) [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/haifa-sched.cc:6974 [ALL ] 0x1479206 schedule_ebb(rtx_insn*, rtx_insn*, bool) [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/sched-ebb.cc:536 [ALL ] 0x14797db schedule_ebbs() [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/sched-ebb.cc:655 [ALL ] 0xeebbee c6x_reorg [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/config/c6x/c6x.cc:5929 [ALL ] 0xb5bba9 execute [ALL ] /home/ctng/crosstool-ng/.build/tic6x-elf/src/gcc/gcc/reorg.cc:3931 [ALL ] Please submit a full bug report, with preprocessed source (by using -freport-bug). [ALL ] Please include the complete backtrace with any bug report. [ALL ] See <https://gcc.gnu.org/bugs/> for instructions.