Actions
Bug #20486
closedInternal compiler error when compile CRuby with msys2-mingw64-gcc14
Description
Follow CRuby build guide in https://github.com/ruby/ruby
Some file like numerc.c
whill produce a internal compiler error
when enble option -fno-omit-frame-pointer
gcc version is
$ gcc --version
gcc.exe (Rev2, Built by MSYS2 project) 14.1.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cc -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x64-mingw32 -I./include -I. -I./prism -I./enc/unicode/15.0.0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -c numeric.c -fno-omit-frame-pointer -freport-bug
during RTL pass: dwarf2
numeric.c: In function 'rb_float_new_in_heap':
numeric.c:1034:1: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2cfi.cc:2112
1034 | }
| ^
Please submit a full bug report, with preprocessed source.
See <https://github.com/msys2/MINGW-packages/issues> for instructions.
Without -fno-omit-frame-pointer
option, compile will pass.
OS: MSYS_NT-10.0-22631
CPU: I9-14900HX
Actions
Like0
Like0