D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/ruby-tokyocabinet-1.32.0-7.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ElY3IB + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf tokyocabinet-1.32.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/tokyocabinet-1.32.0.gem Unpacked gem: '/home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0' + STATUS=0 + '[' 0 -ne 0 ']' + cd tokyocabinet-1.32.0 + rm -rf /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.pSVbb6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd tokyocabinet-1.32.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/gem build ../tokyocabinet-1.32.0.gemspec WARNING: licenses is empty, but is recommended. Use a license identifier from http://spdx.org/licenses or 'Nonstandard' for a nonstandard license. WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: tokyocabinet Version: 1.32.0 File: tokyocabinet-1.32.0.gem + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'\'' --with-cxxflags='\''-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'\'' --with-ldflags='\'' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags'\'' ' + /usr/bin/gem install tokyocabinet-1.32.0.gem -V --local --env-shebang --force --ignore-dependencies --install-dir /usr/share/gems --document=ri,rdoc --bindir /usr/bin --build-root . WARNING: You build with buildroot. Build root: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0 Bin dir: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/bin Gem home: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems Plugins dir: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/plugins /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0/extconf.rb /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0/tokyocabinet.c Building native extensions. This could take a while... current directory: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0 ["/usr/bin/ruby", "-I", "/usr/share/rubygems", "extconf.rb"] setting variables ... $CFLAGS = -I. -I/usr/local/include -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 $LDFLAGS = -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -L. -L/usr/local/lib $libs = -ltokyocabinet -lz -lbz2 -lpthread -lm -lc checking for tcutil.h... yes creating Makefile current directory: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0 ["make", "DESTDIR=", "sitearchdir=./.gem.20240331-4027708-x9nb1l", "sitelibdir=./.gem.20240331-4027708-x9nb1l", "clean"] rm -f rm -fr tokyocabinet.so false *.o *.bak mkmf.log .*.time current directory: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0 ["make", "DESTDIR=", "sitearchdir=./.gem.20240331-4027708-x9nb1l", "sitelibdir=./.gem.20240331-4027708-x9nb1l"] ERROR: Error installing tokyocabinet-1.32.0.gem: ERROR: Failed to build gem native extension. current directory: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0 /usr/bin/ruby -I /usr/share/rubygems extconf.rb current directory: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0 make DESTDIR\= sitearchdir\=./.gem.20240331-4027708-x9nb1l sitelibdir\=./.gem.20240331-4027708-x9nb1l clean current directory: /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0 make DESTDIR\= sitearchdir\=./.gem.20240331-4027708-x9nb1l sitelibdir\=./.gem.20240331-4027708-x9nb1l Building has failed. See above output for more information on the failure. make failed, exit code 2 Gem files will remain installed in /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/share/gems/gems/tokyocabinet-1.32.0 for inspection. Results logged to /home/pterjan/rpmbuild/BUILD/tokyocabinet-1.32.0/usr/lib64/gems/ruby/tokyocabinet-1.32.0/gem_make.out gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_TCUTIL_H -fPIC -I. -I/usr/local/include -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -o tokyocabinet.o -c tokyocabinet.c tokyocabinet.c: In function 'tdbqry_init': tokyocabinet.c:3167:3: error: passing argument 3 of 'rb_define_method_00' from incompatible pointer type [-Wincompatible-pointer-types] 3167 | rb_define_method(cls_tdbqry, "proc", tdbqry_proc, 0); | ^~~~~~~~~~~~~~~~ | | | VALUE (*)(VALUE, VALUE) {aka long unsigned int (*)(long unsigned int, long unsigned int)} In file included from /usr/include/ruby/ruby.h:26, from /usr/include/ruby.h:38, from tokyocabinet.c:17: /usr/include/ruby/internal/anyargs.h:276:1: note: expected 'VALUE (*)(VALUE)' {aka 'long unsigned int (*)(long unsigned int)'} but argument is of type 'VALUE (*)(VALUE, VALUE)' {aka 'long unsigned int (*)(long unsigned int, long unsigned int)'} 276 | RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *) | ^~~~~~~~~~~~~~~~~~~ make: *** [Makefile:248: tokyocabinet.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.pSVbb6 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.pSVbb6 (%build) I: [iurt_root_command] ERROR: chroot