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/libhugetlbfs.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-38435-18314/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -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'} 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 -bb --target loongarch64 --nodeps /builddir/build/SPECS/libhugetlbfs.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-38435-18314/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -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'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yHVDSO + 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 + echo 'Patch #51 (0002-tests-slbpacaflush-Use-online-cpus-only.patch):' 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 + echo 'Patch #53 (0004-tests-task-size-overrun-Make-test-faster-on-powerpc6.patch):' 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 + echo 'Patch #54 (0005-tests-truncate-above-4GB-Skip-if-truncation-point-is.patch):' 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 + echo 'Patch #55 (0006-tests-map-high-truncate-2-Skip-if-truncation-point-i.patch):' 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 + echo 'Patch #57 (0008-hugeutils-Make-writing-a-ulong-to-a-file-more-reliab.patch):' 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 + echo 'Patch #58 (0009-tests-Add-utility-to-check-if-huge-pages-are-giganti.patch):' 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 Patch #59 (0010-tests-counters-Skip-if-using-gigantic-huge-pages.patch): + echo '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 + echo 'Patch #60 (0011-hugeutils-Add-utility-to-check-if-slices-are-support.patch):' 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 + echo 'Patch #63 (0014-elflink-powerpc64-Use-slices-based-on-MMU-type.patch):' 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 Patch #65 (0016-elflink-tests-Run-tests-only-for-default-huge-page-s.patch): + echo '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 Patch #67 (0018-mmap-tests-Run-tests-with-correct-huge-page-count.patch): + echo '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 + echo 'Patch #69 (0020-Switch-test-runner-script-to-print-function.patch):' 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 Patch #70 (0021-Remove-backtick-operator-from-test-runner-script.patch): + echo '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 + echo 'Patch #72 (0023-tests-Avoid-explicit-type-comparison-in-runner-scrip.patch):' 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 Patch #75 (0026-tests-Switch-test-runner-to-Python3.patch): + echo '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 Patch #78 (0029-Fix-spelling-of-khugepaged-options-in-hugeadm.patch): + echo 'Patch #78 (0029-Fix-spelling-of-khugepaged-options-in-hugeadm.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file hugeadm.c patching file man/hugeadm.8 Patch #79 (0030-Makefile-Remove-cpupcstat-from-man-page-target.patch): + 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 Patch #0 (build_flags.patch): + echo '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 Patch #3 (tests_shm-perms_adjust_max_segment_size_for_bigger_hugepages.patch): + echo '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 Patch #5 (tests-makefile-fix.patch): + echo '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 Patch #9 (tests-include-missing-LDFLAGS-to-make-targets.patch): + echo '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.yZYVZE + 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.yZYVZE (%build) Bad exit status from /var/tmp/rpm-tmp.yZYVZE (%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: # bash --login -c /usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/libhugetlbfs.spec