libdragon
libdragon copied to clipboard
GCC-15.2.0 internal compiler error
Version
- #748
Errors
libtool: compile: /usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/./gcc/xgcc -shared-libgcc -B/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/./gcc -nostdinc++ -L/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/src -L/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/src/.libs -L/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/libsupc++/.libs -B/opt/toolchains/mips/n64/DragonMinded/mips64-elf/bin/ -B/opt/toolchains/mips/n64/DragonMinded/mips64-elf/lib/ -isystem /opt/toolchains/mips/n64/DragonMinded/mips64-elf/include -isystem /opt/toolchains/mips/n64/DragonMinded/mips64-elf/sys-include -I/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc-15.2.0/libstdc++-v3/../libgcc -I/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/include/mips64-elf -I/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/include -I/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc-15.2.0/libstdc++-v3/libsupc++ -std=gnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=19 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=fs_path.lo -fimplicit-templates -g -O2 -c ../../../../../gcc-15.2.0/libstdc++-v3/src/c++17/fs_path.cc -o fs_path.o
during RTL pass: expand
In file included from ../../../../../gcc-15.2.0/libstdc++-v3/src/c++17/floating_to_chars.cc:25:
In function 'constexpr std::to_chars_result std::__detail::__to_chars_16(char*, char*, _Tp) [with _Tp = __int128 unsigned]',
inlined from 'constexpr std::to_chars_result std::__to_chars_i(char*, char*, _Tp, int) [with _Tp = __int128 unsigned]' at /usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/include/charconv:349:32:
/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/include/charconv:172:22: internal compiler error: in expand_fn_using_insn, at internal-fn.cc:268
172 | const unsigned __len = (__to_chars_len_2(__val) + 3) / 4;
| ^~~~~
0x1ca89e4 internal_error(char const*, ...)
../../gcc-15.2.0/gcc/diagnostic-global-context.cc:517
0x68d05b fancy_abort(char const*, int, char const*)
../../gcc-15.2.0/gcc/diagnostic.cc:1749
0x65ca26 expand_fn_using_insn
../../gcc-15.2.0/gcc/internal-fn.cc:268
0xb22253 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:11395
0xb1e55b expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:9538
0xb1e55b expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
../../gcc-15.2.0/gcc/expr.h:323
0xb1e55b expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode, expand_modifier)
../../gcc-15.2.0/gcc/expr.cc:9869
0xb24712 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:11203
0xb236e3 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:11385
0xb2426c expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:9538
0xb2426c expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
../../gcc-15.2.0/gcc/expr.h:323
0xb2426c expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**, rtx_def**, expand_modifier)
../../gcc-15.2.0/gcc/expr.cc:9117
0xb1bd5f expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode, expand_modifier)
../../gcc-15.2.0/gcc/expr.cc:11127
0xb24712 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:11203
0xb236e3 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:11385
0xb1c999 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:9538
0xb1c999 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
../../gcc-15.2.0/gcc/expr.h:323
0xb1c999 expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode, expand_modifier)
../../gcc-15.2.0/gcc/expr.cc:10641
0xb24712 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../gcc-15.2.0/gcc/expr.cc:11203
0x9f6431 expand_gimple_stmt_1
../../gcc-15.2.0/gcc/cfgexpand.cc:4301
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[5]: *** [Makefile:587: floating_to_chars.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/src/c++17'
make[4]: *** [Makefile:797: all-recursive] Error 1
make[4]: Leaving directory '/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3/src'
make[3]: *** [Makefile:577: all-recursive] Error 1
make[3]: Leaving directory '/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3'
make[2]: *** [Makefile:502: all] Error 2
make[2]: Leaving directory '/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target/mips64-elf/libstdc++-v3'
make[1]: *** [Makefile:13257: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/usr/src/toolchains/mips/n64/jopadan/libdragon/tools/toolchain/gcc_compile_target'
make: *** [Makefile:1063: all] Error 2
Same issue when trying to build an updated version of my mips64-elf-gcc AUR package.
Reported to GCC upstream here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120144
Probably the next weekly snapshot will include the patch it didn't make it into gcc-15.2.0 and gcc-15-20250809.
.3 releases are normally in spring of the next year (together with next major's .1). If we want to upgrade to GCC 15 earlier than that, can we try a weekly snapshot?