[ruby-core:117859] [Ruby master Bug#20486] Internal compiler error when compile CRuby with msys2-mingw64-gcc14
From:
"nobu (Nobuyoshi Nakada) via ruby-core" <ruby-core@...>
Date:
2024-05-13 08:42:48 UTC
List:
ruby-core #117859
Issue #20486 has been updated by nobu (Nobuyoshi Nakada).
Status changed from Open to Third Party's Issue
"internal compiler error" means a bug of gcc.
We can do nothing for it.
----------------------------------------
Bug #20486: Internal compiler error when compile CRuby with msys2-mingw64-gcc14
https://bugs.ruby-lang.org/issues/20486#change-108267
* Author: nekoyama32767 (Jinsong Yu)
* Status: Third Party's Issue
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
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
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/