D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/ruby-itextomml-1.6.1-3.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jRkW7p Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.YS9E5Q + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build + rm -rf itextomml-1.6.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/itextomml-1.6.1.gem Unpacked gem: '/home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1' + STATUS=0 + '[' 0 -ne 0 ']' + cd itextomml-1.6.1 + /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.H9gNfw + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd itextomml-1.6.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/gem build ../itextomml-1.6.1.gemspec WARNING: expected RubyGems version 3.6.2, was 3.2.17 WARNING: licenses is empty, but is recommended. Use an license identifier from https://spdx.org/licenses or 'Nonstandard' for a nonstandard license, or set it to nil if you don't want to specify a license. WARNING: make sure you specify the oldest ruby version constraint (like ">= 3.0") that you want your gem to support by setting the `required_ruby_version` gemspec attribute WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: itextomml Version: 1.6.1 File: itextomml-1.6.1.gem + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'\'' ' + /usr/bin/gem install itextomml-1.6.1.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/ruby-itextomml-1.6.1-build/itextomml-1.6.1 Bin dir: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/bin Gem home: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems Plugins dir: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/plugins /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/README /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext/extconf.rb /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext/itex2MML.h /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext/itex2MML_ruby.c /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext/lex.yy.c /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext/y.tab.c /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext/y.tab.h /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/lib/itex_stringsupport.rb /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/lib/itextomml.rb /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/test/test_itextomml.rb Building native extensions. This could take a while... current directory: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext ["/usr/bin/ruby", "-I/usr/share/rubygems", "extconf.rb"] creating Makefile current directory: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext ["make", "DESTDIR=", "sitearchdir=./.gem.20250424-721811-9b9nc6", "sitelibdir=./.gem.20250424-721811-9b9nc6", "clean"] rm -f rm -fr itex2MML.so false itex2MML_ruby.o lex.yy.o y.tab.o *.bak mkmf.log .*.time current directory: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext ["make", "DESTDIR=", "sitearchdir=./.gem.20250424-721811-9b9nc6", "sitelibdir=./.gem.20250424-721811-9b9nc6"] gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Ditex2MML_CAPTURE -m64 -o itex2MML_ruby.o -c itex2MML_ruby.c itex2MML_ruby.c: In function 'SWIG_RubyInitializeTrackings': itex2MML_ruby.c:1239:54: error: passing argument 2 of 'rb_define_virtual_variable' from incompatible pointer type [-Wincompatible-pointer-types] 1239 | rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | VALUE (*)(void) {aka long unsigned int (*)(void)} In file included from /usr/include/ruby/ruby.h:51, from /usr/include/ruby.h:38, from itex2MML_ruby.c:855: /usr/include/ruby/internal/variable.h:181:69: note: expected 'VALUE (*)(ID, VALUE *)' {aka 'long unsigned int (*)(long unsigned int, long unsigned int *)'} but argument is of type 'VALUE (*)(void)' {aka 'long unsigned int (*)(void)'} 181 | void rb_define_virtual_variable(const char *name, rb_gvar_getter_t *getter, rb_gvar_setter_t *setter); | ~~~~~~~~~~~~~~~~~~^~~~~~ itex2MML_ruby.c:1202:14: note: 'swig_ruby_trackings_count' declared here 1202 | static VALUE swig_ruby_trackings_count(ANYARGS) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_RubyIterateTrackings': itex2MML_ruby.c:1293:35: error: passing argument 2 of 'rb_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types] 1293 | st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int (*)(void) In file included from /usr/include/ruby/internal/arithmetic/st_data_t.h:31, from /usr/include/ruby/internal/arithmetic.h:37, from /usr/include/ruby/ruby.h:28: /usr/include/ruby/st.h:143:31: note: expected 'int (*)(st_data_t, st_data_t, st_data_t)' {aka 'int (*)(long unsigned int, long unsigned int, long unsigned int)'} but argument is of type 'int (*)(void)' 143 | int rb_st_foreach(st_table *, st_foreach_callback_func *, st_data_t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_Ruby_NewPointerObj': itex2MML_ruby.c:1536:5: warning: 'rb_data_object_wrap_warning' is deprecated: by TypedData [-Wdeprecated-declarations] 1536 | obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), | ^~~ In file included from /usr/include/ruby/internal/core.h:27, from /usr/include/ruby/ruby.h:29: /usr/include/ruby/internal/core/rdata.h:293:1: note: declared here 293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c:1550:5: warning: 'rb_data_object_wrap_warning' is deprecated: by TypedData [-Wdeprecated-declarations] 1550 | obj = Data_Wrap_Struct(klass, 0, 0, ptr); | ^~~ /usr/include/ruby/internal/core/rdata.h:293:1: note: declared here 293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_Ruby_NewClassInstance': itex2MML_ruby.c:1563:3: warning: 'rb_data_object_wrap_warning' is deprecated: by TypedData [-Wdeprecated-declarations] 1563 | obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); | ^~~ /usr/include/ruby/internal/core/rdata.h:293:1: note: declared here 293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_Ruby_ConvertPtrAndOwn': itex2MML_ruby.c:1609:5: warning: 'rb_data_object_get_warning' is deprecated: by TypedData [-Wdeprecated-declarations] 1609 | Data_Get_Struct(obj, void, vptr); | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here 325 | rb_data_object_get_warning(VALUE obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_Ruby_GetModule': itex2MML_ruby.c:1736:5: warning: 'rb_data_object_get_warning' is deprecated: by TypedData [-Wdeprecated-declarations] 1736 | Data_Get_Struct(pointer, swig_module_info, ret); | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here 325 | rb_data_object_get_warning(VALUE obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_Ruby_SetModule': itex2MML_ruby.c:1750:3: warning: 'rb_data_object_wrap_warning' is deprecated: by TypedData [-Wdeprecated-declarations] 1750 | swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:293:1: note: declared here 293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_AsVal_unsigned_SS_long': itex2MML_ruby.c:1909:19: error: passing argument 1 of 'rb_rescue' from incompatible pointer type [-Wincompatible-pointer-types] 1909 | if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { | ^~~~~~~~~~~~~~~~ | | | VALUE (*)(void) {aka long unsigned int (*)(void)} In file included from /usr/include/ruby/ruby.h:41: /usr/include/ruby/internal/iterator.h:364:25: note: expected 'VALUE (*)(VALUE)' {aka 'long unsigned int (*)(long unsigned int)'} but argument is of type 'VALUE (*)(void)' {aka 'long unsigned int (*)(void)'} 364 | VALUE rb_rescue(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*r_proc)(VALUE, VALUE), VALUE data2); | ~~~~~~~~^~~~~~~~~~~~~~ itex2MML_ruby.c:1909:67: error: passing argument 3 of 'rb_rescue' from incompatible pointer type [-Wincompatible-pointer-types] 1909 | if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { | ^~~~~~~~~~~~~~~~ | | | VALUE (*)(void) {aka long unsigned int (*)(void)} /usr/include/ruby/internal/iterator.h:364:62: note: expected 'VALUE (*)(VALUE, VALUE)' {aka 'long unsigned int (*)(long unsigned int, long unsigned int)'} but argument is of type 'VALUE (*)(void)' {aka 'long unsigned int (*)(void)'} 364 | VALUE rb_rescue(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*r_proc)(VALUE, VALUE), VALUE data2); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c:1883:1: note: 'SWIG_ruby_failed' declared here 1883 | SWIG_ruby_failed(void) | ^~~~~~~~~~~~~~~~ itex2MML_ruby.c: In function 'SWIG_AsVal_unsigned_SS_long_SS_long': itex2MML_ruby.c:1954:19: error: passing argument 1 of 'rb_rescue' from incompatible pointer type [-Wincompatible-pointer-types] 1954 | if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { | ^~~~~~~~~~~~~~~~ | | | VALUE (*)(void) {aka long unsigned int (*)(void)} /usr/include/ruby/internal/iterator.h:364:25: note: expected 'VALUE (*)(VALUE)' {aka 'long unsigned int (*)(long unsigned int)'} but argument is of type 'VALUE (*)(void)' {aka 'long unsigned int (*)(void)'} 364 | VALUE rb_rescue(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*r_proc)(VALUE, VALUE), VALUE data2); ERROR: Error installing itextomml-1.6.1.gem: ERROR: Failed to build gem native extension. current directory: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext /usr/bin/ruby -I/usr/share/rubygems extconf.rb current directory: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext make DESTDIR\= sitearchdir\=./.gem.20250424-721811-9b9nc6 sitelibdir\=./.gem.20250424-721811-9b9nc6 clean current directory: /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1/ext make DESTDIR\= sitearchdir\=./.gem.20250424-721811-9b9nc6 sitelibdir\=./.gem.20250424-721811-9b9nc6 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/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/share/gems/gems/itextomml-1.6.1 for inspection. Results logged to /home/pterjan/rpmbuild/BUILD/ruby-itextomml-1.6.1-build/itextomml-1.6.1/usr/lib64/gems/ruby/itextomml-1.6.1/gem_make.out | ~~~~~~~~^~~~~~~~~~~~~~ itex2MML_ruby.c:1954:65: error: passing argument 3 of 'rb_rescue' from incompatible pointer type [-Wincompatible-pointer-types] 1954 | if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { | ^~~~~~~~~~~~~~~~ | | | VALUE (*)(void) {aka long unsigned int (*)(void)} /usr/include/ruby/internal/iterator.h:364:62: note: expected 'VALUE (*)(VALUE, VALUE)' {aka 'long unsigned int (*)(long unsigned int, long unsigned int)'} but argument is of type 'VALUE (*)(void)' {aka 'long unsigned int (*)(void)'} 364 | VALUE rb_rescue(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*r_proc)(VALUE, VALUE), VALUE data2); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ itex2MML_ruby.c:1883:1: note: 'SWIG_ruby_failed' declared here 1883 | SWIG_ruby_failed(void) | ^~~~~~~~~~~~~~~~ make: *** [Makefile:252: itex2MML_ruby.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.H9gNfw (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.H9gNfw (%build) I: [iurt_root_command] ERROR: chroot