HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-2.7.4/ext/-test-/cxxanyargs/failure.failed
make[3]: Entering directory '/usr/local/rvm/src/ruby-2.7.4/ext/-test-/cxxanyargs'
compiling failure.cpp
In file included from failure.cpp:1:
failure.cpp: In function ‘void Init_failure()’:
../../.././include/ruby/ruby.h:2777:78: error: no matching function for call to ‘define(VALUE&, const char [5], VALUE (&)(VALUE, VALUE))’
 #define rb_define_method(m, n, f, a) rb_define_method_tmpl<a>::define(m, n, f)
                                                                              ^
failure.cpp:12:5: note: in expansion of macro ‘rb_define_method’
     rb_define_method(rb_cObject, "arg1", func_arg1, 0);
     ^~~~~~~~~~~~~~~~
In file included from ../../.././include/ruby/ruby.h:2148,
                 from failure.cpp:1:
../../.././include/ruby/intern.h:1061:21: note: candidate: ‘static void rb_define_method_tmpl<0>::define(VALUE, const char*, VALUE (*)(VALUE))’ <near match>
         static void define(RB_UNWRAP_MACRO decl, VALUE (*func)funcargs) {::defname(RB_UNWRAP_MACRO vars, func, arity);} \
                     ^~~~~~
../../.././include/ruby/intern.h:1070:5: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_CXX’
     RB_METHOD_DEFINITION_DECL_CXX(def,defname,decl,vars,funcargs,arity)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/intern.h:1074:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_1’
 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##0 ,0 ,decl,vars,(VALUE)) \
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/ruby.h:2775:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL’
 RB_METHOD_DEFINITION_DECL(rb_define_method, (2,3), (VALUE klass, const char *name), (klass, name))
 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/intern.h:1061:21: note:   conversion of argument 3 would be ill-formed:
         static void define(RB_UNWRAP_MACRO decl, VALUE (*func)funcargs) {::defname(RB_UNWRAP_MACRO vars, func, arity);} \
                     ^~~~~~
../../.././include/ruby/intern.h:1070:5: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_CXX’
     RB_METHOD_DEFINITION_DECL_CXX(def,defname,decl,vars,funcargs,arity)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/intern.h:1074:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_1’
 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##0 ,0 ,decl,vars,(VALUE)) \
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/ruby.h:2775:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL’
 RB_METHOD_DEFINITION_DECL(rb_define_method, (2,3), (VALUE klass, const char *name), (klass, name))
 ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from failure.cpp:1:
failure.cpp:12:42: error: invalid conversion from ‘VALUE (*)(VALUE, VALUE)’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int)’} to ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’} [-fpermissive]
     rb_define_method(rb_cObject, "arg1", func_arg1, 0);
                                          ^~~~~~~~~
../../.././include/ruby/ruby.h:2777:77: note: in definition of macro ‘rb_define_method’
 #define rb_define_method(m, n, f, a) rb_define_method_tmpl<a>::define(m, n, f)
                                                                             ^
In file included from ../../.././include/ruby/ruby.h:2148,
                 from failure.cpp:1:
../../.././include/ruby/intern.h:1062:21: note: candidate: ‘static void rb_define_method_tmpl<0>::define(VALUE, const char*, VALUE (*)(...))’ <near match>
         static void define(RB_UNWRAP_MACRO decl, VALUE (*func)(...)) {::defname(RB_UNWRAP_MACRO vars, reinterpret_cast<VALUE(*)funcargs>(func), arity);} \
                     ^~~~~~
../../.././include/ruby/intern.h:1070:5: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_CXX’
     RB_METHOD_DEFINITION_DECL_CXX(def,defname,decl,vars,funcargs,arity)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/intern.h:1074:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_1’
 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##0 ,0 ,decl,vars,(VALUE)) \
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/ruby.h:2775:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL’
 RB_METHOD_DEFINITION_DECL(rb_define_method, (2,3), (VALUE klass, const char *name), (klass, name))
 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/intern.h:1062:21: note:   conversion of argument 3 would be ill-formed:
         static void define(RB_UNWRAP_MACRO decl, VALUE (*func)(...)) {::defname(RB_UNWRAP_MACRO vars, reinterpret_cast<VALUE(*)funcargs>(func), arity);} \
                     ^~~~~~
../../.././include/ruby/intern.h:1070:5: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_CXX’
     RB_METHOD_DEFINITION_DECL_CXX(def,defname,decl,vars,funcargs,arity)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/intern.h:1074:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_1’
 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##0 ,0 ,decl,vars,(VALUE)) \
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../.././include/ruby/ruby.h:2775:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL’
 RB_METHOD_DEFINITION_DECL(rb_define_method, (2,3), (VALUE klass, const char *name), (klass, name))
 ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from failure.cpp:1:
failure.cpp:12:42: error: invalid conversion from ‘VALUE (*)(VALUE, VALUE)’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int)’} to ‘VALUE (*)(...)’ {aka ‘long unsigned int (*)(...)’} [-fpermissive]
     rb_define_method(rb_cObject, "arg1", func_arg1, 0);
                                          ^~~~~~~~~
../../.././include/ruby/ruby.h:2777:77: note: in definition of macro ‘rb_define_method’
 #define rb_define_method(m, n, f, a) rb_define_method_tmpl<a>::define(m, n, f)
                                                                             ^
make[3]: [Makefile:244: failure.o] Error 1 (ignored)
make[3]: Leaving directory '/usr/local/rvm/src/ruby-2.7.4/ext/-test-/cxxanyargs'