Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/gcc.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-120429-45980/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=986gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7qepk3j0:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7qepk3j0:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '58091105539944f18e2655ec7151cd1c', '-D', '/var/lib/mock/dist-an8.7-build-120429-45980/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7qepk3j0:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/gcc-8.5.0-10.1.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/gcc.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-120429-45980/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=986gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7qepk3j0:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7qepk3j0:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ea3cb8fbce9f44c3acfd4aaf8c011016', '-D', '/var/lib/mock/dist-an8.7-build-120429-45980/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7qepk3j0:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EUfcS0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gcc-8.5.0-20210514 + /usr/bin/xz -dc /builddir/build/SOURCES/gcc-8.5.0-20210514.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gcc-8.5.0-20210514 + /usr/bin/xz -dc /builddir/build/SOURCES/nvptx-tools-c28050f60193b3b95a18866a96f03334e874e78f.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/nvptx-newlib-aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (gcc8-hack.patch): + echo 'Patch #0 (gcc8-hack.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .hack~ --fuzz=0 patching file libada/Makefile.in Hunk #1 succeeded at 72 (offset 6 lines). Hunk #2 succeeded at 116 (offset 6 lines). patching file config-ml.in patching file libcpp/macro.c Hunk #1 succeeded at 3246 (offset 299 lines). Hunk #2 succeeded at 3359 (offset 302 lines). Hunk #3 succeeded at 3373 (offset 302 lines). patching file libcpp/expr.c Hunk #1 succeeded at 788 (offset 116 lines). Patch #2 (gcc8-i386-libgomp.patch): + echo 'Patch #2 (gcc8-i386-libgomp.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .i386-libgomp~ --fuzz=0 patching file libgomp/configure.tgt Hunk #1 succeeded at 74 (offset 7 lines). Patch #3 (gcc8-sparc-config-detection.patch): + echo 'Patch #3 (gcc8-sparc-config-detection.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .sparc-config-detection~ --fuzz=0 patching file gcc/config.gcc Hunk #1 succeeded at 2917 (offset 127 lines). Hunk #2 succeeded at 2971 (offset 127 lines). patching file libgcc/config.host Hunk #1 succeeded at 1234 (offset 232 lines). Hunk #2 succeeded at 1282 (offset 232 lines). Patch #4 (gcc8-libgomp-omp_h-multilib.patch): + echo 'Patch #4 (gcc8-libgomp-omp_h-multilib.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .libgomp-omp_h-multilib~ --fuzz=0 patching file libgomp/omp.h.in Hunk #1 succeeded at 40 (offset -2 lines). Patch #5 (gcc8-libtool-no-rpath.patch): + echo 'Patch #5 (gcc8-libtool-no-rpath.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .libtool-no-rpath~ --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). + echo 'Patch #6 (gcc8-isl-dl.patch):' Patch #6 (gcc8-isl-dl.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .isl-dl~ --fuzz=0 patching file gcc/Makefile.in Hunk #1 succeeded at 1058 (offset 12 lines). Hunk #2 succeeded at 2265 (offset 69 lines). patching file gcc/graphite.h Hunk #2 succeeded at 1047 (offset 2 lines). patching file gcc/graphite.c patching file gcc/toplev.c Hunk #1 succeeded at 97 (offset 3 lines). Hunk #2 succeeded at 671 (offset -13 lines). + echo 'Patch #7 (gcc8-libstdc++-docs.patch):' Patch #7 (gcc8-libstdc++-docs.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .libstdc++-docs~ --fuzz=0 patching file libstdc++-v3/doc/html/index.html Hunk #1 succeeded at 4 (offset -1 lines). patching file libstdc++-v3/doc/html/api.html Patch #8 (gcc8-no-add-needed.patch): + echo 'Patch #8 (gcc8-no-add-needed.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .no-add-needed~ --fuzz=0 patching file gcc/config/alpha/elf.h patching file gcc/config/ia64/linux.h patching file gcc/config/gnu-user.h patching file gcc/config/rs6000/sysv4.h + echo 'Patch #9 (gcc8-foffload-default.patch):' Patch #9 (gcc8-foffload-default.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .foffload-default~ --fuzz=0 patching file gcc/gcc.c Hunk #1 succeeded at 291 (offset 1 line). Hunk #2 succeeded at 4487 (offset 26 lines). Hunk #3 succeeded at 7769 (offset 69 lines). patching file gcc/lto-wrapper.c Hunk #2 succeeded at 872 (offset 81 lines). Hunk #3 succeeded at 888 (offset 81 lines). patching file libgomp/target.c Hunk #1 succeeded at 2514 (offset 158 lines). + echo 'Patch #10 (gcc8-Wno-format-security.patch):' Patch #10 (gcc8-Wno-format-security.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .Wno-format-security~ --fuzz=0 patching file gcc/configure.ac patching file gcc/configure Hunk #1 succeeded at 6660 (offset 13 lines). + echo 'Patch #11 (gcc8-rh1512529-aarch64.patch):' Patch #11 (gcc8-rh1512529-aarch64.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1512529-aarch64~ --fuzz=0 patching file gcc/config/aarch64/aarch64.c Hunk #1 succeeded at 4064 (offset 265 lines). Hunk #2 succeeded at 4887 (offset 291 lines). Hunk #3 succeeded at 5111 (offset 291 lines). Hunk #4 succeeded at 5214 (offset 291 lines). Hunk #5 succeeded at 11002 (offset 321 lines). Hunk #6 succeeded at 17525 (offset 153 lines). Hunk #7 succeeded at 18072 (offset 170 lines). patching file gcc/config/aarch64/aarch64.md Hunk #1 succeeded at 5952 (offset 140 lines). patching file gcc/testsuite/gcc.target/aarch64/stack-check-12.c patching file gcc/testsuite/gcc.target/aarch64/stack-check-13.c patching file gcc/testsuite/gcc.target/aarch64/stack-check-14.c patching file gcc/testsuite/gcc.target/aarch64/stack-check-15.c patching file gcc/testsuite/lib/target-supports.exp Hunk #1 succeeded at 9269 (offset 68 lines). Hunk #2 succeeded at 9280 (offset 68 lines). Patch #13 (gcc8-rh1574936.patch): + echo 'Patch #13 (gcc8-rh1574936.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1574936~ --fuzz=0 patching file libgcc/Makefile.in Patch #14 (gcc8-libgcc-hardened.patch): + echo 'Patch #14 (gcc8-libgcc-hardened.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .libgcc-hardened~ --fuzz=0 patching file libgcc/config/t-slibgcc + echo 'Patch #15 (gcc8-rh1670535.patch):' Patch #15 (gcc8-rh1670535.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1670535~ --fuzz=0 patching file gcc/collect2.c Hunk #1 succeeded at 838 (offset 7 lines). Hunk #2 succeeded at 846 (offset 7 lines). Hunk #3 succeeded at 1016 (offset 7 lines). Hunk #4 succeeded at 1107 (offset 7 lines). Hunk #5 succeeded at 1327 (offset 7 lines). patching file gcc/common.opt Hunk #1 succeeded at 2715 (offset -17 lines). patching file gcc/doc/invoke.texi Hunk #1 succeeded at 12268 (offset -342 lines). patching file gcc/opts.c Hunk #1 succeeded at 2489 (offset -68 lines). Patch #16 (gcc8-libgomp-20190503.patch): + echo 'Patch #16 (gcc8-libgomp-20190503.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .libgomp-20190503~ --fuzz=0 patching file libgomp/loop.c patching file libgomp/oacc-plugin.c patching file libgomp/libgomp_g.h patching file libgomp/affinity.c patching file libgomp/sections.c patching file libgomp/config/linux/affinity.c patching file libgomp/config/linux/ia64/futex.h patching file libgomp/config/nvptx/teams.c patching file libgomp/config/nvptx/team.c patching file libgomp/config/nvptx/oacc-parallel.c patching file libgomp/config/nvptx/target.c patching file libgomp/config/nvptx/icv-device.c patching file libgomp/config/nvptx/affinity-fmt.c patching file libgomp/config/mingw32/affinity-fmt.c patching file libgomp/config/rtems/bar.c patching file libgomp/config/rtems/affinity-fmt.c patching file libgomp/config.h.in Hunk #5 succeeded at 143 (offset -3 lines). patching file libgomp/teams.c patching file libgomp/libgomp.map patching file libgomp/oacc-async.c patching file libgomp/loop_ull.c patching file libgomp/oacc-int.h patching file libgomp/testsuite/Makefile.in patching file libgomp/task.c patching file libgomp/team.c patching file libgomp/libgomp.h patching file libgomp/oacc-parallel.c patching file libgomp/openacc2.f90 patching file libgomp/taskloop.c patching file libgomp/parallel.c patching file libgomp/oacc-plugin.h patching file libgomp/target.c patching file libgomp/ordered.c patching file libgomp/alloc.c patching file libgomp/configure.ac patching file libgomp/icv.c patching file libgomp/configure Hunk #9 succeeded at 15403 (offset -11 lines). Hunk #10 succeeded at 15418 (offset -11 lines). Hunk #11 succeeded at 15448 (offset -11 lines). Hunk #12 succeeded at 15485 (offset 17 lines). Hunk #13 succeeded at 15503 (offset 17 lines). Hunk #14 succeeded at 15520 (offset 17 lines). Hunk #15 succeeded at 15546 (offset 17 lines). Hunk #16 succeeded at 15596 (offset 7 lines). Hunk #17 succeeded at 15823 (offset 7 lines). patching file libgomp/Makefile.am patching file libgomp/oacc-mem.c patching file libgomp/env.c patching file libgomp/fortran.c patching file libgomp/configure.tgt patching file libgomp/icv-device.c patching file libgomp/Makefile.in patching file libgomp/plugin/cuda/cuda.h patching file libgomp/plugin/cuda-lib.def patching file libgomp/plugin/plugin-nvptx.c Hunk #12 succeeded at 908 (offset -9 lines). Hunk #13 succeeded at 970 (offset -9 lines). Hunk #14 succeeded at 1154 (offset -9 lines). Hunk #15 succeeded at 1179 (offset -9 lines). Hunk #16 succeeded at 1229 (offset -9 lines). Hunk #17 succeeded at 1417 (offset -9 lines). Hunk #18 succeeded at 1435 (offset -9 lines). Hunk #19 succeeded at 1597 (offset -9 lines). Hunk #20 succeeded at 1653 (offset -9 lines). Hunk #21 succeeded at 1667 (offset -9 lines). Hunk #22 succeeded at 1811 (offset -9 lines). Hunk #23 succeeded at 1927 (offset -9 lines). patching file libgomp/plugin/configfrag.ac Hunk #5 succeeded at 152 (offset -10 lines). Hunk #6 succeeded at 167 (offset -10 lines). Hunk #7 succeeded at 223 (offset 17 lines). Hunk #8 succeeded at 241 (offset 17 lines). Hunk #9 succeeded at 258 (offset 17 lines). Hunk #10 succeeded at 282 (offset 17 lines). patching file libgomp/affinity-fmt.c patching file libgomp/single.c patching file libgomp/oacc-cuda.c patching file libgomp/work.c patching file include/gomp-constants.h Patch #17 (gcc8-libgomp-testsuite.patch): + echo 'Patch #17 (gcc8-libgomp-testsuite.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .libgomp-testsuite~ --fuzz=0 patching file libgomp/testsuite/libgomp-test-support.exp.in patching file libgomp/testsuite/lib/libgomp.exp Hunk #3 succeeded at 368 (offset 6 lines). Patch #18 (gcc8-remove-old-demangle.patch): + echo 'Patch #18 (gcc8-remove-old-demangle.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .demangle~ --fuzz=0 patching file include/demangle.h Hunk #2 succeeded at 74 (offset -11 lines). Hunk #3 succeeded at 85 (offset -11 lines). Hunk #4 succeeded at 95 (offset -11 lines). Hunk #5 succeeded at 114 (offset -11 lines). patching file libiberty/cplus-dem.c patching file libiberty/testsuite/demangle-expected Hunk #6 succeeded at 1399 (offset -6 lines). + echo 'Patch #19 (gcc8-rh1960701.patch):' Patch #19 (gcc8-rh1960701.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1960701~ --fuzz=0 patching file gcc/cp/call.c patching file gcc/cp/tree.c patching file gcc/testsuite/g++.dg/cpp1y/pr95226.C Patch #20 (gcc8-pr100797.patch): + echo 'Patch #20 (gcc8-pr100797.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .pr100797~ --fuzz=0 patching file gcc/cp/call.c Hunk #1 succeeded at 7914 (offset -395 lines). Hunk #2 succeeded at 7923 (offset -395 lines). Hunk #3 succeeded at 7937 (offset -395 lines). patching file gcc/testsuite/g++.dg/inherit/virtual15.C patching file gcc/testsuite/g++.dg/inherit/virtual15a.C Patch #21 (gcc8-rh1981822.patch): + echo 'Patch #21 (gcc8-rh1981822.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1981822~ --fuzz=0 patching file gcc/cp/mangle.c Hunk #1 succeeded at 1610 (offset -18 lines). Hunk #2 succeeded at 2043 (offset 15 lines). patching file gcc/testsuite/g++.dg/abi/lambda-defarg1.C Patch #22 (gcc8-Wbidi-chars.patch): + echo 'Patch #22 (gcc8-Wbidi-chars.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .bidi~ --fuzz=0 patching file gcc/c-family/c.opt patching file gcc/doc/invoke.texi patching file gcc/testsuite/c-c++-common/Wbidi-chars-1.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-10.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-11.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-12.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-13.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-14.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-15.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-16.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-17.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-2.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-3.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-4.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-5.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-6.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-7.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-8.c patching file gcc/testsuite/c-c++-common/Wbidi-chars-9.c patching file libcpp/include/cpplib.h patching file libcpp/init.c patching file libcpp/internal.h patching file libcpp/lex.c Patch #23 (gcc8-pr96796.patch): + echo 'Patch #23 (gcc8-pr96796.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pr96796~ --fuzz=0 patching file gcc/lra-constraints.c Hunk #1 succeeded at 235 (offset -1 lines). Hunk #2 succeeded at 270 (offset -1 lines). Hunk #4 succeeded at 574 (offset -47 lines). patching file gcc/testsuite/gcc.c-torture/compile/pr96796.c Patch #24 (gcc8-pch-tweaks.patch): + echo 'Patch #24 (gcc8-pch-tweaks.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pch-tweaks~ --fuzz=0 patching file gcc/c-family/c-pch.c patching file gcc/config/avr/avr.c Hunk #1 succeeded at 10245 (offset 131 lines). patching file gcc/config/darwin.c Hunk #1 succeeded at 122 (offset -12 lines). patching file gcc/config/pa/pa.c Hunk #1 succeeded at 9875 (offset -134 lines). Hunk #2 succeeded at 9919 (offset -134 lines). patching file gcc/config/rs6000/rs6000.c Hunk #1 succeeded at 33442 (offset 12843 lines). Hunk #2 succeeded at 34313 (offset 13010 lines). Hunk #3 succeeded at 34372 (offset 13010 lines). patching file gcc/doc/gty.texi Hunk #1 succeeded at 197 (offset -8 lines). patching file gcc/gengtype-state.c patching file gcc/gengtype.c Hunk #1 succeeded at 167 (offset -5 lines). Hunk #2 succeeded at 198 (offset -5 lines). Hunk #3 succeeded at 216 (offset -5 lines). Hunk #4 succeeded at 496 (offset -5 lines). Hunk #5 succeeded at 1469 (offset -5 lines). Hunk #6 succeeded at 1483 (offset -5 lines). Hunk #7 succeeded at 1533 (offset -5 lines). Hunk #8 succeeded at 1549 (offset -5 lines). Hunk #9 succeeded at 1562 (offset -5 lines). Hunk #10 succeeded at 2523 (offset -11 lines). Hunk #11 succeeded at 2724 (offset -11 lines). Hunk #12 succeeded at 2751 (offset -11 lines). Hunk #13 succeeded at 3283 (offset -11 lines). Hunk #14 succeeded at 3829 (offset -11 lines). Hunk #15 succeeded at 3916 (offset -11 lines). Hunk #16 succeeded at 4451 (offset -11 lines). Hunk #17 succeeded at 4746 (offset -11 lines). Hunk #18 succeeded at 4915 (offset -11 lines). patching file gcc/gengtype.h Hunk #1 succeeded at 149 (offset -5 lines). Hunk #2 succeeded at 329 (offset -5 lines). patching file gcc/ggc-common.c patching file gcc/ggc.h patching file gcc/output.h patching file gcc/tree-core.h Hunk #1 succeeded at 1811 (offset -150 lines). patching file gcc/varasm.c Hunk #1 succeeded at 245 (offset -5 lines). Hunk #2 succeeded at 7377 (offset -401 lines). patching file libcpp/include/line-map.h patching file gcc/config/avr/avr.c Hunk #1 succeeded at 10220 (offset 131 lines). Hunk #2 succeeded at 10233 (offset 131 lines). + echo 'Patch #25 (gcc8-aarch64-mtune-neoverse-512tvb.patch):' Patch #25 (gcc8-aarch64-mtune-neoverse-512tvb.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .neoverse~ --fuzz=0 patching file gcc/config/aarch64/aarch64-cores.def patching file gcc/config/aarch64/aarch64-tune.md patching file gcc/doc/invoke.texi Hunk #1 succeeded at 14794 (offset 22 lines). Hunk #2 succeeded at 14807 (offset 22 lines). Hunk #3 succeeded at 14845 (offset 22 lines). Patch #26 (gcc8-rh2028609.patch): + echo 'Patch #26 (gcc8-rh2028609.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .rh2028609~ --fuzz=0 patching file gcc/config/s390/s390.c Hunk #1 succeeded at 10606 (offset 118 lines). patching file gcc/regcprop.c Hunk #1 succeeded at 402 (offset -24 lines). patching file gcc/target.def Hunk #1 succeeded at 5259 (offset -187 lines). patching file gcc/hooks.h patching file gcc/hooks.c + echo 'Patch #27 (gcc8-libgfortran-default-values.patch):' Patch #27 (gcc8-libgfortran-default-values.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .libgfortran-default~ --fuzz=0 patching file gcc/fortran/io.c Hunk #1 succeeded at 903 (offset -6 lines). Hunk #2 succeeded at 1034 (offset -3 lines). Hunk #3 succeeded at 1110 (offset -3 lines). patching file gcc/testsuite/gfortran.dg/fmt_f_default_field_width.f90 patching file gcc/testsuite/gfortran.dg/fmt_g_default_field_width.f90 patching file gcc/testsuite/gfortran.dg/fmt_i_default_field_width.f90 patching file libgfortran/io/format.c Hunk #2 succeeded at 1121 (offset 1 line). Hunk #3 succeeded at 1136 (offset 1 line). patching file libgfortran/io/io.h Hunk #1 succeeded at 986 (offset 5 lines). patching file libgfortran/io/read.c Hunk #1 succeeded at 633 (offset 4 lines). patching file libgfortran/io/write.c Hunk #1 succeeded at 685 (offset 1 line). Hunk #2 succeeded at 719 (offset 1 line). Hunk #3 succeeded at 848 (offset 1 line). Hunk #4 succeeded at 1210 (offset 19 lines). Hunk #5 succeeded at 1231 (offset 19 lines). Hunk #6 succeeded at 1251 (offset 19 lines). Hunk #7 succeeded at 1491 (offset -17 lines). patching file libgfortran/io/write_float.def Hunk #3 succeeded at 971 (offset 2 lines). Hunk #4 succeeded at 1051 (offset 2 lines). Hunk #5 succeeded at 1062 (offset 2 lines). Hunk #6 succeeded at 1077 (offset 2 lines). Patch #30 (gcc8-rh1668903-1.patch): + echo 'Patch #30 (gcc8-rh1668903-1.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1668903-1~ --fuzz=0 patching file gcc/cif-code.def patching file gcc/common.opt Hunk #1 succeeded at 2127 (offset -54 lines). patching file gcc/doc/invoke.texi Hunk #1 succeeded at 390 (offset 1 line). Hunk #2 succeeded at 8687 (offset -605 lines). patching file gcc/flag-types.h patching file gcc/ipa-inline.c Hunk #1 succeeded at 380 (offset 1 line). patching file gcc/opts.c patching file gcc/testsuite/gcc.dg/live-patching-1.c patching file gcc/testsuite/gcc.dg/live-patching-2.c patching file gcc/testsuite/gcc.dg/live-patching-3.c Patch #31 (gcc8-rh1668903-2.patch): + echo 'Patch #31 (gcc8-rh1668903-2.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1668903-2~ --fuzz=0 patching file gcc/ipa-inline.c Hunk #1 succeeded at 380 (offset -5 lines). Hunk #2 succeeded at 422 (offset -5 lines). patching file gcc/testsuite/gcc.dg/live-patching-4.c Patch #32 (gcc8-rh1668903-3.patch): + echo 'Patch #32 (gcc8-rh1668903-3.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .rh1668903-3~ --fuzz=0 patching file gcc/doc/invoke.texi Hunk #1 succeeded at 8689 (offset -678 lines). Hunk #2 succeeded at 8717 (offset -678 lines). Hunk #3 succeeded at 8728 (offset -678 lines). + cd nvptx-tools-c28050f60193b3b95a18866a96f03334e874e78f Patch #1000 (nvptx-tools-no-ptxas.patch): + echo 'Patch #1000 (nvptx-tools-no-ptxas.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nvptx-tools-no-ptxas~ --fuzz=0 patching file configure.ac patching file include/libiberty.h patching file nvptx-as.c patching file configure Patch #1001 (nvptx-tools-build.patch): + echo 'Patch #1001 (nvptx-tools-build.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nvptx-tools-build~ --fuzz=0 patching file nvptx-as.c Patch #1002 (nvptx-tools-glibc.patch): + echo 'Patch #1002 (nvptx-tools-glibc.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nvptx-tools-glibc~ --fuzz=0 patching file configure.ac patching file configure + cd .. + echo 'Anolis 8.5.0-10.0.1' + cp -a libstdc++-v3/config/cpu/i486/atomicity.h libstdc++-v3/config/cpu/i386/atomicity.h + echo 'TM_H += $(srcdir)/config/rs6000/rs6000-modes.h' + ./contrib/gcc_update --touch Touching gcc/cstamp-h.in... Touching gcc/config.in... Touching libgomp/configure.ac... Touching libgomp/aclocal.m4... Touching libgomp/Makefile.in... Touching libgomp/testsuite/Makefile.in... Touching libgomp/configure... Touching libgomp/config.h.in... + LC_ALL=C + sed -i -e 's/\xa0/ /' gcc/doc/options.texi + sed -i -e 's/Common Driver Var(flag_report_bug)/& Init(1)/' gcc/common.opt + rm -f gcc/testsuite/go.test/test/chan/goroutines.go + echo 'Patch #10000 (0001-gcc-anolis-Rebrand-for-OpenAnolis.patch):' Patch #10000 (0001-gcc-anolis-Rebrand-for-OpenAnolis.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file zlib/contrib/minizip/configure.ac Patch #1003 (0001-Add-LoongArch-support-for-anolis-a8-gcc.patch): + echo 'Patch #1003 (0001-Add-LoongArch-support-for-anolis-a8-gcc.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file config.guess patching file config.sub patching file config/mt-loongnix-gnu patching file config/picflag.m4 patching file configure patching file configure.ac patching file gcc/common/config/loongarch/loongarch-common.c patching file gcc/config.gcc patching file gcc/config.host patching file gcc/config/host-linux.c patching file gcc/config/loongarch/constraints.md patching file gcc/config/loongarch/driver-native.c patching file gcc/config/loongarch/elf.h patching file gcc/config/loongarch/frame-header-opt.c patching file gcc/config/loongarch/generic.md patching file gcc/config/loongarch/genopt.sh patching file gcc/config/loongarch/gnu-user.h patching file gcc/config/loongarch/larchintrin.h patching file gcc/config/loongarch/lasx.md patching file gcc/config/loongarch/lasxintrin.h patching file gcc/config/loongarch/linux-common.h patching file gcc/config/loongarch/linux.h patching file gcc/config/loongarch/loongarch-builtins.c patching file gcc/config/loongarch/loongarch-c.c patching file gcc/config/loongarch/loongarch-cpus.def patching file gcc/config/loongarch/loongarch-d.c patching file gcc/config/loongarch/loongarch-ftypes.def patching file gcc/config/loongarch/loongarch-modes.def patching file gcc/config/loongarch/loongarch-opts.h patching file gcc/config/loongarch/loongarch-protos.h patching file gcc/config/loongarch/loongarch-tables.opt patching file gcc/config/loongarch/loongarch.c patching file gcc/config/loongarch/loongarch.h patching file gcc/config/loongarch/loongarch.md patching file gcc/config/loongarch/loongarch.opt patching file gcc/config/loongarch/lsx.md patching file gcc/config/loongarch/lsx2.md patching file gcc/config/loongarch/lsxintrin.h patching file gcc/config/loongarch/predicates.md patching file gcc/config/loongarch/rtems.h patching file gcc/config/loongarch/sde.opt patching file gcc/config/loongarch/sync.md patching file gcc/config/loongarch/t-linux patching file gcc/config/loongarch/t-loongarch patching file gcc/config/loongarch/x-native patching file gcc/configure.ac patching file gcc/targhooks.c patching file gcc/testsuite/g++.dg/cpp0x/constexpr-rom.C patching file gcc/testsuite/g++.old-deja/g++.abi/ptrmem.C patching file gcc/testsuite/g++.old-deja/g++.pt/ptrmem6.C patching file gcc/testsuite/gcc.dg/20020312-2.c patching file gcc/testsuite/gcc.dg/loop-8.c patching file gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-3.c patching file gcc/testsuite/gcc.target/loongarch/insn_correctness_check.c patching file gcc/testsuite/gcc.target/loongarch/lasx-builtin.c patching file gcc/testsuite/gcc.target/loongarch/loongarch.exp patching file gcc/testsuite/gcc.target/loongarch/lsx-builtin.c patching file gcc/testsuite/gcc.target/loongarch/tst-asm-const.c patching file gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c patching file gcc/testsuite/gcc.target/mips/loongson-simd.c patching file gcc/testsuite/gcc.target/mips/mips.exp patching file gcc/testsuite/go.test/go-test.exp patching file gcc/testsuite/lib/target-supports.exp patching file libgcc/config.host patching file libgcc/config/loongarch/crtfastmath.c patching file libgcc/config/loongarch/crti.S patching file libgcc/config/loongarch/crtn.S patching file libgcc/config/loongarch/gthr-loongnixsde.h patching file libgcc/config/loongarch/lib2funcs.c patching file libgcc/config/loongarch/linux-unwind.h patching file libgcc/config/loongarch/sfp-machine.h patching file libgcc/config/loongarch/t-crtstuff patching file libgcc/config/loongarch/t-elf patching file libgcc/config/loongarch/t-loongarch patching file libgcc/config/loongarch/t-loongarch64 patching file libgcc/config/loongarch/t-sdemtk patching file libgcc/config/loongarch/t-softfp-tf patching file libgcc/config/loongarch/t-vr patching file libgcc/configure.ac patching file libgomp/configure.tgt patching file libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/4.cc + echo 'Patch #1004 (0002-loongarch-fix-multilib-osdirnames-to-lib64.patch):' Patch #1004 (0002-loongarch-fix-multilib-osdirnames-to-lib64.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file gcc/config/loongarch/t-linux + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.URbUyP + umask 022 + cd /builddir/build/BUILD + cd gcc-8.5.0-20210514 + export CONFIG_SITE=NONE + CONFIG_SITE=NONE + CC=gcc + CXX=g++ ++ echo -O2 -g ++ sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g' + OPT_FLAGS='-O2 -g' ++ echo -O2 -g ++ sed -e 's/-m64//g;s/-m32//g;s/-m31//g' + OPT_FLAGS='-O2 -g' ++ echo -O2 -g ++ sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g' + OPT_FLAGS='-O2 -g' ++ echo -O2 -g ++ sed -e 's/ -pipe / /g' + OPT_FLAGS='-O2 -g' ++ echo -O2 -g ++ sed -e s/-Werror=format-security/-Wformat-security/g + OPT_FLAGS='-O2 -g' ++ sed -e 's/[[:blank:]]\+/ /g' ++ echo '-O2 -g' + OPT_FLAGS='-O2 -g' + case "$OPT_FLAGS" in + rm -rf obj-loongarch64-redhat-linux + mkdir obj-loongarch64-redhat-linux + cd obj-loongarch64-redhat-linux + enablelgo= + enablelada= + enablelobjc= + CONFIGURE_OPTS=' --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugzilla.openanolis.cn --enable-shared --enable-threads=posix --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --with-arch=loongarch64 --with-abi=lp64 --enable-tls --enable-gnu-indirect-function --disable-emultls --enable-gnu-indirect-function --with-long-double-128 --build=loongarch64-redhat-linux ' + CC=gcc + CXX=g++ + CFLAGS='-O2 -g' ++ sed 's/ -Wformat-security / -Wformat -Wformat-security /' ++ echo ' -O2 -g ' ++ sed 's/ -Wall / /g;s/ -fexceptions / /g' + CXXFLAGS=' -O2 -g ' + XCFLAGS='-O2 -g' + TCFLAGS='-O2 -g' + ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugzilla.openanolis.cn --enable-shared --enable-threads=posix --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --with-arch=loongarch64 --with-abi=lp64 --enable-tls --enable-gnu-indirect-function --disable-emultls --enable-gnu-indirect-function --with-long-double-128 --build=loongarch64-redhat-linux checking build system type... loongarch64-redhat-linux-gnu checking host system type... loongarch64-redhat-linux-gnu checking target system type... loongarch64-redhat-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/bin/sed checking for gawk... gawk checking for libatomic support... yes checking for libitm support... no checking for libsanitizer support... no checking for libvtv support... no checking for libhsail-rt support... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ accepts -static-libstdc++ -static-libgcc... no checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for objdir... .libs checking for the correct version of gmp.h... no configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify their locations. Source code for these libraries can be found at their respective hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also http://gcc.gnu.org/install/prerequisites.html for additional info. If you obtained GMP, MPFR and/or MPC from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages. error: Bad exit status from /var/tmp/rpm-tmp.URbUyP (%build) Bad exit status from /var/tmp/rpm-tmp.URbUyP (%build) RPM build errors: 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: # /usr/bin/systemd-nspawn -q -M ea3cb8fbce9f44c3acfd4aaf8c011016 -D /var/lib/mock/dist-an8.7-build-120429-45980/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.7qepk3j0:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/gcc.spec