-3.9/_marisa.cpython-39-riscv64-linux-gnu.so + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py copying marisa.py -> build/lib.linux-riscv64-3.9 running build_ext ~/build/BUILD/marisa-0.2.4 ~/build/BUILD/marisa-0.2.4/bindings ~/build/BUILD/marisa-0.2.4 + popd + pushd bindings + make swig-ruby swig -Wall -c++ -ruby -outdir ruby marisa-swig.i mv marisa-swig_wrap.cxx ruby cp marisa-swig.cxx marisa-swig.h ruby + popd ~/build/BUILD/marisa-0.2.4 + pushd bindings/ruby ~/build/BUILD/marisa-0.2.4/bindings/ruby ~/build/BUILD/marisa-0.2.4 + ruby extconf.rb --with-opt-include=/builddir/build/BUILD/marisa-0.2.4/lib --with-opt-lib=/builddir/build/BUILD/marisa-0.2.4/lib/.libs --vendor checking for -lmarisa... yes creating Makefile + make g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/builddir/build/BUILD/marisa-0.2.4/lib -fPIC -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o marisa-swig.o -c marisa-swig.cxx g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/builddir/build/BUILD/marisa-0.2.4/lib -fPIC -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o marisa-swig_wrap.o -c marisa-swig_wrap.cxx marisa-swig_wrap.cxx: In function 'void SWIG_RubyInitializeTrackings()': marisa-swig_wrap.cxx:1267:85: error: call of overloaded 'rb_define_virtual_variable(const char [21], VALUE (&)(...), NULL)' is ambiguous 1267 | rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL); | ^ In file included from /usr/include/ruby/ruby.h:2863, from /usr/include/ruby.h:33, from marisa-swig_wrap.cxx:880: /usr/include/ruby/backward/cxxanyargs.hpp:59:1: note: candidate: 'void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*, VALUE (*)(...), void (*)(...))' 59 | rb_define_virtual_variable(const char *q, type *w, void_type *e) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/ruby/backward/cxxanyargs.hpp:90:1: note: candidate: 'void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*, VALUE (*)(...), void (*)(VALUE, ID, VALUE*))' 90 | rb_define_virtual_variable(const char *q, type *w, rb_gvar_setter_t *e) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:229: marisa-swig_wrap.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.cLaiES (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.cLaiES (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/marisa.spec