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 x86_64 --nodeps /builddir/build/SPECS/kmod-dinghai.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-125014-74668/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 x86_64 --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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/kmod-dinghai-2.24.40.02-1.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-dinghai.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-125014-74668/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 x86_64 --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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GZmmMB + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kmod-dinghai + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/kmod-dinghai.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd kmod-dinghai + /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.do63PY + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd kmod-dinghai + cat /usr/include/linux/version.h #define LINUX_VERSION_CODE 394822 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c))) #define LINUX_VERSION_MAJOR 6 #define LINUX_VERSION_PATCHLEVEL 6 #define LINUX_VERSION_SUBLEVEL 70 kernel_version:6.6.70-24.oc9.x86_64 ~/build/BUILD/kmod-dinghai/crypto/zsda ~/build/BUILD/kmod-dinghai + echo kernel_version:6.6.70-24.oc9.x86_64 + pushd crypto/zsda + make -C /usr/src/kernels/6.6.70-24.oc9.x86_64 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/6.6.70-24.oc9.x86_64' 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 CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_isr.o CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_pci.o LD [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common.o CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_pf/zsda_drv.o LD [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_pf/zsda_pf.o CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_vf/zsda_drv.o LD [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_vf/zsda_vf.o MODPOST /builddir/build/BUILD/kmod-dinghai/crypto/zsda/Module.symvers CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common.mod.o LD [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common.ko BTF [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common.ko Skipping BTF generation for /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_common/zsda_common.ko due to unavailability of vmlinux CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_pf/zsda_pf.mod.o LD [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_pf/zsda_pf.ko BTF [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_pf/zsda_pf.ko Skipping BTF generation for /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_pf/zsda_pf.ko due to unavailability of vmlinux CC [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_vf/zsda_vf.mod.o LD [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_vf/zsda_vf.ko BTF [M] /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_vf/zsda_vf.ko Skipping BTF generation for /builddir/build/BUILD/kmod-dinghai/crypto/zsda/accdevice/zsda_vf/zsda_vf.ko due to unavailability of vmlinux make: Leaving directory '/usr/src/kernels/6.6.70-24.oc9.x86_64' + popd ~/build/BUILD/kmod-dinghai ~/build/BUILD/kmod-dinghai/net/build ~/build/BUILD/kmod-dinghai + pushd net/build + ./builder.sh -t clean --ksrc /usr/src/kernels/6.6.70-24.oc9.x86_64 /builddir/build/BUILD/kmod-dinghai/net/build/../autoconf.h make clean KSRC=/usr/src/kernels/6.6.70-24.oc9.x86_64 env CWD=/builddir/build/BUILD/kmod-dinghai/net make -C "/usr/src/kernels/6.6.70-24.oc9.x86_64" M="/builddir/build/BUILD/kmod-dinghai/net" CONFIG_DINGHAI_ETH= CONFIG_DINGHAI_MPF= CONFIG_DINGHAI_HPF= CONFIG_DINGHAI_PF= CONFIG_DINGHAI_ZF_MPF= CONFIG_KSRC=/usr/src/kernels/6.6.70-24.oc9.x86_64 CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= clean make[1]: Entering directory '/usr/src/kernels/6.6.70-24.oc9.x86_64' CONFIG_PF_MPF_DRIVER_VERSION is null, EXTRA_CFLAGS=-DDRIVER_VERSION_VAL=\"1.0-1\" CONFIG_HPF_DRIVER_VERSION is null, EXTRA_CFLAGS=-DDRIVER_VERSION_VAL=\"1.0-1\" make[1]: Leaving directory '/usr/src/kernels/6.6.70-24.oc9.x86_64' rm -f -rf /builddir/build/BUILD/kmod-dinghai/net/autoconf.h + ./builder.sh -t kernel -m CONFIG_DINGHAI_ETH -m CONFIG_ZXDH_AUXILIARY -m CONFIG_DINGHAI_PF -m CONFIG_ZXDH_SF -m CONFIG_DINGHAI_EN_AUX -m HAVE_DEV_PM_DOMAIN_ATTACH -m HAVE_BUS_FIND_DEVICE_GET_CONST -m CONFIG_DINGHAI_DH_CMD -m CONFIG_DINGHAI_NP -m CONFIG_ZXDH_MSGQ -m CONFIG_ZXDH_HARDWARE_BOND -m CONFIG_DINGHAI_PTP -m CONFIG_DINGHAI_TSN -m HAVE_DEVLINK_ALLOC_GET_1_PARAMS --ksrc /usr/src/kernels/6.6.70-24.oc9.x86_64 -j 7 /builddir/build/BUILD/kmod-dinghai/net/build/../autoconf.h make kernel CONFIG_DINGHAI_ETH=m CONFIG_ZXDH_AUXILIARY=m CONFIG_DINGHAI_PF=m CONFIG_ZXDH_SF=m CONFIG_DINGHAI_EN_AUX=m HAVE_DEV_PM_DOMAIN_ATTACH=m HAVE_BUS_FIND_DEVICE_GET_CONST=m CONFIG_DINGHAI_DH_CMD=m CONFIG_DINGHAI_NP=m CONFIG_ZXDH_MSGQ=m CONFIG_ZXDH_HARDWARE_BOND=m CONFIG_DINGHAI_PTP=m CONFIG_DINGHAI_TSN=m HAVE_DEVLINK_ALLOC_GET_1_PARAMS=m KSRC=/usr/src/kernels/6.6.70-24.oc9.x86_64 -j7 Building kernel modules... env CWD=/builddir/build/BUILD/kmod-dinghai/net make -C "/usr/src/kernels/6.6.70-24.oc9.x86_64" M="/builddir/build/BUILD/kmod-dinghai/net" CONFIG_DINGHAI_ETH=m CONFIG_DINGHAI_MPF= CONFIG_DINGHAI_HPF= CONFIG_DINGHAI_PF=m CONFIG_DINGHAI_ZF_MPF= CONFIG_KSRC=/usr/src/kernels/6.6.70-24.oc9.x86_64 CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= modules make[1]: Entering directory '/usr/src/kernels/6.6.70-24.oc9.x86_64' CONFIG_PF_MPF_DRIVER_VERSION is null, EXTRA_CFLAGS=-DZXDH_MSGQ -DPTP_DRIVER_INTERFACE_EN -DDRIVER_VERSION_VAL=\"1.0-1\" CONFIG_HPF_DRIVER_VERSION is null, EXTRA_CFLAGS=-DDRIVER_VERSION_VAL=\"1.0-1\" CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/base/en_auxiliary.o CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/dh_cmd.o CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/cmd/msg_main.o CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/cmd/msg_chan_lock.o CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/cmd/msg_chan_test.o CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/log.o CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/events.o CC [M] /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_pf.o /builddir/build/BUILD/kmod-dinghai/net/drivers/base/en_auxiliary.c:158:17: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int32_t (*)(struct device *)' {aka 'int (*)(struct device *)'} [-Werror=incompatible-pointer-types] 158 | .remove = zxdh_auxiliary_bus_remove, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-dinghai/net/drivers/base/en_auxiliary.c:158:17: note: (near initialization for 'zxdh_auxiliary_bus_type.remove') /builddir/build/BUILD/kmod-dinghai/net/drivers/base/en_auxiliary.c:161:17: error: initialization of 'int (*)(const struct device *, struct kobj_uevent_env *)' from incompatible pointer type 'int32_t (*)(struct device *, struct kobj_uevent_env *)' {aka 'int (*)(struct device *, struct kobj_uevent_env *)'} [-Werror=incompatible-pointer-types] 161 | .uevent = zxdh_auxiliary_uevent, | ^~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-dinghai/net/drivers/base/en_auxiliary.c:161:17: note: (near initialization for 'zxdh_auxiliary_bus_type.uevent') In file included from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_np/comm/include/zxic_common.h:34, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_aux/../en_np/table/include/dpp_tbl_api.h:23, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_aux/../msg_common.h:8, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_aux/en_aux_cmd.h:5, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/dh_cmd.c:9: /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_np/comm/include/zxic_private_top.h:33:10: fatal error: stdarg.h: No such file or directory 33 | #include | ^~~~~~~~~~ compilation terminated. make[4]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/dh_cmd.o] Error 1 make[4]: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make[4]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-dinghai/net/drivers/base/en_auxiliary.o] Error 1 make[3]: *** [scripts/Makefile.build:480: /builddir/build/BUILD/kmod-dinghai/net/drivers/base] Error 2 make[3]: *** Waiting for unfinished jobs.... In file included from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_np/comm/include/zxic_common.h:34, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_np/qos/include/dpp_drv_qos.h:29, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/plcr.h:12, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_pf.h:12, from /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_pf.c:11: /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_np/comm/include/zxic_private_top.h:33:10: fatal error: stdarg.h: No such file or directory 33 | #include | ^~~~~~~~~~ compilation terminated. make[4]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai/en_pf.o] Error 1 make[3]: *** [scripts/Makefile.build:480: /builddir/build/BUILD/kmod-dinghai/net/drivers/net/ethernet/dinghai] Error 2 make[2]: *** [/usr/src/kernels/6.6.70-24.oc9.x86_64/Makefile:1940: /builddir/build/BUILD/kmod-dinghai/net] Error 2 make[1]: Leaving directory '/usr/src/kernels/6.6.70-24.oc9.x86_64' make[1]: *** [Makefile:241: __sub-make] Error 2 make: *** [Makefile:79: kernel] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.do63PY (%build) Bad exit status from /var/tmp/rpm-tmp.do63PY (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /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 x86_64 --nodeps /builddir/build/SPECS/kmod-dinghai.spec