Mock Version: 5.9 Mock Version: 5.9 Mock Version: 5.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rubygem-serialport.spec'], chrootPath='/var/lib/mock/f42-build-865496-173199/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=992gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8025d9bff1e1477ab0b9c7b9bb094f56', '-D', '/var/lib/mock/f42-build-865496-173199/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rubygem-serialport.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1721347200 Wrote: /builddir/build/SRPMS/rubygem-serialport-1.3.2-13.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/rubygem-serialport.spec'], chrootPath='/var/lib/mock/f42-build-865496-173199/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=992gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c77909817361431fa5fcb6b6112e8734', '-D', '/var/lib/mock/f42-build-865496-173199/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/rubygem-serialport.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1721347200 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.H4cANv + umask 022 + cd /builddir/build/BUILD/rubygem-serialport-1.3.2-build + test -d /builddir/build/BUILD/rubygem-serialport-1.3.2-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/rubygem-serialport-1.3.2-build + /usr/bin/rm -rf /builddir/build/BUILD/rubygem-serialport-1.3.2-build + /usr/bin/mkdir -p /builddir/build/BUILD/rubygem-serialport-1.3.2-build + /usr/bin/mkdir -p /builddir/build/BUILD/rubygem-serialport-1.3.2-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OnylGZ + umask 022 + cd /builddir/build/BUILD/rubygem-serialport-1.3.2-build + gem unpack /builddir/build/SOURCES/serialport-1.3.2.gem Unpacked gem: '/builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2' + cd /builddir/build/BUILD/rubygem-serialport-1.3.2-build + cd serialport-1.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (rubygem-serialport-c99.patch):' Patch #1 (rubygem-serialport-c99.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file ext/native/posix_serialport_impl.c patching file ext/native/win_serialport_impl.c + gem spec /builddir/build/SOURCES/serialport-1.3.2.gem -l --ruby + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9BRjNp + umask 022 + cd /builddir/build/BUILD/rubygem-serialport-1.3.2-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd serialport-1.3.2 + gem build serialport.gemspec WARNING: expected RubyGems version 3.6.2, was 3.3.0.dev WARNING: License identifier 'GPL-2' is invalid. Use an 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. Did you mean 'EPL-2.0', 'LGPLLR', 'MPL-2.0', 'NGPL', 'PPL', 'ZPL-2.0', 'ZPL-2.1'? WARNING: open-ended dependency on bundler (>= 0, development) is not recommended use a bounded requirement, such as "~> x.y" WARNING: open-ended dependency on rake (>= 0, development) is not recommended use a bounded requirement, such as "~> x.y" WARNING: open-ended dependency on rake-compiler (>= 0.4.1, development) is not recommended if rake-compiler is semantically versioned, use: add_development_dependency "rake-compiler", "~> 0.4", ">= 0.4.1" 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: serialport Version: 1.3.2 File: serialport-1.3.2.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer'\'' --with-cxxflags='\''-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc serialport-1.3.2.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2 Bin dir: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/bin Gem home: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems Plugins dir: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/plugins /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/.gitignore /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/.travis.yml /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/CHANGELOG /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/CHECKLIST /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/Gemfile /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/LICENSE /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/MANIFEST /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/README.md /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/Rakefile /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native/extconf.rb /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native/posix_serialport_impl.c /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native/serialport.c /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native/serialport.h /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native/win_serialport_impl.c /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/lib/serialport.rb /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/lib/serialport/version.rb /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/serialport.gemspec /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/test/miniterm.rb /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/test/set_readtimeout.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native ["/usr/bin/ruby", "-I/usr/share/rubygems", "extconf.rb"] checking for OS... linux checking for termios.h... yes checking for unistd.h... yes creating Makefile current directory: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native ["make", "DESTDIR=", "sitearchdir=./.gem.20250111-53-a40eee", "sitelibdir=./.gem.20250111-53-a40eee", "clean"] rm -f rm -fr serialport.so false posix_serialport_impl.o serialport.o win_serialport_impl.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native ["make", "DESTDIR=", "sitearchdir=./.gem.20250111-53-a40eee", "sitelibdir=./.gem.20250111-53-a40eee"] ERROR: Error installing serialport-1.3.2.gem: ERROR: Failed to build gem native extension. current directory: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native /usr/bin/ruby -I/usr/share/rubygems extconf.rb current directory: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native make DESTDIR\= sitearchdir\=./.gem.20250111-53-a40eee sitelibdir\=./.gem.20250111-53-a40eee clean current directory: /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2/ext/native make DESTDIR\= sitearchdir\=./.gem.20250111-53-a40eee sitelibdir\=./.gem.20250111-53-a40eee Building has failed. See above output for more information on the failure. make failed, exit code 2 Gem files will remain installed in /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/share/gems/gems/serialport-1.3.2 for inspection. Results logged to /builddir/build/BUILD/rubygem-serialport-1.3.2-build/serialport-1.3.2/usr/lib64/gems/ruby/serialport-1.3.2/gem_make.out gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_TERMIOS_H -DHAVE_UNISTD_H -fPIC -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DOS_LINUX -o posix_serialport_impl.o -c posix_serialport_impl.c posix_serialport_impl.c: In function ‘get_fd_helper’: posix_serialport_impl.c:74:4: warning: ‘fd’ is deprecated: rb_io_descriptor [-Wdeprecated-declarations] 74 | return (fptr->fd); | ^~~~~~ In file included from serialport.h:26, from posix_serialport_impl.c:21: /usr/include/ruby/io.h:154:9: note: declared here 154 | int fd; | ^~ posix_serialport_impl.c: In function ‘sp_create_impl’: posix_serialport_impl.c:112:4: error: implicit declaration of function ‘NEWOBJ’ [-Wimplicit-function-declaration] 112 | NEWOBJ(sp, struct RFile); | ^~~~~~ posix_serialport_impl.c:112:11: error: ‘sp’ undeclared (first use in this function); did you mean ‘fp’? 112 | NEWOBJ(sp, struct RFile); | ^~ | fp posix_serialport_impl.c:112:11: note: each undeclared identifier is reported only once for each function it appears in posix_serialport_impl.c:112:15: error: expected expression before ‘struct’ 112 | NEWOBJ(sp, struct RFile); | ^~~~~~ posix_serialport_impl.c:170:4: warning: ‘fd’ is deprecated: rb_io_descriptor [-Wdeprecated-declarations] 170 | fp->fd = fd; | ^~ /usr/include/ruby/io.h:154:9: note: declared here 154 | int fd; | ^~ posix_serialport_impl.c:174:4: warning: ‘mode’ is deprecated: rb_io_mode [-Wdeprecated-declarations] 174 | fp->mode = FMODE_READWRITE | FMODE_SYNC; | ^~ /usr/include/ruby/io.h:158:9: note: declared here 158 | int mode; | ^~~~ posix_serialport_impl.c:177:1: warning: control reaches end of non-void function [-Wreturn-type] 177 | } | ^ make: *** [Makefile:252: posix_serialport_impl.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.9BRjNp (%build) Bad exit status from /var/tmp/rpm-tmp.9BRjNp (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M c77909817361431fa5fcb6b6112e8734 -D /var/lib/mock/f42-build-865496-173199/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/rubygem-serialport.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M c77909817361431fa5fcb6b6112e8734 -D /var/lib/mock/f42-build-865496-173199/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.hvp657ws:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/rubygem-serialport.spec'