
Issue #21286 has been updated by Earlopain (Earlopain _). I'm getting the same thing in windows CI runs for a bunch of other first-party gems: * `date` * `fiddle` * `io-console` * `stringio` * `racc` * `prism` The errors all look similar, for example here it is for `prism`: ``` api_pack.c: In function 'Init_prism_pack': api_pack.c:269:56: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types] 269 | rb_define_singleton_method(rb_cPrismPack, "parse", pack_parse, 3); | ^~~~~~~~~~ | | | VALUE (*)(VALUE, VALUE, VALUE, VALUE) {aka long long unsigned int (*)(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)} In file included from C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby/internal/anyargs.h:76, from C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby/ruby.h:27, from C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby.h:38, from D:/a/rubocop/rubocop/vendor/bundle/ruby/3.4.0/gems/prism-1.4.0/ext/prism/extension.h:6, from api_pack.c:1: C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby/internal/intern/class.h:365:68: note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but argument is of type 'VALUE (*)(VALUE, VALUE, VALUE, VALUE)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)'} 365 | void rb_define_singleton_method(VALUE obj, const char *mid, VALUE(*func)(ANYARGS), int arity); | ~~~~~~~^~~~~~~~~~~~~~ api_pack.c:181:1: note: 'pack_parse' declared here 181 | pack_parse(VALUE self, VALUE version_symbol, VALUE variant_symbol, VALUE format_string) { | ^~~~~~~~~~ make: *** [Makefile:251: api_pack.o] Error 1 ``` Those are actually almost all gems in my lockfile that have native extensions, so this looks like a very widespread issue (in CI at least) ---------------------------------------- Bug #21286: Windows - MSYS2 just updated to GCC 15.1.0, builds failing https://bugs.ruby-lang.org/issues/21286#change-112807 * Author: MSP-Greg (Greg L) * Status: Open * ruby -v: master * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- MSYS2 just updated to GCC 15.1.0, and the ruby-loco builds failed to compile. See [MinGW](https://github.com/MSP-Greg/ruby-loco/actions/runs/14693708990/job/412325097...) & [UCRT](https://github.com/MSP-Greg/ruby-loco/actions/runs/14693775816/job/412326620...) Also, I compiled mswin locally with the recent VS 'preview' release, and the bug has been fixed. -- https://bugs.ruby-lang.org/