Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/kmod-dinghai.spec'], chrootPath='/var/lib/mock/dist-oc8-build-100580-64761/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/kmod-dinghai.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/kmod-dinghai-2.24.20.02-3.oc8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps --nocheck /builddir/build/SPECS/kmod-dinghai.spec'], chrootPath='/var/lib/mock/dist-oc8-build-100580-64761/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps --nocheck /builddir/build/SPECS/kmod-dinghai.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.buA1gx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kmod-dinghai + /usr/bin/gzip -dc /builddir/build/SOURCES/kmod-dinghai.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd kmod-dinghai + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-Modified-zsda-source-code.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qNY0ld + umask 022 + cd /builddir/build/BUILD kernel_version:5.4.119-20.0009.32 ~/build/BUILD/kmod-dinghai/crypto/zsda ~/build/BUILD/kmod-dinghai + cd kmod-dinghai + echo kernel_version:5.4.119-20.0009.32 + pushd crypto/zsda + make -C /usr/src/kernels/5.4.119-20.0009.32 M=/builddir/build/BUILD/kmod-dinghai/crypto/zsda modules CONFIG_ACC_ZSDA_COMMON=m CONFIG_ACC_ZSDA_PF=m CONFIG_ACC_ZSDA_VF=m make: Entering directory '/usr/src/kernels/5.4.119-20.0009.32' CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_manage.o CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_alg.o CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_qp.o CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common_drv.o /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common_drv.c: In function 'zsda_seq_write': /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common_drv.c:84:6: error: implicit declaration of function 'copy_from_user'; did you mean 'sg_copy_from_buffer'? [-Werror=implicit-function-declaration] if (copy_from_user(buf, ubuf, count)) ^~~~~~~~~~~~~~ sg_copy_from_buffer cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:262: /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common_drv.o] Error 1 make[2]: *** [scripts/Makefile.build:496: /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common] Error 2 make[1]: *** [scripts/Makefile.build:496: /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice] Error 2 make: *** [Makefile:1759: /builddir/build/BUILD/kmod-dinghai/crypto/zsda] Error 2 make: Leaving directory '/usr/src/kernels/5.4.119-20.0009.32' error: Bad exit status from /var/tmp/rpm-tmp.qNY0ld (%build) Bad exit status from /var/tmp/rpm-tmp.qNY0ld (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps --nocheck /builddir/build/SPECS/kmod-dinghai.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, 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 --noclean --target aarch64 --nodeps --nocheck /builddir/build/SPECS/kmod-dinghai.spec