Skip to content

Instantly share code, notes, and snippets.

@ledsun
Created December 21, 2022 10:54
Show Gist options
  • Save ledsun/390e798b974443005f53b0b913fb36c7 to your computer and use it in GitHub Desktop.
Save ledsun/390e798b974443005f53b0b913fb36c7 to your computer and use it in GitHub Desktop.
SWIG 3.0.12ででるsimstring gemのコンパイルエラー
compiling export_wrap.cpp
export_wrap.cpp: In function ‘void SWIG_RubyInitializeTrackings()’:
export_wrap.cpp:1263:85: error: call of overloaded ‘rb_define_virtual_variable(const char [21], VALUE (&)(...), NULL)’ is ambiguous
rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:73:1: note: candidate: ‘void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*, VALUE (*)(...), void (*)(...))’
rb_define_virtual_variable(const char *q, type *w, void_type *e)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:90:1: note: candidate: ‘void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*, VALUE (*)(...), void (*)(VALUE, ID, VALUE*))’
rb_define_virtual_variable(const char *q, type *w, rb_gvar_setter_t *e)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:105:1: note: candidate: ‘void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*, VALUE (*)(...), std::nullptr_t)’
rb_define_virtual_variable(const char *q, type *w, std::nullptr_t e)
^~~~~~~~~~~~~~~~~~~~~~~~~~
export_wrap.cpp: In function ‘void SWIG_RubyIterateTrackings(void (*)(void*, VALUE))’:
export_wrap.cpp:1317:106: warning: ‘int ruby::backward::cxxanyargs::rb_st_foreach(st_table*, int (*)(...), st_data_t)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/intern/hash.h:25,
from /usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:16,
from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/st.h:142:20: note: declared here
#define st_foreach rb_st_foreach
^~~~~~~~~~~~~
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:430:1: note: in expansion of macro ‘st_foreach’
st_foreach(st_table *q, int_type *w, st_data_t e)
^~~~~~~~~~
export_wrap.cpp:1317:106: warning: ‘int ruby::backward::cxxanyargs::rb_st_foreach(st_table*, int (*)(...), st_data_t)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/intern/hash.h:25,
from /usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:16,
from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/st.h:142:20: note: declared here
#define st_foreach rb_st_foreach
^~~~~~~~~~~~~
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:430:1: note: in expansion of macro ‘st_foreach’
st_foreach(st_table *q, int_type *w, st_data_t e)
^~~~~~~~~~
export_wrap.cpp: In member function ‘bool swig::GC_VALUE::relational_equal_op(const swig::GC_VALUE&, const ID&, bool (*)(const VALUE&, const VALUE&)) const’:
export_wrap.cpp:2053:69: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
(RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:2053:69: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
(RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp: In member function ‘swig::GC_VALUE swig::GC_VALUE::unary_op(const ID&) const’:
export_wrap.cpp:2093:67: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
(RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:2093:67: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
(RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp: In member function ‘swig::GC_VALUE swig::GC_VALUE::binary_op(const swig::GC_VALUE&, const ID&) const’:
export_wrap.cpp:2112:67: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
(RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:2112:67: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
(RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp: In function ‘int SWIG_AsVal_unsigned_SS_long(VALUE, long unsigned int*)’:
export_wrap.cpp:2452:104: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:2452:104: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp: In function ‘int SWIG_AsVal_unsigned_SS_long_SS_long(VALUE, long long unsigned int*)’:
export_wrap.cpp:2497:102: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:2497:102: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp: In function ‘int SWIG_AsVal_long(VALUE, long int*)’:
export_wrap.cpp:2555:103: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:2555:103: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp: In function ‘int SWIG_AsVal_long_SS_long(VALUE, long long int*)’:
export_wrap.cpp:2585:101: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:2585:101: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp: In function ‘int SWIG_AsVal_double(VALUE, double*)’:
export_wrap.cpp:4648:102: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
export_wrap.cpp:4648:102: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
^
In file included from /usr/local/include/ruby-3.0.0/ruby/internal/anyargs.h:83,
from /usr/local/include/ruby-3.0.0/ruby/ruby.h:24,
from /usr/local/include/ruby-3.0.0/ruby.h:38,
from export_wrap.cpp:879:
/usr/local/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:258:1: note: declared here
rb_rescue(type *q, VALUE w, type *e, VALUE r)
^~~~~~~~~
make: *** [Makefile:237: export_wrap.o] Error 1
The command '/bin/sh -c make' returned a non-zero code: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment