Mock Version: 2.17 Mock Version: 2.17 Mock Version: 2.17 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sm.spec'], chrootPath='/var/lib/mock/v8.2-staging-4753-5122/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sm.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/sm-2.30.8-2.xcpng8.2.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/sm.spec'], chrootPath='/var/lib/mock/v8.2-staging-4753-5122/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/sm.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.fV9sJr + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sm-2.30.8 + /usr/bin/gzip -dc /builddir/build/SOURCES/sm-2.29.0.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd sm-2.30.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/ca-343115-ensure-device + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-350522-backport + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-350871-log-if-lvhd-snapshot + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-350871-add-lock-context + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/cp-35625-extract-calls-to + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/cp-35625-use-link-instead-of + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/cp-35625-extract-calls-to-1 + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xsi-915-improve-performance-of + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-352165-check-that-device + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/merge-pull-request-530-from + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-354228-reinstate-load-calls + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-355401-make-post-attach + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-355289-ensure-xapi-is + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-356645-use-self.session-is + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-359453-check-shared-file + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-359453-add-fist-fault + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-359453-use-rename-not-link + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/cp-38316-dell-requested-that + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-352880-when-deleting-an-hba + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-369613-report-errors + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-369395-default-multipath + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-370037-don-t-lose-exception + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-370037-correctly-format + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/added-dell-me4-multipath + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-370696-do-not-attempt-to + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-344254-add-tests-for + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-344254-simplify-test + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-353437-give-coalesce + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-353437-activate-a-fist + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-372641-fix-_expand_size-for + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/ca-372772-fix-miscalculation + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0001-backport-of-ccd121cc248d79b749a63d4ad099e6d5f4b8b588.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0002-Update-xs-sm.service-s-description-for-XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0003-Add-TrueNAS-multipath-config.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0004-feat-drivers-add-CephFS-GlusterFS-and-XFS-drivers.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0005-feat-drivers-add-ZFS-driver-to-avoid-losing-VDI-meta.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0006-Re-add-the-ext4-driver-for-users-who-need-to-transit.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0007-feat-drivers-add-LinstorSR-driver.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0008-feat-tests-add-unit-tests-concerning-ZFS-close-xcp-n.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0009-If-no-NFS-ACLs-provided-assume-everyone.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0010-Added-SM-Driver-for-MooseFS.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0011-Avoid-usage-of-umount-in-ISOSR-when-legacy_mode-is-u.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0012-MooseFS-SR-uses-now-UUID-subdirs-for-each-SR.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0013-Fix-is_open-call-for-many-drivers-25.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0014-Remove-SR_CACHING-capability-for-many-SR-types-24.patch + /usr/bin/patch -p1 -s + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wzAgrX + umask 022 + cd /builddir/build/BUILD + cd sm-2.30.8 + DESTDIR=/builddir/build/BUILDROOT/sm-2.30.8-2.xcpng8.2.x86_64 + make make -C dcopy make[1]: Entering directory `/builddir/build/BUILD/sm-2.30.8/dcopy' cc -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Wall dcopy.c atomicio.c -o dcopy make[1]: Leaving directory `/builddir/build/BUILD/sm-2.30.8/dcopy' make[1]: cc: Command not found make[1]: *** [dcopy] Error 127 make: *** [build] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.wzAgrX (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.wzAgrX (%build) Child return code was: 1 EXCEPTION: [Error()] 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 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 x86_64 --nodeps /builddir/build/SPECS/sm.spec