Mock Version: 6.2 Mock Version: 6.2 Mock Version: 6.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/llvm.spec'], chrootPath='/var/lib/mock/dist-an23.4-build-543220-85952/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=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/llvm.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: Macro expanded in comment on line 572: %{with sys_llvm} warning: Macro expanded in comment on line 575: %{pkg_name_lld}%{?_isa} = %{version}-%{release} Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1781740800 Wrote: /builddir/build/SRPMS/llvm-17.0.6-1.an23.src.rpm RPM build warnings: Macro expanded in comment on line 572: %{with sys_llvm} Macro expanded in comment on line 575: %{pkg_name_lld}%{?_isa} = %{version}-%{release} Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/llvm.spec'], chrootPath='/var/lib/mock/dist-an23.4-build-543220-85952/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=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/llvm.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: Macro expanded in comment on line 572: %{with sys_llvm} warning: Macro expanded in comment on line 575: %{pkg_name_lld}%{?_isa} = %{version}-%{release} Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1781740800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HTi1Ke + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf llvm-project-17.0.6.src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/llvm-project-17.0.6.src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd llvm-project-17.0.6.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-PATCH-clang-Don-t-install-static-libraries.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f patch unexpectedly ends in middle of line + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Always-build-shared-libs-for-LLD.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f patch unexpectedly ends in middle of line + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-fedora-standalone.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f patch unexpectedly ends in middle of line + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0005-Fix-for-building-autotuner-with-mlir.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f patch unexpectedly ends in middle of line patch unexpectedly ends in middle of line + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0006-backport-mlir-Make-it-possible-to-build-a-DenseResou.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0007-backport-mlir-Add-Python-bindings-for-DenseResourceE.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0008-Propeller-bugfix-for-MachineBasicBlock-hash-set.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f patch unexpectedly ends in middle of line 1 out of 1 hunk FAILED -- saving rejects to file llvm/lib/CodeGen/BasicBlockSections.cpp.rej patch unexpectedly ends in middle of line error: Bad exit status from /var/tmp/rpm-tmp.HTi1Ke (%prep) RPM build warnings: RPM build errors: Macro expanded in comment on line 572: %{with sys_llvm} Macro expanded in comment on line 575: %{pkg_name_lld}%{?_isa} = %{version}-%{release} Bad exit status from /var/tmp/rpm-tmp.HTi1Ke (%prep) 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/llvm.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 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/llvm.spec'