Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rubygem-narray.spec'], chrootPath='/var/lib/mock/f40-build-734071-105715/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rubygem-narray.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'} and shell False sh: line 1: ruby: command not found sh: line 1: ruby: command not found warning: extra tokens at the end of %else directive in line 31: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %endif directive in line 34: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %endif directive in line 39: %endif #0%{?fedora} && 0%{?fedora} <= 22 warning: extra tokens at the end of %else directive in line 59: %else #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 warning: extra tokens at the end of %endif directive in line 61: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 warning: extra tokens at the end of %endif directive in line 67: %endif #0%{?fedora} && 0%{?fedora} <= 22 warning: extra tokens at the end of %else directive in line 81: %else #0%{?fedora} || 0%{?rhel} >= 6 warning: extra tokens at the end of %endif directive in line 87: %endif #0%{?fedora} || 0%{?rhel} >= 6 warning: extra tokens at the end of %endif directive in line 108: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || (0%{?rhel} && 0%{?rhel} <= 7) warning: extra tokens at the end of %endif directive in line 121: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %endif directive in line 128: %endif #0%{?rhel} && 0%{?rhel} <= 6 warning: extra tokens at the end of %else directive in line 140: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %endif directive in line 143: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %else directive in line 146: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %endif directive in line 148: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %else directive in line 157: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %endif directive in line 159: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689897600 Wrote: /builddir/build/SRPMS/rubygem-narray-0.6.1.1-28.fc40.src.rpm RPM build warnings: extra tokens at the end of %else directive in line 31: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %endif directive in line 34: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %endif directive in line 39: %endif #0%{?fedora} && 0%{?fedora} <= 22 extra tokens at the end of %else directive in line 59: %else #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 extra tokens at the end of %endif directive in line 61: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 extra tokens at the end of %endif directive in line 67: %endif #0%{?fedora} && 0%{?fedora} <= 22 extra tokens at the end of %else directive in line 81: %else #0%{?fedora} || 0%{?rhel} >= 6 extra tokens at the end of %endif directive in line 87: %endif #0%{?fedora} || 0%{?rhel} >= 6 extra tokens at the end of %endif directive in line 108: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || (0%{?rhel} && 0%{?rhel} <= 7) extra tokens at the end of %endif directive in line 121: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %endif directive in line 128: %endif #0%{?rhel} && 0%{?rhel} <= 6 extra tokens at the end of %else directive in line 140: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %endif directive in line 143: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %else directive in line 146: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %endif directive in line 148: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %else directive in line 157: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %endif directive in line 159: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rubygem-narray.spec'], chrootPath='/var/lib/mock/f40-build-734071-105715/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rubygem-narray.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'} and shell False warning: extra tokens at the end of %else directive in line 31: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %endif directive in line 34: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %endif directive in line 39: %endif #0%{?fedora} && 0%{?fedora} <= 22 warning: extra tokens at the end of %else directive in line 59: %else #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 warning: extra tokens at the end of %endif directive in line 61: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 warning: extra tokens at the end of %endif directive in line 67: %endif #0%{?fedora} && 0%{?fedora} <= 22 warning: extra tokens at the end of %else directive in line 81: %else #0%{?fedora} || 0%{?rhel} >= 6 warning: extra tokens at the end of %endif directive in line 87: %endif #0%{?fedora} || 0%{?rhel} >= 6 warning: extra tokens at the end of %endif directive in line 108: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || (0%{?rhel} && 0%{?rhel} <= 7) warning: extra tokens at the end of %endif directive in line 121: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %endif directive in line 128: %endif #0%{?rhel} && 0%{?rhel} <= 6 warning: extra tokens at the end of %else directive in line 140: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %endif directive in line 143: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %else directive in line 146: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %endif directive in line 148: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 warning: extra tokens at the end of %else directive in line 157: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 warning: extra tokens at the end of %endif directive in line 159: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689897600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YRQGqE + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf narray-0.6.1.1 + /usr/lib/rpm/rpmuncompress -x -v /builddir/build/SOURCES/narray-0.6.1.1.gem /usr/bin/gem unpack '/builddir/build/SOURCES/narray-0.6.1.1.gem' && /usr/bin/gem spec '/builddir/build/SOURCES/narray-0.6.1.1.gem' --ruby > 'narray-0.6.1.1.gemspec' Unpacked gem: '/builddir/build/BUILD/narray-0.6.1.1' + STATUS=0 + '[' 0 -ne 0 ']' + cd narray-0.6.1.1 + rm -rf /builddir/build/BUILD/narray-0.6.1.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/narray-0.6.1.1-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 /var/tmp/rpm-tmp.EXwq7R + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -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 narray-0.6.1.1 + gem build ../narray-0.6.1.1.gemspec Successfully built RubyGem Name: narray Version: 0.6.1.1 File: narray-0.6.1.1.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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'\'' --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 narray-0.6.1.1.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/narray-0.6.1.1 Bin dir: /builddir/build/BUILD/narray-0.6.1.1/usr/bin Gem home: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems Plugins dir: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/plugins /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/ChangeLog /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/MANIFEST /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/README.ja.md /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/README.md /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/SPEC.en.txt /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/SPEC.ja.txt /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/depend /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/extconf.rb /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/lib/narray_ext.rb /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/lib/nmatrix.rb /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/mkmath.rb /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/mknafunc.rb /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/mkop.rb /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/na_array.c /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/na_func.c /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/na_index.c /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/na_linalg.c /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/na_random.c /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/narray.c /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/narray.def /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/narray.h /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src/narray_local.h Building native extensions. This could take a while... current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src ["/usr/bin/ruby", "-I/usr/share/rubygems", "extconf.rb"] checking for stdint.h... yes checking for u_int8_t... yes checking for uint8_t... yes checking for int16_t... yes checking for int32_t... yes checking for u_int32_t... yes checking for uint32_t... yes creating narray_config.h creating Makefile current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src ["make", "DESTDIR=", "sitearchdir=./.gem.20231030-1659147-vzxy7w", "sitelibdir=./.gem.20231030-1659147-vzxy7w", "clean"] rm -f rm -fr narray.so false narray.o na_array.o na_func.o na_index.o na_random.o na_op.o na_math.o na_linalg.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src ["make", "DESTDIR=", "sitearchdir=./.gem.20231030-1659147-vzxy7w", "sitelibdir=./.gem.20231030-1659147-vzxy7w"] gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o narray.o -c narray.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o na_array.o -c na_array.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o na_func.o -c na_func.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o na_index.o -c na_index.c na_index.c: In function ‘na_aset_array_index’: na_index.c:761:10: warning: variable ‘total’ set but not used [-Wunused-but-set-variable] 761 | int i, total; | ^~~~~ na_index.c: In function ‘na_aset_multi_dim’: na_index.c:890:3: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 890 | else | ^~~~ In file included from /usr/include/ruby/internal/core.h:27, from /usr/include/ruby/ruby.h:29, from /usr/include/ruby.h:38, from na_index.c:11: narray.h:113:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 113 | #define GetNArray(obj,var) Data_Get_Struct(obj, struct NARRAY, var) | ^~~~~~~~~~~~~~~ na_index.c:892:5: note: in expansion of macro ‘GetNArray’ 892 | GetNArray(val,src); | ^~~~~~~~~ gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o na_random.o -c na_random.c na_random.c: In function ‘n_bits’: na_random.c:194:13: warning: variable ‘xu’ set but not used [-Wunused-but-set-variable] 194 | int i, x, xu, xl, n=4; | ^~ /usr/bin/ruby -I. ./mkop.rb gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o na_op.o -c na_op.c /usr/bin/ruby -I. ./mkmath.rb gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o na_math.o -c na_math.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_STDINT_H -DHAVE_U_INT8_T -DHAVE_UINT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_UINT32_T -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -o na_linalg.o -c na_linalg.c rm -f narray.so gcc -shared -o narray.so narray.o na_array.o na_func.o na_index.o na_random.o na_op.o na_math.o na_linalg.o -L. -L/usr/lib64 -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 -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 -lruby -lm -lpthread -lc current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src ["make", "DESTDIR=", "sitearchdir=./.gem.20231030-1659147-vzxy7w", "sitelibdir=./.gem.20231030-1659147-vzxy7w", "install"] /usr/bin/mkdir -p . ./.gem.20231030-1659147-vzxy7w exit > .sitearchdir.time /usr/bin/install -c -m 0755 narray.so ./.gem.20231030-1659147-vzxy7w /usr/bin/install -c -m 644 ./narray.h .gem.20231030-1659147-vzxy7w /usr/bin/install -c -m 644 ./narray_config.h .gem.20231030-1659147-vzxy7w /usr/bin/mkdir -p . ./.gem.20231030-1659147-vzxy7w exit > .sitelibdir.time /usr/bin/install -c -m 644 ./lib/narray_ext.rb .gem.20231030-1659147-vzxy7w /usr/bin/install -c -m 644 ./lib/nmatrix.rb .gem.20231030-1659147-vzxy7w current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src ["make", "DESTDIR=", "sitearchdir=./.gem.20231030-1659147-vzxy7w", "sitelibdir=./.gem.20231030-1659147-vzxy7w", "clean"] rm -f rm -fr narray.so false narray.o na_array.o na_func.o na_index.o na_random.o na_op.o na_math.o na_linalg.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src /usr/bin/ruby -I/usr/share/rubygems extconf.rb current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src make DESTDIR\= sitearchdir\=./.gem.20231030-1659147-vzxy7w sitelibdir\=./.gem.20231030-1659147-vzxy7w clean current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src make DESTDIR\= sitearchdir\=./.gem.20231030-1659147-vzxy7w sitelibdir\=./.gem.20231030-1659147-vzxy7w current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src make DESTDIR\= sitearchdir\=./.gem.20231030-1659147-vzxy7w sitelibdir\=./.gem.20231030-1659147-vzxy7w install current directory: /builddir/build/BUILD/narray-0.6.1.1/usr/share/gems/gems/narray-0.6.1.1/src make DESTDIR\= sitearchdir\=./.gem.20231030-1659147-vzxy7w sitelibdir\=./.gem.20231030-1659147-vzxy7w clean Successfully installed narray-0.6.1.1 Parsing documentation for narray-0.6.1.1 Parsing sources... 5% [ 1/17] ChangeLog 11% [ 2/17] MANIFEST 17% [ 3/17] README.ja.md 23% [ 4/17] README.md 29% [ 5/17] SPEC.en.txt 35% [ 6/17] SPEC.ja.txt 41% [ 7/17] src/Makefile 47% [ 8/17] src/depend 52% [ 9/17] src/na_array.c 58% [10/17] src/na_func.c 64% [11/17] src/na_index.c 70% [12/17] src/na_linalg.c 76% [13/17] src/na_math.c 82% [14/17] src/na_op.c 88% [15/17] src/na_random.c 94% [16/17] src/narray.c 100% [17/17] src/narray.def Installing ri documentation for narray-0.6.1.1 Installing darkfish documentation for narray-0.6.1.1 Done installing documentation for narray after 7 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EjKZZY + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -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 narray-0.6.1.1 + mkdir -p /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64/usr + cp -a .//usr/lib64 .//usr/share /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64/usr + pushd /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 ~/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 ~/build/BUILD/narray-0.6.1.1 + find ./usr/share/gems/gems/narray-0.6.1.1 -depth -type f -name '*.so' -print0 + xargs -0 rm -rf + find . -depth -type f -name '.*' -print0 + xargs -0 rm -rf + find . -depth -type f -name '*.log' -print0 + xargs -0 rm -rf + find . -depth -type f -name '*.o' -print0 + xargs -0 rm -rf + find . -depth -type f -name '*.out' -print0 + xargs -0 rm -rf + find . -depth -size 0 -type f -print0 + xargs -0 rm -rf + rm -rf ./usr/share/gems/cache/narray-0.6.1.1.gem ./usr/share/gems/gems/narray-0.6.1.1/src ./usr/share/gems/gems/narray-0.6.1.1/narray.gemspec + touch /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64/usr/lib64/gems/ruby/narray-0.6.1.1/gem.build_complete + popd ~/build/BUILD/narray-0.6.1.1 + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 0.6.1.1-28.fc40 --unique-debug-suffix -0.6.1.1-28.fc40.riscv64 --unique-debug-src-base rubygem-narray-0.6.1.1-28.fc40.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/narray-0.6.1.1 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/rubygem-narray-0.6.1.1-28.fc40.riscv64 482 blocks find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: rubygem-narray-0.6.1.1-28.fc40.riscv64 Provides: rubygem(narray) = 0.6.1.1 rubygem(narray) = 0.6.1.1 rubygem(narray)(riscv-64) = 0.6.1.1 rubygem-narray = 0.6.1.1-28.fc40 rubygem-narray(riscv-64) = 0.6.1.1-28.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libruby.so.3.2()(64bit) rtld(GNU_HASH) ruby(rubygems) Processing files: rubygem-narray-devel-0.6.1.1-28.fc40.riscv64 Provides: rubygem-narray-devel = 0.6.1.1-28.fc40 rubygem-narray-devel(riscv-64) = 0.6.1.1-28.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-narray-debugsource-0.6.1.1-28.fc40.riscv64 Provides: rubygem-narray-debugsource = 0.6.1.1-28.fc40 rubygem-narray-debugsource(riscv-64) = 0.6.1.1-28.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-narray-debuginfo-0.6.1.1-28.fc40.riscv64 Provides: debuginfo(build-id) = e6ef1588d4db4fee007b6a7cb9fc8563c9ea75f5 rubygem-narray-debuginfo = 0.6.1.1-28.fc40 rubygem-narray-debuginfo(riscv-64) = 0.6.1.1-28.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rubygem-narray-debugsource(riscv-64) = 0.6.1.1-28.fc40 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 Wrote: /builddir/build/RPMS/rubygem-narray-0.6.1.1-28.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/rubygem-narray-debugsource-0.6.1.1-28.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/rubygem-narray-debuginfo-0.6.1.1-28.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/rubygem-narray-devel-0.6.1.1-28.fc40.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.xRlZd9 + umask 022 + cd /builddir/build/BUILD + cd narray-0.6.1.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-narray-0.6.1.1-28.fc40.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.dR8bNq + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/narray-0.6.1.1-SPECPARTS + rm -rf narray-0.6.1.1 narray-0.6.1.1.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: extra tokens at the end of %else directive in line 31: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %endif directive in line 34: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %endif directive in line 39: %endif #0%{?fedora} && 0%{?fedora} <= 22 extra tokens at the end of %else directive in line 59: %else #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 extra tokens at the end of %endif directive in line 61: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || 0%{?rhel} == 7 extra tokens at the end of %endif directive in line 67: %endif #0%{?fedora} && 0%{?fedora} <= 22 extra tokens at the end of %else directive in line 81: %else #0%{?fedora} || 0%{?rhel} >= 6 extra tokens at the end of %endif directive in line 87: %endif #0%{?fedora} || 0%{?rhel} >= 6 extra tokens at the end of %endif directive in line 108: %endif #(0%{?fedora} && 0%{?fedora} <= 20) || (0%{?rhel} && 0%{?rhel} <= 7) extra tokens at the end of %endif directive in line 121: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %endif directive in line 128: %endif #0%{?rhel} && 0%{?rhel} <= 6 extra tokens at the end of %else directive in line 140: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %endif directive in line 143: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %else directive in line 146: %else #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %endif directive in line 148: %endif #0%{?fedora} >= 19 || 0%{?rhel} >= 7 extra tokens at the end of %else directive in line 157: %else #0%{?fedora} >= 21 || 0%{?rhel} >= 8 extra tokens at the end of %endif directive in line 159: %endif #0%{?fedora} >= 21 || 0%{?rhel} >= 8 Child return code was: 0