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/gcc.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-364087-45180/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc.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/gcc-12.3.1.8-3.ocs23.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/gcc.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-364087-45180/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc.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.gkH4RA + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tgcc-12.3.1.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/12.3.1.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd tgcc-12.3.1.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-aarch64-Fix-loose-ldpstp-check-PR111411.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 Patch #1 (0001-aarch64-Fix-loose-ldpstp-check-PR111411.patch): patching file gcc/config/aarch64/aarch64.cc Hunk #1 succeeded at 26517 (offset 486 lines). patching file gcc/testsuite/gcc.dg/rtl/aarch64/pr111411.c Patch #2 (enabled-function-parameter-analysis-for-fat-lto.patch): + echo 'Patch #2 (enabled-function-parameter-analysis-for-fat-lto.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gcc/ipa-modref.cc Patch #3000 (gcc12-hack.patch): + echo 'Patch #3000 (gcc12-hack.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file libada/Makefile.in Hunk #1 succeeded at 73 (offset 2 lines). Hunk #2 succeeded at 118 (offset 3 lines). patching file config-ml.in Hunk #1 succeeded at 522 (offset 11 lines). patching file libcpp/macro.cc Hunk #1 succeeded at 3572 (offset 316 lines). Hunk #2 succeeded at 3699 (offset 319 lines). Hunk #3 succeeded at 3716 (offset 319 lines). patching file libcpp/expr.cc Hunk #1 succeeded at 799 (offset -4 lines). Patch #3001 (gcc12-libtool-no-rpath.patch): + echo 'Patch #3001 (gcc12-libtool-no-rpath.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file ltmain.sh Hunk #1 succeeded at 7103 (offset 1709 lines). Hunk #2 succeeded at 7799 (offset 1727 lines). Hunk #3 succeeded at 7851 (offset 1729 lines). Patch #3005 (gcc12-no-add-needed.patch): + echo 'Patch #3005 (gcc12-no-add-needed.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file gcc/config/alpha/elf.h Hunk #1 succeeded at 142 (offset -26 lines). patching file gcc/config/ia64/linux.h Hunk #1 succeeded at 74 (offset -2 lines). patching file gcc/config/gnu-user.h Patch #3006 (gcc12-Wno-format-security.patch): + echo 'Patch #3006 (gcc12-Wno-format-security.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file gcc/configure.ac patching file gcc/configure Hunk #1 succeeded at 7080 (offset 3 lines). patching file Makefile.tpl patching file Makefile.in Patch #3007 (gcc12-rh1574936.patch): + echo 'Patch #3007 (gcc12-rh1574936.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file libgcc/Makefile.in Hunk #1 succeeded at 247 (offset 1 line). Hunk #2 succeeded at 303 (offset 1 line). Patch #3008 (gcc12-d-shared-libphobos.patch): + echo 'Patch #3008 (gcc12-d-shared-libphobos.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file gcc/d/d-spec.cc Hunk #1 succeeded at 426 (offset 18 lines). Patch #3010 (Revert-tree-optimization-110702-avoid-zero-based-memory-ref.patch): + echo 'Patch #3010 (Revert-tree-optimization-110702-avoid-zero-based-memory-ref.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gcc/testsuite/gcc.dg/torture/pr110702.c patching file gcc/tree-ssa-loop-ivopts.cc Patch #3011 (ZHAOXIN-0001-Backport-zhaoxin-lujiazui-yongfeng-shijidadao-enable.patch): + echo 'Patch #3011 (ZHAOXIN-0001-Backport-zhaoxin-lujiazui-yongfeng-shijidadao-enable.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gcc/common/config/i386/cpuinfo.h patching file gcc/common/config/i386/i386-common.cc patching file gcc/common/config/i386/i386-cpuinfo.h patching file gcc/config.gcc Hunk #1 succeeded at 670 (offset -1 lines). Hunk #2 succeeded at 3813 (offset -1 lines). Hunk #3 succeeded at 3938 (offset -1 lines). patching file gcc/config/i386/cpuid.h patching file gcc/config/i386/driver-i386.cc patching file gcc/config/i386/i386-c.cc patching file gcc/config/i386/i386-options.cc patching file gcc/config/i386/i386.h patching file gcc/config/i386/i386.md patching file gcc/config/i386/lujiazui.md patching file gcc/config/i386/x86-tune-costs.h patching file gcc/config/i386/x86-tune-sched.cc patching file gcc/config/i386/x86-tune.def patching file gcc/config/i386/yongfeng.md patching file gcc/doc/extend.texi patching file gcc/doc/invoke.texi patching file gcc/testsuite/g++.target/i386/mv32.C patching file gcc/testsuite/gcc.target/i386/funcspec-56.inc Patch #3012 (HYGON-0001-i386-Support-HYGON-c86-4g-series-processors.patch): + echo 'Patch #3012 (HYGON-0001-i386-Support-HYGON-c86-4g-series-processors.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gcc/common/config/i386/cpuinfo.h Hunk #1 succeeded at 315 (offset 26 lines). Hunk #2 succeeded at 1084 (offset 85 lines). patching file gcc/common/config/i386/i386-common.cc Hunk #1 succeeded at 1834 (offset 3 lines). Hunk #2 succeeded at 2094 (offset 12 lines). Hunk #3 succeeded at 2123 (offset 12 lines). patching file gcc/common/config/i386/i386-cpuinfo.h Hunk #1 FAILED at 29. Hunk #2 FAILED at 58. Hunk #3 FAILED at 92. 3 out of 3 hunks FAILED -- saving rejects to file gcc/common/config/i386/i386-cpuinfo.h.rej patching file gcc/config.gcc Hunk #1 FAILED at 671. Hunk #2 succeeded at 3876 (offset 12 lines). Hunk #3 succeeded at 3982 (offset 24 lines). 1 out of 3 hunks FAILED -- saving rejects to file gcc/config.gcc.rej patching file gcc/config/i386/c86-4g-m7.md patching file gcc/config/i386/c86-4g.md patching file gcc/config/i386/cpuid.h Hunk #1 FAILED at 204. 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/cpuid.h.rej patching file gcc/config/i386/driver-i386.cc Hunk #1 succeeded at 496 (offset 1 line). Hunk #2 FAILED at 785. 1 out of 2 hunks FAILED -- saving rejects to file gcc/config/i386/driver-i386.cc.rej patching file gcc/config/i386/i386-c.cc Hunk #1 succeeded at 262 (offset 12 lines). Hunk #2 succeeded at 452 (offset 21 lines). patching file gcc/config/i386/i386-options.cc Hunk #1 succeeded at 170 (offset 5 lines). Hunk #2 succeeded at 786 (offset 8 lines). patching file gcc/config/i386/i386.cc patching file gcc/config/i386/i386.h Hunk #1 succeeded at 2264 (offset 3 lines). Hunk #2 FAILED at 2372. 1 out of 2 hunks FAILED -- saving rejects to file gcc/config/i386/i386.h.rej patching file gcc/config/i386/i386.md Hunk #1 FAILED at 474. Hunk #2 FAILED at 1311. Hunk #3 succeeded at 2074 (offset 2 lines). Hunk #4 succeeded at 2099 (offset 2 lines). Hunk #5 succeeded at 2142 (offset 2 lines). Hunk #6 succeeded at 2285 (offset 2 lines). Hunk #7 succeeded at 2492 (offset 2 lines). Hunk #8 succeeded at 2650 (offset 2 lines). Hunk #9 succeeded at 3499 (offset 2 lines). Hunk #10 succeeded at 3671 (offset 2 lines). Hunk #11 succeeded at 3843 (offset 2 lines). Hunk #12 succeeded at 4160 (offset 2 lines). Hunk #13 succeeded at 18024 (offset 2 lines). Hunk #14 succeeded at 20976 (offset 2 lines). Hunk #15 succeeded at 21021 (offset 2 lines). 2 out of 15 hunks FAILED -- saving rejects to file gcc/config/i386/i386.md.rej patching file gcc/config/i386/mmx.md patching file gcc/config/i386/sse.md patching file gcc/config/i386/x86-tune-costs.h Hunk #1 succeeded at 3808 (offset 341 lines). patching file gcc/config/i386/x86-tune-sched.cc Hunk #1 FAILED at 75. Hunk #2 succeeded at 404 (offset 3 lines). 1 out of 2 hunks FAILED -- saving rejects to file gcc/config/i386/x86-tune-sched.cc.rej patching file gcc/config/i386/x86-tune.def Hunk #1 FAILED at 42. Hunk #2 FAILED at 52. Hunk #3 FAILED at 62. Hunk #4 FAILED at 70. Hunk #5 FAILED at 109. Hunk #6 FAILED at 172. Hunk #7 FAILED at 256. Hunk #8 FAILED at 304. Hunk #9 FAILED at 322. Hunk #10 FAILED at 343. Hunk #11 FAILED at 368. Hunk #12 FAILED at 393. Hunk #13 FAILED at 468. Hunk #14 succeeded at 545 (offset 2 lines). 13 out of 14 hunks FAILED -- saving rejects to file gcc/config/i386/x86-tune.def.rej patching file gcc/doc/extend.texi Hunk #1 succeeded at 23921 (offset 9 lines). patching file gcc/doc/invoke.texi Hunk #1 succeeded at 31943 (offset 17 lines). patching file gcc/testsuite/g++.target/i386/mv33.C patching file gcc/testsuite/gcc.target/i386/builtin_target.c patching file gcc/testsuite/gcc.target/i386/funcspec-56.inc Hunk #1 succeeded at 203 (offset 3 lines). Hunk #2 succeeded at 232 (offset 6 lines). error: Bad exit status from /var/tmp/rpm-tmp.gkH4RA (%prep) Bad exit status from /var/tmp/rpm-tmp.gkH4RA (%prep) 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/gcc.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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/gcc.spec