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-an8.8-kernel-5.10-build-331106-69471/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 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/kmod-mellanox-ethernet-5.10.134~16-5.8.3.0.7.1~1.an8.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-mellanox-ethernet.spec'], chrootPath='/var/lib/mock/dist-an8.8-kernel-5.10-build-331106-69471/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 Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1Ts3Wm + 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/bin/cat /builddir/build/SOURCES/source-git.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + mv src/ source/ + mkdir obj + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.iUbymf + umask 022 + cd /builddir/build/BUILD + cd kmod-mellanox-ethernet-5.10.134~16 + export 'EXTRA_CFLAGS=-DVERSION=\"5.10.134~16\"' + EXTRA_CFLAGS='-DVERSION=\"5.10.134~16\"' + export INSTALL_MOD_DIR=extra/kmod-mellanox-ethernet + INSTALL_MOD_DIR=extra/kmod-mellanox-ethernet + export 'CONF_OPTIONS=--with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx5-mod --with-mlxfw-mod --with-ipoib-mod --without-nvmf_host-mod --without-nvmf-host-without-fc --without-nvmf_target-mod' + CONF_OPTIONS='--with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx5-mod --with-mlxfw-mod --with-ipoib-mod --without-nvmf_host-mod --without-nvmf-host-without-fc --without-nvmf_target-mod' RPM build errors: + for flavor in default + export 'KSRC=%{kernel_source' 'default}' + KSRC='%{kernel_source' /var/tmp/rpm-tmp.iUbymf: line 38: export: `default}': not a valid identifier error: Bad exit status from /var/tmp/rpm-tmp.iUbymf (%build) Bad exit status from /var/tmp/rpm-tmp.iUbymf (%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