Mock Version: 2.9 Mock Version: 2.9 Mock Version: 2.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/kpatch.spec'], chrootPath='/var/lib/mock/roe1-build-4041-1158/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=86400uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/kpatch.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 Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/kpatch-0.9.1-14.oe1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kpatch.spec'], chrootPath='/var/lib/mock/roe1-build-4041-1158/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=86400uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kpatch.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 Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.undat0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kpatch-0.9.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/kpatch-0.9.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd kpatch-0.9.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git add . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'kpatch-0.9.1 base' + /usr/bin/cat /builddir/build/SOURCES/0001-support-compile-kpatch-on-aarch64.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0001-support-compile-kpatch-on-aarch64.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0002-kpatch-build-support-build-patch-for-aarch64.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0002-kpatch-build-support-build-patch-for-aarch64.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0003-create-diff-object-new-static-var-should-be-included.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0003-create-diff-object-new-static-var-should-be-included.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0004-livepatch-fix-use-THIS-modname-as-the-name-of-ddebug.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0004-livepatch-fix-use-THIS-modname-as-the-name-of-ddebug.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0005-create-diff-object-fix-correlate-static-local-variab.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0005-create-diff-object-fix-correlate-static-local-variab.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0006-create-diff-object-don-t-create-dynamic-reloc-for-sy.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0006-create-diff-object-don-t-create-dynamic-reloc-for-sy.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0007-create-diff-object-create-dynamic-relocs-for-changed.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0007-create-diff-object-create-dynamic-relocs-for-changed.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0008-fix-rodata.str-problem.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0008-fix-rodata.str-problem.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0009-livepatch-patch-hook-don-t-active-patch-when-insmod.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0009-livepatch-patch-hook-don-t-active-patch-when-insmod.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0010-kpatch-build-enhance-for-out-of-tree-module.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0010-kpatch-build-enhance-for-out-of-tree-module.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0011-support-c-plus-kernel-module.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0011-support-c-plus-kernel-module.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0012-symbol-lookup-enhancement.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0012-symbol-lookup-enhancement.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0013-Add-running-kernel-symbol-table-to-help-symbol-looku.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0013-Add-running-kernel-symbol-table-to-help-symbol-looku.patch --author 'rpm-build ' + /usr/bin/git apply --index -p1 - + /usr/bin/cat /builddir/build/SOURCES/0014-livepatch-patch-hook-support-force-enable-disable.patch + /usr/bin/git commit -q -m 0014-livepatch-patch-hook-support-force-enable-disable.patch --author 'rpm-build ' + /usr/bin/git apply --index -p1 - + /usr/bin/cat /builddir/build/SOURCES/0015-kpatch-build-ignore-debuginfo-in-patch.patch + /usr/bin/git commit -q -m 0015-kpatch-build-ignore-debuginfo-in-patch.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0016-add-object-in-kpatch.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0016-add-object-in-kpatch.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0017-create-diff-object-fix-.orc_unwind_ip-error.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0017-create-diff-object-fix-.orc_unwind_ip-error.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0018-use-original-reloc-for-symbols-from-modules.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0018-use-original-reloc-for-symbols-from-modules.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0019-create-diff-object-add-jump-label-support.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0019-create-diff-object-add-jump-label-support.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0020-kpatch-build-add-compile-flag-fno-reorder-functions.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0020-kpatch-build-add-compile-flag-fno-reorder-functions.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0021-kpatch-build-don-t-copy-.config-for-out-of-tree-modu.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0021-kpatch-build-don-t-copy-.config-for-out-of-tree-modu.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0022-support-force-enable-disable-for-x86.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0022-support-force-enable-disable-for-x86.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0023-create-diff-object-fix-duplicate-symbols-for-vmlinux.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0023-create-diff-object-fix-duplicate-symbols-for-vmlinux.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0024-optimize-for-out-of-tree-module.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0024-optimize-for-out-of-tree-module.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0025-Fix-relocation-not-resolved-when-new-functions-expor.patch + /usr/bin/git apply --index -p1 - :122: trailing whitespace. kpatch_create_kpatch_object_section(kelf_out, parent_name); warning: 1 line adds whitespace errors. + /usr/bin/git commit -q -m 0025-Fix-relocation-not-resolved-when-new-functions-expor.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0026-support-remove-static-variables-using-KPATCH_IGNORE_.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0026-support-remove-static-variables-using-KPATCH_IGNORE_.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0027-create-build-diff-support-for-.cold-functions-with-n.patch + /usr/bin/git apply --index -p1 - + /usr/bin/git commit -q -m 0027-create-build-diff-support-for-.cold-functions-with-n.patch --author 'rpm-build ' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Migo5Y + umask 022 + cd /builddir/build/BUILD + cd kpatch-0.9.1 + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/make -O -j8 V=1 VERBOSE=1 /usr/bin/make -C kpatch-build /usr/bin/make -C kpatch /usr/bin/make -C kmod /usr/bin/make -C man /usr/bin/make -C contrib make[1]: Nothing to be done for 'all'. make[1]: Nothing to be done for 'all'. make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/man' gzip -c -9 kpatch-build.1 > kpatch-build.1.gz make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/man' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/man' gzip -c -9 kpatch.1 > kpatch.1.gz make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/man' make[1]: Nothing to be done for 'all'. make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -g -Werror -c -o create-kpatch-module.o create-kpatch-module.c make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -g -Werror -c -o create-klp-module.o create-klp-module.c make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -g -Werror -c -o lookup.o lookup.c make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -g -Werror -c -o kpatch-elf.o kpatch-elf.c make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld create-kpatch-module.o kpatch-elf.o -lelf -o create-kpatch-module make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld create-klp-module.o kpatch-elf.o -lelf -o create-klp-module make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -g -Werror -c -o create-diff-object.o create-diff-object.c make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' make[1]: Entering directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' gcc -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld create-diff-object.o kpatch-elf.o lookup.o -lelf -o create-diff-object make[1]: Leaving directory '/builddir/build/BUILD/kpatch-0.9.1/kpatch-build' /usr/bin/ld: create-diff-object.o: in function `kpatch_replace_sections_syms': /builddir/build/BUILD/kpatch-0.9.1/kpatch-build/create-diff-object.c:1465: undefined reference to `insn_init' /usr/bin/ld: /builddir/build/BUILD/kpatch-0.9.1/kpatch-build/create-diff-object.c:1465: undefined reference to `insn_get_length' /usr/bin/ld: create-diff-object.o: in function `kpatch_create_intermediate_sections': /builddir/build/BUILD/kpatch-0.9.1/kpatch-build/create-diff-object.c:3012: undefined reference to `insn_init' /usr/bin/ld: /builddir/build/BUILD/kpatch-0.9.1/kpatch-build/create-diff-object.c:3189: undefined reference to `insn_init' /usr/bin/ld: create-diff-object.o: in function `error': /usr/include/bits/error.h:40: undefined reference to `insn_get_length' /usr/bin/ld: /usr/include/bits/error.h:40: undefined reference to `insn_get_length' /usr/bin/ld: create-diff-object.o: in function `arm64_kpatch_line_macro_change_only': /builddir/build/BUILD/kpatch-0.9.1/kpatch-build/create-diff-object.c:712: undefined reference to `insn_get_opcode' /usr/bin/ld: /builddir/build/BUILD/kpatch-0.9.1/kpatch-build/create-diff-object.c:714: undefined reference to `insn_get_opcode' collect2: error: ld returned 1 exit status make[1]: *** [: create-diff-object] Error 1 make: *** [Makefile:22: build-kpatch-build] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Migo5Y (%build) Bad exit status from /var/tmp/rpm-tmp.Migo5Y (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status 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/kpatch.spec