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-363123-43993/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=981gid=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-2.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-363123-43993/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=981gid=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.WbLJG2 + 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 . Patch #1 (0001-aarch64-Fix-loose-ldpstp-check-PR111411.patch): + echo 'Patch #1 (0001-aarch64-Fix-loose-ldpstp-check-PR111411.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 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 Hunk #2 succeeded at 564 (offset -23 lines). Hunk #3 FAILED at 1068. 1 out of 3 hunks FAILED -- saving rejects to file gcc/common/config/i386/cpuinfo.h.rej patching file gcc/common/config/i386/i386-common.cc Hunk #1 FAILED at 1875. Hunk #2 succeeded at 1996 (offset -68 lines). 1 out of 2 hunks FAILED -- saving rejects to file gcc/common/config/i386/i386-common.cc.rej patching file gcc/common/config/i386/i386-cpuinfo.h Hunk #1 FAILED at 30. Hunk #2 FAILED at 60. Hunk #3 FAILED at 97. 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 3812 (offset 14 lines). Hunk #3 succeeded at 3937 (offset 10 lines). 1 out of 3 hunks FAILED -- saving rejects to file gcc/config.gcc.rej patching file gcc/config/i386/cpuid.h Hunk #1 succeeded at 204 (offset -7 lines). patching file gcc/config/i386/driver-i386.cc Hunk #2 succeeded at 521 (offset -4 lines). Hunk #3 FAILED at 807. 1 out of 3 hunks FAILED -- saving rejects to file gcc/config/i386/driver-i386.cc.rej patching file gcc/config/i386/i386-c.cc Hunk #2 succeeded at 351 (offset -12 lines). patching file gcc/config/i386/i386-options.cc Hunk #1 succeeded at 143 (offset -2 lines). Hunk #2 FAILED at 773. 1 out of 2 hunks FAILED -- saving rejects to file gcc/config/i386/i386-options.cc.rej patching file gcc/config/i386/i386.h Hunk #1 FAILED at 2253. Hunk #2 succeeded at 2369 (offset -12 lines). 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 477. Hunk #2 succeeded at 1311 (offset -4 lines). 1 out of 2 hunks FAILED -- saving rejects to file gcc/config/i386/i386.md.rej patching file gcc/config/i386/lujiazui.md patching file gcc/config/i386/x86-tune-costs.h Hunk #1 FAILED at 3276. 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/x86-tune-costs.h.rej patching file gcc/config/i386/x86-tune-sched.cc Hunk #2 FAILED at 76. Hunk #3 succeeded at 430 (offset -1 lines). 1 out of 3 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 63. Hunk #4 FAILED at 71. Hunk #5 FAILED at 110. Hunk #6 succeeded at 157 (offset -1 lines). Hunk #7 FAILED at 173. Hunk #8 succeeded at 234 (offset -1 lines). Hunk #9 succeeded at 249 (offset -1 lines). Hunk #10 FAILED at 258. Hunk #11 succeeded at 294 (offset -2 lines). Hunk #12 FAILED at 306. Hunk #13 FAILED at 324. Hunk #14 FAILED at 341. Hunk #15 FAILED at 371. Hunk #16 FAILED at 396. Hunk #17 FAILED at 413. Hunk #18 FAILED at 472. Hunk #19 FAILED at 483. Hunk #20 FAILED at 494. Hunk #21 FAILED at 504. 17 out of 21 hunks FAILED -- saving rejects to file gcc/config/i386/x86-tune.def.rej patching file gcc/config/i386/yongfeng.md patching file gcc/doc/extend.texi Hunk #1 succeeded at 23862 (offset 2001 lines). patching file gcc/doc/invoke.texi Hunk #1 succeeded at 31924 (offset 147 lines). patching file gcc/testsuite/g++.target/i386/mv32.C patching file gcc/testsuite/gcc.target/i386/funcspec-56.inc Hunk #1 FAILED at 192. Hunk #2 succeeded at 206 (offset -8 lines). 1 out of 2 hunks FAILED -- saving rejects to file gcc/testsuite/gcc.target/i386/funcspec-56.inc.rej error: Bad exit status from /var/tmp/rpm-tmp.WbLJG2 (%prep) Bad exit status from /var/tmp/rpm-tmp.WbLJG2 (%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