Skip to content

[CI][Ruby] AMD64 Windows MinGW 64 GLib & Ruby fails while installing fiddle (1.1.8) #46262

Closed

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

The AMD64 Windows MinGW 64 GLib & Ruby is failing on main and PRs with:

 current directory:
C:/hostedtoolcache/windows/Ruby/3.4.3/x64/lib/ruby/gems/3.4.0/gems/fiddle-1.1.8/ext/fiddle
make.exe DESTDIR\= sitearchdir\=./.gem.20250429-2880-pcd58g
sitelibdir\=./.gem.20250429-2880-pcd58g
generating fiddle-x64-mingw-ucrt.def
compiling closure.c
closure.c: In function 'Init_fiddle_closure':
closure.c:434:52: error: passing argument 3 of 'rb_define_method' from
incompatible pointer type [-Wincompatible-pointer-types]
  434 |     rb_define_method(cFiddleClosure, "initialize", initialize, -1);
      |                                                    ^~~~~~~~~~
      |                                                    |
|                                                    VALUE (*)(int,  VALUE
*, VALUE) {aka long long unsigned int (*)(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:78,
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 ./fiddle.h:4,
                 from closure.c:1:
C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby/internal/method.h:99:61:
note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but
argument is of type 'VALUE (*)(int,  VALUE *, VALUE)' {aka 'long long unsigned
int (*)(int,  long long unsigned int *, long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE
(*func)(ANYARGS), int arity);
|                                                    
~~~~~~~~^~~~~~~~~~~~~~
closure.c:352:1: note: 'initialize' declared here
  352 | initialize(int argc, VALUE *argv, VALUE self)
      | ^~~~~~~~~~
closure.c:441:46: error: passing argument 3 of 'rb_define_method' from
incompatible pointer type [-Wincompatible-pointer-types]
  441 |     rb_define_method(cFiddleClosure, "to_i", to_i, 0);
      |                                              ^~~~
      |                                              |
|                                              VALUE (*)(VALUE) {aka long
long unsigned int (*)(long long unsigned int)}
C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby/internal/method.h:99:61:
note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but
argument is of type 'VALUE (*)(VALUE)' {aka 'long long unsigned int (*)(long
long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE
(*func)(ANYARGS), int arity);
|                                                    
~~~~~~~~^~~~~~~~~~~~~~
closure.c:363:1: note: 'to_i' declared here
  363 | to_i(VALUE self)
      | ^~~~
closure.c:450:46: error: passing argument 3 of 'rb_define_method' from
incompatible pointer type [-Wincompatible-pointer-types]
  450 |     rb_define_method(cFiddleClosure, "free", closure_free, 0);
      |                                              ^~~~~~~~~~~~
      |                                              |
|                                              VALUE (*)(VALUE) {aka long
long unsigned int (*)(long long unsigned int)}
C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby/internal/method.h:99:61:
note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but
argument is of type 'VALUE (*)(VALUE)' {aka 'long long unsigned int (*)(long
long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE
(*func)(ANYARGS), int arity);
|                                                    
~~~~~~~~^~~~~~~~~~~~~~
closure.c:370:1: note: 'closure_free' declared here
  370 | closure_free(VALUE self)
      | ^~~~~~~~~~~~
closure.c:457:48: error: passing argument 3 of 'rb_define_method' from
incompatible pointer type [-Wincompatible-pointer-types]
  457 |     rb_define_method(cFiddleClosure, "freed?", closure_freed_p, 0);
      |                                                ^~~~~~~~~~~~~~~
      |                                                |
|                                                VALUE (*)(VALUE) {aka
long long unsigned int (*)(long long unsigned int)}
C:/hostedtoolcache/windows/Ruby/3.4.3/x64/include/ruby-3.4.0/ruby/internal/method.h:99:61:
note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but
argument is of type 'VALUE (*)(VALUE)' {aka 'long long unsigned int (*)(long
long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE
(*func)(ANYARGS), int arity);
|                                                    
~~~~~~~~^~~~~~~~~~~~~~
closure.c:382:1: note: 'closure_freed_p' declared here
  382 | closure_freed_p(VALUE self)
      | ^~~~~~~~~~~~~~~
make: *** [Makefile:252: closure.o] Error 1

make failed, exit code 2

Component(s)

Continuous Integration, Ruby

Activity

  1. kou commented on Apr 29, 2025

    @kou
    Member

    This is caused by GCC 15 update. See also: https://bugs.ruby-lang.org/issues/21286

    It'll be fixed soon by downgrading to GCC 14 as workaround. We don't need to do in our side.

  2. added a commit that references this issue on May 1, 2025
  3. added a commit that references this issue on May 1, 2025
  4. added this to the 21.0.0 milestone on May 1, 2025
  5. kou commented on May 1, 2025

    @kou
    Member

    Issue resolved by pull request 46278
    #46278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions