Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bs --target loongarch64 --nodeps /builddir/build/SPECS/libhugetlbfs.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-59574-32382/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.52ezo92p:/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.52ezo92p:/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', '99bd06c3a1614ab182331cdebe67497c', '-D', '/var/lib/mock/dist-an8-loongarch64-build-59574-32382/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.52ezo92p:/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 --nocheck -bs --target loongarch64 --nodeps /builddir/build/SPECS/libhugetlbfs.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/libhugetlbfs-2.21-17.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/libhugetlbfs.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-59574-32382/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.52ezo92p:/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.52ezo92p:/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', 'e90f5625e32a459f91a3bc6c04f37c90', '-D', '/var/lib/mock/dist-an8-loongarch64-build-59574-32382/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.52ezo92p:/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 --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/libhugetlbfs.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.y39WPW + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libhugetlbfs-2.21 + /usr/bin/gzip -dc /builddir/build/SOURCES/libhugetlbfs-2.21.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libhugetlbfs-2.21 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #50 (0001-tests-Add-utility-to-check-for-a-minimum-number-of-o.patch):' Patch #50 (0001-tests-Add-utility-to-check-for-a-minimum-number-of-o.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/hugetests.h patching file tests/testutils.c Patch #51 (0002-tests-slbpacaflush-Use-online-cpus-only.patch): + echo 'Patch #51 (0002-tests-slbpacaflush-Use-online-cpus-only.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/slbpacaflush.c Patch #52 (0003-tests-alloc-instantiate-race-Use-online-cpus-only.patch): + echo 'Patch #52 (0003-tests-alloc-instantiate-race-Use-online-cpus-only.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/alloc-instantiate-race.c Patch #53 (0004-tests-task-size-overrun-Make-test-faster-on-powerpc6.patch): + echo 'Patch #53 (0004-tests-task-size-overrun-Make-test-faster-on-powerpc6.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/task-size-overrun.c Patch #54 (0005-tests-truncate-above-4GB-Skip-if-truncation-point-is.patch): + echo 'Patch #54 (0005-tests-truncate-above-4GB-Skip-if-truncation-point-is.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/truncate_above_4GB.c Patch #55 (0006-tests-map-high-truncate-2-Skip-if-truncation-point-i.patch): + echo 'Patch #55 (0006-tests-map-high-truncate-2-Skip-if-truncation-point-i.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/map_high_truncate_2.c + echo 'Patch #56 (0007-morecore-tests-Run-tests-only-for-default-huge-page-.patch):' Patch #56 (0007-morecore-tests-Run-tests-only-for-default-huge-page-.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py Patch #57 (0008-hugeutils-Make-writing-a-ulong-to-a-file-more-reliab.patch): + echo 'Patch #57 (0008-hugeutils-Make-writing-a-ulong-to-a-file-more-reliab.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file hugeutils.c Patch #58 (0009-tests-Add-utility-to-check-if-huge-pages-are-giganti.patch): + echo 'Patch #58 (0009-tests-Add-utility-to-check-if-huge-pages-are-giganti.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/hugetests.h + echo 'Patch #59 (0010-tests-counters-Skip-if-using-gigantic-huge-pages.patch):' Patch #59 (0010-tests-counters-Skip-if-using-gigantic-huge-pages.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/counters.c Patch #60 (0011-hugeutils-Add-utility-to-check-if-slices-are-support.patch): + echo 'Patch #60 (0011-hugeutils-Add-utility-to-check-if-slices-are-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file hugeutils.c patching file libhugetlbfs_privutils.h + echo 'Patch #61 (0012-tests-brk-near-huge-Fix-next-chunk-computation-for-p.patch):' Patch #61 (0012-tests-brk-near-huge-Fix-next-chunk-computation-for-p.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/brk_near_huge.c + echo 'Patch #62 (0013-elflink-Fix-program-header-address-calculation.patch):' Patch #62 (0013-elflink-Fix-program-header-address-calculation.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file elflink.c Patch #63 (0014-elflink-powerpc64-Use-slices-based-on-MMU-type.patch): + echo 'Patch #63 (0014-elflink-powerpc64-Use-slices-based-on-MMU-type.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file elflink.c + echo 'Patch #64 (0015-ld.hugetlbfs-powerpc64-Add-support-for-different-hug.patch):' Patch #64 (0015-ld.hugetlbfs-powerpc64-Add-support-for-different-hug.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file ld.hugetlbfs + echo 'Patch #65 (0016-elflink-tests-Run-tests-only-for-default-huge-page-s.patch):' Patch #65 (0016-elflink-tests-Run-tests-only-for-default-huge-page-s.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py Patch #66 (0017-tests-Update-utility-to-get-free-and-total-huge-page.patch): + echo 'Patch #66 (0017-tests-Update-utility-to-get-free-and-total-huge-page.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py + echo 'Patch #67 (0018-mmap-tests-Run-tests-with-correct-huge-page-count.patch):' Patch #67 (0018-mmap-tests-Run-tests-with-correct-huge-page-count.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py + echo 'Patch #68 (0019-Be-explicit-about-using-Python2-in-the-test-script.patch):' Patch #68 (0019-Be-explicit-about-using-Python2-in-the-test-script.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py Patch #69 (0020-Switch-test-runner-script-to-print-function.patch): + echo 'Patch #69 (0020-Switch-test-runner-script-to-print-function.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py + echo 'Patch #70 (0021-Remove-backtick-operator-from-test-runner-script.patch):' Patch #70 (0021-Remove-backtick-operator-from-test-runner-script.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py + echo 'Patch #71 (0022-tests-Avoid-old-style-except-syntax-in-the-test-runn.patch):' Patch #71 (0022-tests-Avoid-old-style-except-syntax-in-the-test-runn.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py Patch #72 (0023-tests-Avoid-explicit-type-comparison-in-runner-scrip.patch): + echo 'Patch #72 (0023-tests-Avoid-explicit-type-comparison-in-runner-scrip.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py Patch #73 (0024-tests-Explicitly-decode-subprocess-output.patch): + echo 'Patch #73 (0024-tests-Explicitly-decode-subprocess-output.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py + echo 'Patch #74 (0025-tests-Use-modern-style-division-in-runner-script.patch):' Patch #74 (0025-tests-Use-modern-style-division-in-runner-script.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py + echo 'Patch #75 (0026-tests-Switch-test-runner-to-Python3.patch):' Patch #75 (0026-tests-Switch-test-runner-to-Python3.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py Patch #76 (0027-tests-Improve-TASK_SIZE-detection-in-task-size-overr.patch): + echo 'Patch #76 (0027-tests-Improve-TASK_SIZE-detection-in-task-size-overr.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/task-size-overrun.c + echo 'Patch #77 (0028-Remove-man-page-for-cpupcstat.patch):' Patch #77 (0028-Remove-man-page-for-cpupcstat.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file man/cpupcstat.8 + echo 'Patch #78 (0029-Fix-spelling-of-khugepaged-options-in-hugeadm.patch):' Patch #78 (0029-Fix-spelling-of-khugepaged-options-in-hugeadm.patch): patching file hugeadm.c patching file man/hugeadm.8 Patch #79 (0030-Makefile-Remove-cpupcstat-from-man-page-target.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #79 (0030-Makefile-Remove-cpupcstat-from-man-page-target.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Patch #80 (0031-tests-noresv-preserve-resv-page-Fix-failure-in-case-.patch): + echo 'Patch #80 (0031-tests-noresv-preserve-resv-page-Fix-failure-in-case-.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/noresv-preserve-resv-page.c + echo 'Patch #0 (build_flags.patch):' Patch #0 (build_flags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile patching file tests/Makefile Patch #1 (0001-testutils-fix-range_is_mapped.patch): + echo 'Patch #1 (0001-testutils-fix-range_is_mapped.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/testutils.c Hunk #1 succeeded at 238 (offset 48 lines). + echo 'Patch #2 (0002-stack_grow_into_huge-don-t-clobber-existing-mappings.patch):' Patch #2 (0002-stack_grow_into_huge-don-t-clobber-existing-mappings.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/stack_grow_into_huge.c + echo 'Patch #3 (tests_shm-perms_adjust_max_segment_size_for_bigger_hugepages.patch):' Patch #3 (tests_shm-perms_adjust_max_segment_size_for_bigger_hugepages.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py Hunk #1 succeeded at 591 (offset 34 lines). patching file tests/shm-perms.c Patch #4 (elflink-return-type-fix.patch): + echo 'Patch #4 (elflink-return-type-fix.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file elflink.c + echo 'Patch #5 (tests-makefile-fix.patch):' Patch #5 (tests-makefile-fix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/Makefile + echo 'Patch #6 (tests-run_tests-fix-hugeadm-path.patch):' Patch #6 (tests-run_tests-fix-hugeadm-path.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/run_tests.py + echo 'Patch #7 (huge_page_setup_helper-python3-convert.patch):' Patch #7 (huge_page_setup_helper-python3-convert.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file huge_page_setup_helper.py + echo 'Patch #8 (tests-fix-covscan-SHELLCHECK_WARNING-complaints.patch):' Patch #8 (tests-fix-covscan-SHELLCHECK_WARNING-complaints.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/counters.sh patching file tests/fadvise_reserve.sh patching file tests/fallocate_align.sh patching file tests/fallocate_basic.sh patching file tests/fallocate_stress.sh patching file tests/madvise_reserve.sh patching file tests/mremap-expand-slice-collision.sh patching file tests/mremap-fixed-huge-near-normal.sh patching file tests/mremap-fixed-normal-near-huge.sh patching file tests/quota.sh patching file tests/readahead_reserve.sh patching file tests/wrapper-utils.sh + echo 'Patch #9 (tests-include-missing-LDFLAGS-to-make-targets.patch):' Patch #9 (tests-include-missing-LDFLAGS-to-make-targets.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/Makefile Patch #10 (0001-wait-child-with-os-wait.patch): + echo 'Patch #10 (0001-wait-child-with-os-wait.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file huge_page_setup_helper.py + pathfix.py -i /usr/libexec/platform-python -pn huge_page_setup_helper.py tests/run_tests.py huge_page_setup_helper.py: updating tests/run_tests.py: updating + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HPzpF7 + umask 022 + cd /builddir/build/BUILD + cd libhugetlbfs-2.21 + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + make all BUILDTYPE=NATIVEONLY V=1 Makefile:111: *** "Unrecognized architecture (loongarch64)". Stop. RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.HPzpF7 (%build) Bad exit status from /var/tmp/rpm-tmp.HPzpF7 (%build) 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 e90f5625e32a459f91a3bc6c04f37c90 -D /var/lib/mock/dist-an8-loongarch64-build-59574-32382/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.52ezo92p:/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 --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/libhugetlbfs.spec