Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/iscsi-initiator-utils.spec'], chrootPath='/var/lib/mock/f30-build-34481-19021/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/iscsi-initiator-utils.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': 'en_US.UTF-8'} and shell False BUILDSTDERR: warning: Macro expanded in comment on line 83: %{version}-%{release} BUILDSTDERR: warning: Macro expanded in comment on line 318: %{_libdir}/libopeniscsiusr.so.* BUILDSTDERR: warning: Macro expanded in comment on line 321: %{_libdir}/libopeniscsiusr.so BUILDSTDERR: warning: Macro expanded in comment on line 322: %{_includedir}/libopeniscsiusr.h BUILDSTDERR: warning: Macro expanded in comment on line 323: %{_includedir}/libopeniscsiusr_common.h BUILDSTDERR: warning: Macro expanded in comment on line 324: %{_includedir}/libopeniscsiusr_iface.h BUILDSTDERR: warning: Macro expanded in comment on line 325: %{_includedir}/libopeniscsiusr_session.h BUILDSTDERR: warning: Macro expanded in comment on line 326: %{_libdir}/pkgconfig/libopeniscsiusr.pc Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/iscsi-initiator-utils-6.2.0.876-5.gitf3c8e90.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/iscsi-initiator-utils.spec'], chrootPath='/var/lib/mock/f30-build-34481-19021/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/iscsi-initiator-utils.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': 'en_US.UTF-8'} and shell False BUILDSTDERR: warning: Macro expanded in comment on line 83: %{version}-%{release} BUILDSTDERR: warning: Macro expanded in comment on line 318: %{_libdir}/libopeniscsiusr.so.* BUILDSTDERR: warning: Macro expanded in comment on line 321: %{_libdir}/libopeniscsiusr.so BUILDSTDERR: warning: Macro expanded in comment on line 322: %{_includedir}/libopeniscsiusr.h BUILDSTDERR: warning: Macro expanded in comment on line 323: %{_includedir}/libopeniscsiusr_common.h BUILDSTDERR: warning: Macro expanded in comment on line 324: %{_includedir}/libopeniscsiusr_iface.h BUILDSTDERR: warning: Macro expanded in comment on line 325: %{_includedir}/libopeniscsiusr_session.h BUILDSTDERR: warning: Macro expanded in comment on line 326: %{_libdir}/pkgconfig/libopeniscsiusr.pc Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YHe2QH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf open-iscsi-f3c8e90fc0894c088950a15ee6618b427f9e2457 + /usr/bin/gzip -dc /builddir/build/SOURCES/open-iscsi-f3c8e90.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd open-iscsi-f3c8e90fc0894c088950a15ee6618b427f9e2457 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-idmb_rec_write-check-for-tpgt-first.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0002-idbm_rec_write-seperate-old-and-new-style-writes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0003-idbw_rec_write-pick-tpgt-from-existing-record.patch + /usr/bin/cat /builddir/build/SOURCES/0004-update-systemd-service-files-add-iscsi.service-for-s.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0005-iscsi-boot-related-service-file-updates.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0006-update-initscripts-and-docs.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0007-use-var-for-config.patch + /usr/bin/cat /builddir/build/SOURCES/0008-use-red-hat-for-name.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0009-libiscsi.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0010-remove-the-offload-boot-supported-ifdef.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0011-iscsiuio-systemd-unit-files.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0012-Don-t-check-for-autostart-sessions-if-iscsi-is-not-u.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0013-Revert-iscsiadm-return-error-when-login-fails.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0014-update-handling-of-boot-sessions.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0015-update-iscsi.service-for-boot-session-recovery.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0016-updates-to-iscsi.service.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0017-make-session-shutdown-a-seperate-service.patch.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0018-Add-macros-to-release-GIL-lock.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0019-libiscsi-introduce-sessions-API.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0020-use-Red-Hat-version-string-to-match-RPM-package-vers.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0021-libiscsi-fix-discovery-request-timeout-regression.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0022-libiscsi-format-security-build-errors.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0023-libiscsi-fix-build-to-use-libopeniscsiusr.patch + /usr/bin/cat /builddir/build/SOURCES/0024-dont-install-scripts.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0028-use-var-lib-iscsi-in-libopeniscsiusr.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/sed -i -e 's|^exec_prefix = /$|exec_prefix = /usr|' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.EfKqa6 + umask 022 + cd /builddir/build/BUILD + cd open-iscsi-f3c8e90fc0894c088950a15ee6618b427f9e2457 + cd iscsiuio + autoreconf --install libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT' BUILDSTDERR: configure.ac:23: installing './compile' BUILDSTDERR: configure.ac:54: installing './config.guess' BUILDSTDERR: configure.ac:54: installing './config.sub' BUILDSTDERR: configure.ac:19: installing './install-sh' BUILDSTDERR: configure.ac:19: installing './missing' BUILDSTDERR: Makefile.am: installing './COPYING' using GNU General Public License v3 file BUILDSTDERR: Makefile.am: Consider adding the COPYING file to the version control system BUILDSTDERR: Makefile.am: for your code, to avoid questions about which license your project uses BUILDSTDERR: src/apps/brcm-iscsi/Makefile.am: installing './depcomp' BUILDSTDERR: src/unix/Makefile.am:12: warning: source file '${top_srcdir}/../utils/sysdeps/sysdeps.c' is in a subdirectory, BUILDSTDERR: src/unix/Makefile.am:12: but option 'subdir-objects' is disabled BUILDSTDERR: automake: warning: possible forward-incompatibility. BUILDSTDERR: automake: At least a source file is in a subdirectory, but the 'subdir-objects' BUILDSTDERR: automake: automake option hasn't been enabled. For now, the corresponding output BUILDSTDERR: automake: object file(s) will be placed in the top-level directory. However, BUILDSTDERR: automake: this behaviour will change in future Automake versions: they will BUILDSTDERR: automake: unconditionally cause object files to be placed in the same subdirectory BUILDSTDERR: automake: of the corresponding sources. BUILDSTDERR: automake: You are advised to start using 'subdir-objects' option throughout your BUILDSTDERR: automake: project, to avoid future incompatibilities. BUILDSTDERR: src/unix/libs/Makefile.am:10: warning: source file '../build_date.c' is in a subdirectory, BUILDSTDERR: src/unix/libs/Makefile.am:10: but option 'subdir-objects' is disabled + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess BUILDSTDERR: ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub BUILDSTDERR: ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for bash... /bin/sh checking for riscv64-koji-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking for riscv64-koji-linux-gnu-ranlib... no checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether gcc needs -traditional... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for off_t... yes checking for size_t... yes checking for int8_t... yes checking for uint8_t... yes checking for int16_t... yes checking for uint16_t... yes checking for int32_t... yes checking for uint32_t... yes checking for int64_t... yes checking for uint64_t... yes checking size of short... 2 checking size of int... 4 checking size of long... 8 checking whether byte ordering is bigendian... no checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-koji-linux-gnu file names to riscv64-koji-linux-gnu format... func_convert_file_noop checking how to convert riscv64-koji-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-koji-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-koji-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-koji-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for riscv64-koji-linux-gnu-strip... no checking for strip... strip checking for riscv64-koji-linux-gnu-ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv64-koji-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/apps/Makefile config.status: creating src/apps/dhcpc/Makefile config.status: creating src/apps/brcm-iscsi/Makefile config.status: creating src/uip/Makefile config.status: creating src/unix/Makefile config.status: creating src/unix/libs/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default commands + cd .. + /usr/bin/make 'OPTFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod' /usr/bin/make -C libopeniscsiusr make[1]: Entering directory '/builddir/build/BUILD/open-iscsi-f3c8e90fc0894c088950a15ee6618b427f9e2457/libopeniscsiusr' cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o context.o context.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o misc.o misc.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o session.o session.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o sysfs.o sysfs.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o iface.o iface.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o idbm.o idbm.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o node.o node.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o default.o default.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname=libopeniscsiusr.so.0.2.0 -o libopeniscsiusr.so.0.2.0 context.o misc.o session.o sysfs.o iface.o idbm.o node.o default.o ln -sf libopeniscsiusr.so.0.2.0 libopeniscsiusr.so ln -sf libopeniscsiusr.so.0.2.0 libopeniscsiusr.so.0 cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DUSE_KMOD -lkmod -Wall -Werror -Wextra -fvisibility=hidden -fPIC -I../libopeniscsiusr -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L../libopeniscsiusr -lopeniscsiusr tests/test_context.c libopeniscsiusr.so.0.2.0 -o tests/test_context BUILDSTDERR: /usr/bin/ld: libopeniscsiusr.so.0.2.0: undefined reference to `kmod_module_probe_insert_module' BUILDSTDERR: /usr/bin/ld: libopeniscsiusr.so.0.2.0: undefined reference to `kmod_module_unref' BUILDSTDERR: /usr/bin/ld: libopeniscsiusr.so.0.2.0: undefined reference to `kmod_new' BUILDSTDERR: /usr/bin/ld: libopeniscsiusr.so.0.2.0: undefined reference to `kmod_unref' BUILDSTDERR: /usr/bin/ld: libopeniscsiusr.so.0.2.0: undefined reference to `kmod_load_resources' BUILDSTDERR: /usr/bin/ld: libopeniscsiusr.so.0.2.0: undefined reference to `kmod_module_new_from_name' BUILDSTDERR: collect2: error: ld returned 1 exit status make[1]: Leaving directory '/builddir/build/BUILD/open-iscsi-f3c8e90fc0894c088950a15ee6618b427f9e2457/libopeniscsiusr' RPM build errors: BUILDSTDERR: make[1]: *** [: tests/test_context] Error 1 BUILDSTDERR: make: *** [Makefile:49: user] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.EfKqa6 (%build) BUILDSTDERR: Macro expanded in comment on line 83: %{version}-%{release} BUILDSTDERR: Macro expanded in comment on line 318: %{_libdir}/libopeniscsiusr.so.* BUILDSTDERR: Macro expanded in comment on line 321: %{_libdir}/libopeniscsiusr.so BUILDSTDERR: Macro expanded in comment on line 322: %{_includedir}/libopeniscsiusr.h BUILDSTDERR: Macro expanded in comment on line 323: %{_includedir}/libopeniscsiusr_common.h BUILDSTDERR: Macro expanded in comment on line 324: %{_includedir}/libopeniscsiusr_iface.h BUILDSTDERR: Macro expanded in comment on line 325: %{_includedir}/libopeniscsiusr_session.h BUILDSTDERR: Macro expanded in comment on line 326: %{_libdir}/pkgconfig/libopeniscsiusr.pc BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.EfKqa6 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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/iscsi-initiator-utils.spec