raulcd opened a new issue, #46262:
URL: https://github.com/apache/arrow/issues/46262

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The [AMD64 Windows MinGW 64 GLib & 
Ruby](https://github.com/apache/arrow/actions/runs/14726999262/job/41331929434) 
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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to