File: //usr/local/rvm/src/ruby-2.7.4/ext/-test-/cxxanyargs/failurem1.failed
make[3]: Entering directory '/usr/local/rvm/src/ruby-2.7.4/ext/-test-/cxxanyargs'
compiling failurem1.cpp
In file included from failurem1.cpp:1:
failurem1.cpp: In function ‘void Init_failure()’:
../../.././include/ruby/ruby.h:2777:78: error: no matching function for call to ‘define(VALUE&, const char [6], VALUE (&)(int, VALUE*, VALUE))’
#define rb_define_method(m, n, f, a) rb_define_method_tmpl<a>::define(m, n, f)
^
failurem1.cpp:12:5: note: in expansion of macro ‘rb_define_method’
rb_define_method(rb_cObject, "argm1", func_argm1, 0);
^~~~~~~~~~~~~~~~
In file included from ../../.././include/ruby/ruby.h:2148,
from failurem1.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 failurem1.cpp:1:
failurem1.cpp:12:43: error: invalid conversion from ‘VALUE (*)(int, VALUE*, VALUE)’ {aka ‘long unsigned int (*)(int, long unsigned int*, long unsigned int)’} to ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’} [-fpermissive]
rb_define_method(rb_cObject, "argm1", func_argm1, 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 failurem1.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 failurem1.cpp:1:
failurem1.cpp:12:43: error: invalid conversion from ‘VALUE (*)(int, VALUE*, VALUE)’ {aka ‘long unsigned int (*)(int, long unsigned int*, long unsigned int)’} to ‘VALUE (*)(...)’ {aka ‘long unsigned int (*)(...)’} [-fpermissive]
rb_define_method(rb_cObject, "argm1", func_argm1, 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: failurem1.o] Error 1 (ignored)
make[3]: Leaving directory '/usr/local/rvm/src/ruby-2.7.4/ext/-test-/cxxanyargs'