Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-mellanox-ethernet.spec'], chrootPath='/var/lib/mock/dist-an23-kernel-5.10.134-16-build-351871-69883/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=990gid=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-mellanox-ethernet.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 %endif directive in line 146: %endif # end of setup module sign scripts Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1706659200 Wrote: /builddir/build/SRPMS/kmod-mellanox-ethernet-5.10.134~16-5.8.3.0.7.1~1.an23.src.rpm RPM build warnings: extra tokens at the end of %endif directive in line 146: %endif # end of setup module sign scripts 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-mellanox-ethernet.spec'], chrootPath='/var/lib/mock/dist-an23-kernel-5.10.134-16-build-351871-69883/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=990gid=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-mellanox-ethernet.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 %endif directive in line 146: %endif # end of setup module sign scripts Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1706659200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CCQzJ9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kmod-mellanox-ethernet-5.10.134~16 + /usr/bin/mkdir -p kmod-mellanox-ethernet-5.10.134~16 + cd kmod-mellanox-ethernet-5.10.134~16 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/source-git.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + mv src/ source/ + mkdir obj + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.jhm4vN + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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-mellanox-ethernet-5.10.134~16 + rm -rf /builddir/build/BUILDROOT/kmod-mellanox-ethernet-5.10.134~16-5.8.3.0.7.1~1.an23.x86_64 + export 'EXTRA_CFLAGS=-DVERSION=\"5.10.134~16\"' + EXTRA_CFLAGS='-DVERSION=\"5.10.134~16\"' + for flavor in default + rm -rf obj/default + cp -r source obj/default + cd /builddir/build/BUILD/kmod-mellanox-ethernet-5.10.134~16/obj/default + export KSRC=/lib/modules/5.10.134-16.an23.x86_64/build + KSRC=/lib/modules/5.10.134-16.an23.x86_64/build + export KVERSION=5.10.134-16.an23.x86_64 + KVERSION=5.10.134-16.an23.x86_64 + export 'MLNX_EN_PATCH_PARAMS=--kernel 5.10.134-16.an23.x86_64 --kernel-sources /lib/modules/5.10.134-16.an23.x86_64/build' + MLNX_EN_PATCH_PARAMS='--kernel 5.10.134-16.an23.x86_64 --kernel-sources /lib/modules/5.10.134-16.an23.x86_64/build' + find compat -type f -exec touch -t 200012201010 '{}' ';' + ./scripts/mlnx_en_patch.sh --kernel 5.10.134-16.an23.x86_64 --kernel-sources /lib/modules/5.10.134-16.an23.x86_64/build -j80 tac: failed to open '/lib/modules/5.10.134-16.an23.x86_64/build/include/*/autoconf.h' for reading: No such file or directory tac: failed to open '/lib/modules/5.10.134-16.an23.x86_64/build/include/*/autoconf.h' for reading: No such file or directory tac: failed to open '/lib/modules/5.10.134-16.an23.x86_64/build/include/*/autoconf.h' for reading: No such file or directory Warning: CONFIG_RFS_ACCEL is not enabled in the kernel, cannot enable CONFIG_MLX5_EN_ARFS. tac: failed to open '/lib/modules/5.10.134-16.an23.x86_64/build/include/*/autoconf.h' for reading: No such file or directory Warning: CONFIG_DCB is not enabled in the kernel, cannot enable CONFIG_MLX5_CORE_EN_DCB. tac: failed to open '/lib/modules/5.10.134-16.an23.x86_64/build/include/*/autoconf.h' for reading: No such file or directory Warning: CONFIG_TLS_DEVICE is not enabled in the kernel, cannot enable CONFIG_MLX5_EN_TLS. tac: failed to open '/lib/modules/5.10.134-16.an23.x86_64/build/include/*/autoconf.h' for reading: No such file or directory Created config.mk: KVERSION=5.10.134-16.an23.x86_64 CONFIG_COMPAT_VERSION= CONFIG_COMPAT_KOBJECT_BACKPORT= BACKPORT_INCLUDES= ARCH=x86_64 CFLAGS_RETPOLINE= MODULES_DIR:=/lib/modules/5.10.134-16.an23.x86_64/updates KSRC=/lib/modules/5.10.134-16.an23.x86_64/build KSRC_OBJ=/lib/modules/5.10.134-16.an23.x86_64/build KLIB_BUILD=/lib/modules/5.10.134-16.an23.x86_64/build CWD=/builddir/build/BUILD/kmod-mellanox-ethernet-5.10.134~16/obj/default MLNX_EN_EXTRA_CFLAGS:= CONFIG_MEMTRACK:= CONFIG_AUXILIARY_BUS:=m CONFIG_MLX5_CORE:=m CONFIG_MLX5_CORE_EN:=y CONFIG_MLX5_CORE_EN_DCB:= CONFIG_MLX5_EN_ARFS:= CONFIG_MLX5_EN_RXNFC:=y CONFIG_MLX5_ESWITCH:=y CONFIG_MLX5_CLS_ACT=y CONFIG_MLX5_BRIDGE=y CONFIG_MLX5_TC_CT=y CONFIG_MLX5_TC_SAMPLE=y CONFIG_MLX5_SW_STEERING:=y CONFIG_MLX5_ACCEL:= CONFIG_MLX5_EN_ACCEL_FS:= CONFIG_MLX5_MPFS:=y CONFIG_MLX5_EN_TLS:= CONFIG_MLX5_TLS:= CONFIG_MLX5_SF:=y CONFIG_MLX5_SF_MANAGER:=y CONFIG_MLXDEVM:=m CONFIG_MLX5_SF_CFG:=y CONFIG_MLXFW:=m CONFIG_MLX5_FPGA_TLS:= CONFIG_MLX5_FPGA_IPSEC:= CONFIG_MLX5_EN_MACSEC:= CONFIG_MLX5_IPSEC:= CONFIG_MLX5_FPGA:= CONFIG_MLNX_BLOCK_REQUEST_MODULE:= CONFIG_ENABLE_XDP:=y Running configure... ./configure --with-linux-obj=/lib/modules/5.10.134-16.an23.x86_64/build --with-linux=/lib/modules/5.10.134-16.an23.x86_64/build --with-njobs=80 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu 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 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 for style of include used by make... GNU checking dependency style of gcc... none checking dependency style of gcc... none checking for ar... ar 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 for ranlib... ranlib checking for ld... ld checking for objdump... objdump checking for strip... strip checking size of unsigned long long... 8 ---> size SIZEOF ---> size SIZEOF 8 checking for Linux sources... checking for ... no configure: error: Kernel source could not be found. Failed executing ./configureerror: Bad exit status from /var/tmp/rpm-tmp.jhm4vN (%build) RPM build warnings: RPM build errors: extra tokens at the end of %endif directive in line 146: %endif # end of setup module sign scripts Bad exit status from /var/tmp/rpm-tmp.jhm4vN (%build) 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-mellanox-ethernet.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 598, 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-mellanox-ethernet.spec