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/cross-binutils.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-274585-25913/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=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/cross-binutils.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: %patchN is deprecated (21 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/cross-binutils-2.40-1.ocs23.1.src.rpm RPM build warnings: %patchN is deprecated (21 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/cross-binutils.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-274585-25913/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=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/cross-binutils.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: %patchN is deprecated (21 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zDeMeQ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf binutils-2.40 + /usr/bin/mkdir -p binutils-2.40 + cd binutils-2.40 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/binutils-2.40.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd binutils-2.40 Patch #1 (binutils-libtool-lib64.patch): + echo 'Patch #1 (binutils-libtool-lib64.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/configure Hunk #1 succeeded at 10466 (offset -296 lines). patching file binutils/configure Hunk #1 succeeded at 10177 (offset -383 lines). patching file gas/configure Hunk #1 succeeded at 10086 (offset -461 lines). patching file gprof/configure Hunk #1 succeeded at 9964 (offset -521 lines). patching file ld/configure Hunk #1 succeeded at 10985 (offset 19 lines). patching file opcodes/configure Hunk #1 succeeded at 10401 (offset -95 lines). Patch #2 (binutils-version.patch): + echo 'Patch #2 (binutils-version.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/Makefile.am Hunk #1 succeeded at 988 (offset 11 lines). Hunk #2 succeeded at 1000 (offset 11 lines). patching file bfd/Makefile.in Hunk #1 succeeded at 2470 (offset 376 lines). Hunk #2 succeeded at 2482 (offset 376 lines). Patch #3 (binutils-export-demangle.h.patch): + echo 'Patch #3 (binutils-export-demangle.h.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/Makefile.am Hunk #1 succeeded at 38 (offset 5 lines). patching file bfd/Makefile.in Hunk #1 succeeded at 292 (offset 43 lines). Hunk #2 succeeded at 517 (offset 49 lines). Patch #4 (binutils-no-config-h-check.patch): + echo 'Patch #4 (binutils-no-config-h-check.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/bfd-in.h Hunk #1 succeeded at 23 (offset -2 lines). patching file bfd/bfd-in2.h Hunk #1 succeeded at 30 (offset -2 lines). Patch #5 (binutils-filename-in-readelf-messages.patch): + echo 'Patch #5 (binutils-filename-in-readelf-messages.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file binutils/readelf.c Patch #6 (binutils-revert-PLT-elision.patch): + echo 'Patch #6 (binutils-revert-PLT-elision.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file ld/testsuite/ld-i386/pltgot-1.d patching file ld/testsuite/ld-i386/pltgot-2.d patching file ld/testsuite/ld-i386/pr19636-2d.d Hunk #1 succeeded at 8 (offset -1 lines). patching file ld/testsuite/ld-i386/pr19636-2e.d Hunk #1 succeeded at 8 (offset -1 lines). patching file ld/testsuite/ld-x86-64/pltgot-1.d patching file ld/testsuite/ld-x86-64/pltgot-2.d patching file ld/testsuite/ld-x86-64/plt-main.rd patching file ld/testsuite/ld-x86-64/pr20830a.d patching file ld/testsuite/ld-x86-64/pr20830a-now.d patching file ld/testsuite/ld-x86-64/pr20830b.d patching file ld/testsuite/ld-x86-64/pr20830b-now.d patching file ld/testsuite/ld-x86-64/tlspic2.rd patching file bfd/elfxx-x86.c Hunk #1 succeeded at 105 (offset -2 lines). Hunk #2 succeeded at 123 (offset -2 lines). patching file ld/testsuite/ld-i386/pr20830.d Patch #7 (binutils-readelf-other-sym-info.patch): + echo 'Patch #7 (binutils-readelf-other-sym-info.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file binutils/readelf.c Hunk #1 succeeded at 13247 (offset 1178 lines). Hunk #2 succeeded at 13307 (offset 1193 lines). Patch #8 (binutils-2.27-aarch64-ifunc.patch): + echo 'Patch #8 (binutils-2.27-aarch64-ifunc.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/elfnn-aarch64.c Hunk #1 succeeded at 5487 (offset 540 lines). Patch #9 (binutils-do-not-link-with-static-libstdc++.patch): + echo 'Patch #9 (binutils-do-not-link-with-static-libstdc++.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure patching file configure.ac Patch #10 (binutils-special-sections-in-groups.patch): + echo 'Patch #10 (binutils-special-sections-in-groups.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/elf.c Hunk #1 succeeded at 825 (offset -5 lines). Hunk #2 succeeded at 939 (offset -3 lines). Patch #11 (binutils-fix-testsuite-failures.patch): + echo 'Patch #11 (binutils-fix-testsuite-failures.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file ld/testsuite/ld-plugin/plugin-10.d patching file ld/testsuite/ld-plugin/plugin-13.d patching file ld/testsuite/ld-plugin/plugin-14.d patching file ld/testsuite/ld-plugin/plugin-15.d patching file ld/testsuite/ld-plugin/plugin-16.d patching file ld/testsuite/ld-plugin/plugin-17.d patching file ld/testsuite/ld-plugin/plugin-20.d patching file ld/testsuite/ld-plugin/plugin-21.d patching file ld/testsuite/ld-plugin/plugin-22.d patching file ld/testsuite/ld-plugin/plugin-23.d patching file ld/testsuite/ld-plugin/plugin-24.d patching file ld/testsuite/ld-plugin/plugin-25.d patching file ld/testsuite/ld-plugin/plugin-28.d patching file ld/testsuite/ld-plugin/plugin-29.d patching file ld/testsuite/ld-plugin/plugin-30.d patching file ld/testsuite/ld-plugin/plugin-6.d patching file ld/testsuite/ld-plugin/plugin-7.d patching file ld/testsuite/ld-plugin/plugin-8.d patching file ld/testsuite/ld-plugin/plugin-9.d patching file ld/testsuite/ld-plugin/pr20070.d patching file ld/testsuite/ld-srec/srec.exp patching file ld/testsuite/ld-plugin/plugin-10.d patching file ld/testsuite/ld-plugin/plugin-11.d patching file ld/testsuite/ld-plugin/plugin-18.d patching file ld/testsuite/ld-plugin/plugin-19.d patching file ld/testsuite/ld-plugin/plugin-28.d patching file ld/testsuite/ld-plugin/plugin-8.d patching file ld/testsuite/ld-elfvers/vers24.rd patching file ld/testsuite/ld-plugin/plugin.exp Hunk #1 succeeded at 117 (offset -1 lines). Patch #12 (binutils-gold-mismatched-section-flags.patch): + echo 'Patch #12 (binutils-gold-mismatched-section-flags.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gold/layout.cc Hunk #1 succeeded at 872 (offset 4 lines). Hunk #2 succeeded at 883 (offset 4 lines). Patch #13 (binutils-gold-warn-unsupported.patch): + echo 'Patch #13 (binutils-gold-warn-unsupported.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gold/configure Hunk #1 succeeded at 5255 (offset 75 lines). patching file gold/configure.ac Hunk #1 succeeded at 182 (offset 1 line). patching file ld/configure.tgt Hunk #1 succeeded at 263 (offset 43 lines). Hunk #2 succeeded at 1088 (offset 62 lines). patching file bfd/config.bfd Hunk #1 succeeded at 501 (offset 28 lines). Hunk #2 succeeded at 1494 (offset 67 lines). Patch #14 (binutils-gold-i386-gnu-property-notes.patch): + echo 'Patch #14 (binutils-gold-i386-gnu-property-notes.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gold/i386.cc Patch #15 (binutils-autoconf-version.patch): + echo 'Patch #15 (binutils-autoconf-version.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file config/override.m4 Patch #16 (binutils-libtool-no-rpath.patch): + echo 'Patch #16 (binutils-libtool-no-rpath.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file ltmain.sh Patch #18 (binutils-objcopy-note-merge-speedup.patch): + echo 'Patch #18 (binutils-objcopy-note-merge-speedup.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file binutils/objcopy.c Hunk #1 succeeded at 2403 (offset 20 lines). Hunk #2 succeeded at 2426 (offset 20 lines). Hunk #3 succeeded at 2490 (offset 20 lines). + echo 'Patch #19 (binutils-testsuite-fixes.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 Patch #19 (binutils-testsuite-fixes.patch): patching file binutils/testsuite/binutils-all/pr26160.r patching file ld/testsuite/ld-plugin/lto.exp patching file ld/testsuite/ld-plugin/plugin-10.d patching file ld/testsuite/ld-plugin/plugin-11.d patching file ld/testsuite/ld-plugin/plugin-16.d patching file ld/testsuite/ld-plugin/plugin-17.d patching file ld/testsuite/ld-plugin/plugin-18.d patching file ld/testsuite/ld-plugin/plugin-8.d patching file ld/testsuite/ld-plugin/plugin-9.d patching file ld/testsuite/ld-x86-64/x86-64.exp patching file ld/testsuite/ld-plugin/lto.exp patching file ld/testsuite/ld-plugin/plugin-19.d patching file ld/testsuite/ld-aarch64/bti-plt-5.d patching file ld/testsuite/ld-aarch64/erratum843419-far-full.d patching file ld/testsuite/ld-aarch64/farcall-b-plt.d patching file ld/testsuite/ld-aarch64/farcall-bl-plt.d patching file ld/testsuite/ld-aarch64/ifunc-1.d patching file ld/testsuite/ld-aarch64/ifunc-21.d patching file ld/testsuite/ld-aarch64/ifunc-22.d patching file ld/testsuite/ld-aarch64/ifunc-7c.d patching file ld/testsuite/ld-aarch64/variant_pcs-now.d patching file ld/testsuite/ld-aarch64/variant_pcs-r.d patching file ld/testsuite/ld-aarch64/variant_pcs-shared.d patching file ld/testsuite/ld-elf/shared.exp patching file ld/testsuite/ld-aarch64/ifunc-1-local.d patching file ld/testsuite/ld-aarch64/ifunc-2-local.d patching file ld/testsuite/ld-aarch64/ifunc-2.d patching file ld/testsuite/ld-aarch64/ifunc-3a.d patching file ld/testsuite/ld-plugin/plugin.exp patching file ld/testsuite/ld-elf/binutils.exp patching file ld/testsuite/ld-elf/linux-x86.exp patching file ld/testsuite/ld-elf/shared.exp patching file ld/testsuite/ld-i386/i386.exp patching file ld/testsuite/ld-ifunc/ifunc.exp patching file ld/testsuite/ld-powerpc/powerpc.exp patching file ld/testsuite/ld-s390/s390.exp patching file ld/testsuite/ld-scripts/crossref.exp patching file ld/testsuite/ld-shared/shared.exp patching file ld/testsuite/ld-vsb/vsb.exp patching file gas/testsuite/gas/riscv/variant_cc-set.d patching file gas/testsuite/gas/riscv/variant_cc.d patching file ld/testsuite/ld-riscv-elf/attr-phdr.d patching file ld/testsuite/ld-riscv-elf/pcgp-relax-01.d patching file ld/testsuite/ld-riscv-elf/pcgp-relax-02.d patching file ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d patching file ld/testsuite/ld-riscv-elf/variant_cc-now.d patching file ld/testsuite/ld-riscv-elf/variant_cc-r.d patching file ld/testsuite/ld-riscv-elf/variant_cc-shared.d patching file ld/testsuite/ld-elf/dwarf.exp patching file ld/testsuite/ld-elf/tls.exp Patch #20 (binutils-reloc-symtab.patch): + echo 'Patch #20 (binutils-reloc-symtab.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/elf.c patching file binutils/objcopy.c Patch #21 (binutils-CVE-2023-1972.patch): + echo 'Patch #21 (binutils-CVE-2023-1972.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bfd/elf.c Patch #22 (binutils-gold-empty-dwp.patch): + echo 'Patch #22 (binutils-gold-empty-dwp.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gold/dwp.cc + sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf32-ppc.c bfd/elf64-ppc.c + sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elfnn-aarch64.c bfd/elfxx-aarch64.c + sed -i -e '/common_pagesize/s/4 /64 /' gold/powerpc.cc + sed -i -e /pagesize/s/0x1000,/0x10000,/ gold/aarch64.cc + perl -pi -e 's/i\[3-7\]86/i[34567]86/g' bfd/config.bfd bfd/config.in bfd/configure bfd/configure.ac bfd/configure.com bfd/configure.host binutils/config.in binutils/configure binutils/configure.ac binutils/configure.com binutils/configure.tgt etc/configure gas/config gas/config.in gas/configure gas/configure.ac gas/configure.com gas/configure.tgt gold/config.in gold/configure gold/configure.ac gold/configure.tgt gprof/config.texi gprof/configure gprof/configure.ac gprofng/config gprofng/configure gprofng/configure.ac intl/config.h.in intl/config.intl.in intl/configure intl/configure.ac ld/config.in ld/configdoc.texi ld/configure ld/configure.ac ld/configure.host ld/configure.tgt libctf/config.h.in libctf/configure libctf/configure.ac libiberty/config libiberty/config.h-vms libiberty/config.in libiberty/configure libiberty/configure.ac libiberty/configure.com libsframe/config.h.in libsframe/configure libsframe/configure.ac opcodes/config.in opcodes/configure opcodes/configure.ac opcodes/configure.com zlib/configure zlib/configure.ac Can't do inplace edit: gas/config is not a regular file, <> line 43244. Can't do inplace edit: gprofng/config is not a regular file, <> line 90760. Can't do inplace edit: libiberty/config is not a regular file, <> line 159911. + sed -i -e 's/%{release}/1.ocs23.1/g' bfd/Makefile.am bfd/Makefile.in + sed -i -e '/^libopcodes_la_\(DEPENDENCIES\|LIBADD\)/s,$, ../bfd/libbfd.la,' opcodes/Makefile.am opcodes/Makefile.in + gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -v --help + grep -q -- -Bsymbolic-functions + sed -i -e 's/^ PACKAGE=/ PACKAGE=cross-/' bfd/configure binutils/configure etc/configure gas/configure gold/configure gprof/configure gprofng/configure intl/configure ld/configure libctf/configure libiberty/configure libsframe/configure opcodes/configure zlib/configure + for tool in binutils gas ld + sed -i -e '2aDEJATOOL = binutils' binutils/Makefile.am + sed -i -e 's/^DEJATOOL = .*/DEJATOOL = binutils/' binutils/Makefile.in + for tool in binutils gas ld + sed -i -e '2aDEJATOOL = gas' gas/Makefile.am + sed -i -e 's/^DEJATOOL = .*/DEJATOOL = gas/' gas/Makefile.in + for tool in binutils gas ld + sed -i -e '2aDEJATOOL = ld' ld/Makefile.am + sed -i -e 's/^DEJATOOL = .*/DEJATOOL = ld/' ld/Makefile.in + touch bfd/configure binutils/configure etc/configure gas/configure gold/configure gprof/configure gprofng/configure intl/configure ld/configure libctf/configure libiberty/configure libsframe/configure opcodes/configure zlib/configure + cd .. + prep_target aarch64-linux-gnu 1 + target=aarch64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo aarch64-linux-gnu + prep_target alpha-linux-gnu 1 + target=alpha-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo alpha-linux-gnu + prep_target arc-linux-gnu 1 + target=arc-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo arc-linux-gnu + prep_target arm-linux-gnu 1 + target=arm-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo arm-linux-gnu + prep_target avr32-linux-gnu 1 + target=avr32-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo avr32-linux-gnu + prep_target bfin-linux-gnu 1 + target=bfin-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo bfin-linux-gnu + prep_target c6x-linux-gnu 1 + target=c6x-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo c6x-linux-gnu + prep_target cris-linux-gnu 1 + target=cris-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo cris-linux-gnu + prep_target frv-linux-gnu 1 + target=frv-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo frv-linux-gnu + prep_target h8300-linux-gnu 1 + target=h8300-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo h8300-linux-gnu + prep_target hexagon-linux-gnu 0 + target=hexagon-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target hppa-linux-gnu 1 + target=hppa-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo hppa-linux-gnu + prep_target hppa64-linux-gnu 1 + target=hppa64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo hppa64-linux-gnu + prep_target i386-linux-gnu 0 + target=i386-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target ia64-linux-gnu 1 + target=ia64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo ia64-linux-gnu + prep_target loongarch64-linux-gnu 1 + target=loongarch64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo loongarch64-linux-gnu + prep_target m32r-linux-gnu 1 + target=m32r-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo m32r-linux-gnu + prep_target m68k-linux-gnu 1 + target=m68k-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo m68k-linux-gnu + prep_target metag-linux-gnu 1 + target=metag-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo metag-linux-gnu + prep_target microblaze-linux-gnu 1 + target=microblaze-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo microblaze-linux-gnu + prep_target mips-linux-gnu 0 + target=mips-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target mips64-linux-gnu 1 + target=mips64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo mips64-linux-gnu + prep_target mn10300-linux-gnu 1 + target=mn10300-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo mn10300-linux-gnu + prep_target nios2-linux-gnu 1 + target=nios2-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo nios2-linux-gnu + prep_target openrisc-linux-gnu 1 + target=openrisc-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo openrisc-linux-gnu + prep_target powerpc-linux-gnu 0 + target=powerpc-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target powerpc64-linux-gnu 1 + target=powerpc64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo powerpc64-linux-gnu + prep_target powerpc64le-linux-gnu 1 + target=powerpc64le-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo powerpc64le-linux-gnu + prep_target riscv64-linux-gnu 1 + target=riscv64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo riscv64-linux-gnu + prep_target s390-linux-gnu 0 + target=s390-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target s390x-linux-gnu 1 + target=s390x-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo s390x-linux-gnu + prep_target score-linux-gnu 1 + target=score-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo score-linux-gnu + prep_target sh-linux-gnu 1 + target=sh-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo sh-linux-gnu + prep_target sh4-linux-gnu 0 + target=sh4-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target sparc-linux-gnu 0 + target=sparc-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target sparc64-linux-gnu 1 + target=sparc64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo sparc64-linux-gnu + prep_target tile-linux-gnu 1 + target=tile-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo tile-linux-gnu + prep_target unicore32-linux-gnu 0 + target=unicore32-linux-gnu + cond=0 + '[' 0 '!=' 0 ']' + prep_target x86_64-linux-gnu 1 + target=x86_64-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo x86_64-linux-gnu + prep_target xtensa-linux-gnu 1 + target=xtensa-linux-gnu + cond=1 + '[' 1 '!=' 0 ']' + echo xtensa-linux-gnu + n=0 ++ cat target.list + for target in `cat target.list` + n=1 + break + '[' 1 = 0 ']' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.75rzn9 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd binutils-2.40 ++ cat target.list + for target in `cat target.list` + config_target aarch64-linux-gnu aarch64-linux-gnu: target is aarch64-linux-gnu + arch=aarch64-linux-gnu + prefix=aarch64-linux-gnu- + build_dir=aarch64 + case $arch in + target=aarch64-linux-gnu + echo aarch64-linux-gnu: target is aarch64-linux-gnu + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-unused-const-variable' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-unused-const-variable' + CARGS= + case $target in + CARGS=' --enable-64-bit-bfd' + case $target in + case $target in + case $target in + case $target in + case $target in + CARGS=' --enable-64-bit-bfd --enable-targets=x86_64-pep' + CARGS=' --enable-64-bit-bfd --enable-targets=x86_64-pep --enable-relro=yes' + mkdir aarch64 + cd aarch64 LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 + echo LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 ' + ../binutils-2.40/configure --disable-dependency-tracking --disable-silent-rules --enable-checking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-OpenCloudOS-linux-gnu --host=x86_64-OpenCloudOS-linux-gnu --target=aarch64-linux-gnu --program-prefix=aarch64-linux-gnu- --disable-shared --disable-install_libbfd --with-sysroot=/usr/aarch64-linux-gnu/sys-root --enable-deterministic-archives=no --enable-compressed-debug-sections=none --enable-generate-build-notes=no --enable-lto --enable-64-bit-bfd --enable-targets=x86_64-pep --enable-relro=yes --enable-plugins cd .. configure: WARNING: you should use --build, --host, --target configure: WARNING: you should use --build, --host, --target checking build system type... x86_64-OpenCloudOS-linux-gnu checking host system type... x86_64-OpenCloudOS-linux-gnu checking target system type... aarch64-unknown-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 x86_64-OpenCloudOS-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 for gcc option to accept ISO C99... none needed checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for x86_64-OpenCloudOS-linux-gnu-gnatbind... no checking for gnatbind... no checking for x86_64-OpenCloudOS-linux-gnu-gnatmake... no checking for gnatmake... no checking whether compiler driver understands Ada and is recent enough... no checking for x86_64-OpenCloudOS-linux-gnu-gdc... no checking for gdc... no checking whether the D compiler works... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for objdir... .libs checking for isl 0.15 or later... no required isl version is 0.15 or later checking for default BUILD_CONFIG... checking for --enable-vtable-verify... no checking for bison... bison -y checking for bison... bison checking for gm4... no checking for gnum4... no checking for m4... m4 checking for flex... flex checking for flex... flex checking for makeinfo... makeinfo checking for expect... no checking for runtest... no checking for x86_64-OpenCloudOS-linux-gnu-ar... no checking for ar... ar checking for x86_64-OpenCloudOS-linux-gnu-as... no checking for as... as checking for x86_64-OpenCloudOS-linux-gnu-dlltool... no checking for dlltool... no checking for x86_64-OpenCloudOS-linux-gnu-dsymutil... no checking for dsymutil... no checking for x86_64-OpenCloudOS-linux-gnu-ld... no checking for ld... ld checking for x86_64-OpenCloudOS-linux-gnu-lipo... no checking for lipo... no checking for x86_64-OpenCloudOS-linux-gnu-nm... no checking for nm... nm checking for x86_64-OpenCloudOS-linux-gnu-ranlib... no checking for ranlib... ranlib checking for x86_64-OpenCloudOS-linux-gnu-strip... no checking for strip... strip checking for x86_64-OpenCloudOS-linux-gnu-windres... no checking for windres... no checking for x86_64-OpenCloudOS-linux-gnu-windmc... no checking for windmc... no checking for x86_64-OpenCloudOS-linux-gnu-objcopy... no checking for objcopy... objcopy checking for x86_64-OpenCloudOS-linux-gnu-objdump... no checking for objdump... objdump checking for x86_64-OpenCloudOS-linux-gnu-otool... no checking for otool... no checking for x86_64-OpenCloudOS-linux-gnu-readelf... no checking for readelf... readelf checking for -plugin option... checking for x86_64-OpenCloudOS-linux-gnu-ar... (cached) ar --plugin /usr/libexec/gcc/x86_64-OpenCloudOS-linux/12/liblto_plugin.so checking for aarch64-linux-gnu-cc... no checking for aarch64-linux-gnu-gcc... no checking for aarch64-linux-gnu-c++... no checking for aarch64-linux-gnu-g++... no checking for aarch64-linux-gnu-cxx... no checking for aarch64-linux-gnu-gxx... no checking for aarch64-linux-gnu-gcc... no checking for aarch64-linux-gnu-gfortran... no checking for aarch64-linux-gnu-gccgo... no checking for aarch64-linux-gnu-gdc... no checking for aarch64-linux-gnu-ar... no checking for aarch64-linux-gnu-as... no checking for aarch64-linux-gnu-dlltool... no checking for aarch64-linux-gnu-dsymutil... no checking for aarch64-linux-gnu-ld... no checking for aarch64-linux-gnu-lipo... no checking for aarch64-linux-gnu-nm... no checking for aarch64-linux-gnu-objcopy... no checking for aarch64-linux-gnu-objdump... no checking for aarch64-linux-gnu-otool... no checking for aarch64-linux-gnu-ranlib... no checking for aarch64-linux-gnu-readelf... no checking for aarch64-linux-gnu-strip... no checking for aarch64-linux-gnu-windres... no checking for aarch64-linux-gnu-windmc... no checking where to find the target ar... just compiled checking where to find the target as... just compiled checking where to find the target cc... pre-installed checking where to find the target c++... pre-installed checking where to find the target c++ for libstdc++... pre-installed checking where to find the target dlltool... just compiled checking where to find the target dsymutil... pre-installed checking where to find the target gcc... pre-installed checking where to find the target gfortran... pre-installed checking where to find the target gccgo... pre-installed checking where to find the target gdc... pre-installed checking where to find the target ld... just compiled checking where to find the target lipo... pre-installed checking where to find the target nm... just compiled checking where to find the target objcopy... just compiled checking where to find the target objdump... just compiled checking where to find the target otool... pre-installed checking where to find the target ranlib... just compiled checking where to find the target readelf... just compiled checking where to find the target strip... just compiled checking where to find the target windres... just compiled checking where to find the target windmc... just compiled checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile + for target in `cat target.list` + config_target alpha-linux-gnu + arch=alpha-linux-gnu + prefix=alpha-linux-gnu- alpha-linux-gnu: target is alpha-linux-gnu + build_dir=alpha + case $arch in + target=alpha-linux-gnu + echo alpha-linux-gnu: target is alpha-linux-gnu + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-unused-const-variable' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-unused-const-variable' + CARGS= + case $target in + case $target in + case $target in + case $target in + case $target in + case $target in + CARGS=' --enable-relro=yes' + mkdir alpha + cd alpha LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 + echo LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 ' + ../binutils-2.40/configure --disable-dependency-tracking --disable-silent-rules --enable-checking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-OpenCloudOS-linux-gnu --host=x86_64-OpenCloudOS-linux-gnu --target=alpha-linux-gnu --program-prefix=alpha-linux-gnu- --disable-shared --disable-install_libbfd --with-sysroot=/usr/alpha-linux-gnu/sys-root --enable-deterministic-archives=no --enable-compressed-debug-sections=none --enable-generate-build-notes=no --enable-lto --enable-relro=yes --enable-plugins cd .. /var/tmp/rpm-tmp.75rzn9: line 108: ../binutils-2.40/configure: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.75rzn9 (%build) %patchN is deprecated (21 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.75rzn9 (%build) RPM build warnings: 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/cross-binutils.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/cross-binutils.spec