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/pam.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-38591-18473/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/pam.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/pam-1.3.1-14.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/pam.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-38591-18473/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/pam.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.u9NOaN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Linux-PAM-1.3.1 + /usr/bin/xz -dc /builddir/build/SOURCES/Linux-PAM-1.3.1.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Linux-PAM-1.3.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/pam-redhat-0.99.11.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + perl -pi -e 's/ppc64-\*/ppc64-\* \| ppc64p7-\*/' build-aux/config.sub + perl -pi -e 's/\/lib \/usr\/lib/\/lib \/usr\/lib \/lib64 \/usr\/lib64/' m4/libtool.m4 + mv pam-redhat-0.99.11/CHANGELOG.pam-redhat pam-redhat-0.99.11/COPYING.pam-redhat pam-redhat-0.99.11/README.pam-redhat pam-redhat-0.99.11/pam_chroot pam-redhat-0.99.11/pam_console pam-redhat-0.99.11/pam_postgresok modules + cp /builddir/build/SOURCES/gpl-2.0.txt . + echo 'Patch #1 (pam-1.2.0-redhat-modules.patch):' Patch #1 (pam-1.2.0-redhat-modules.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .redhat-modules --fuzz=0 patching file configure.ac Hunk #1 succeeded at 611 (offset -5 lines). patching file modules/Makefile.am Patch #4 (pam-1.1.0-console-nochmod.patch): + echo 'Patch #4 (pam-1.1.0-console-nochmod.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nochmod --fuzz=0 patching file modules/pam_console/console.handlers patching file modules/pam_console/Makefile.am Patch #5 (pam-1.1.0-notally.patch): + echo 'Patch #5 (pam-1.1.0-notally.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .notally --fuzz=0 patching file modules/Makefile.am + echo 'Patch #7 (pam-1.2.1-faillock.patch):' Patch #7 (pam-1.2.1-faillock.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .faillock --fuzz=0 patching file configure.ac Hunk #1 succeeded at 616 (offset -5 lines). patching file doc/sag/pam_faillock.xml patching file modules/Makefile.am patching file modules/pam_faillock/faillock.c patching file modules/pam_faillock/faillock.h patching file modules/pam_faillock/faillock.8.xml patching file modules/pam_faillock/main.c patching file modules/pam_faillock/Makefile.am patching file modules/pam_faillock/pam_faillock.c patching file modules/pam_faillock/pam_faillock.8.xml patching file modules/pam_faillock/README.xml patching file modules/pam_faillock/tst-pam_faillock Patch #8 (pam-1.2.1-faillock-admin-group.patch): + echo 'Patch #8 (pam-1.2.1-faillock-admin-group.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .admin-group --fuzz=0 patching file modules/pam_faillock/pam_faillock.c patching file modules/pam_faillock/pam_faillock.8.xml Patch #9 (pam-1.3.1-noflex.patch): + echo 'Patch #9 (pam-1.3.1-noflex.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .noflex --fuzz=0 patching file doc/Makefile.am patching file Makefile.am + echo 'Patch #10 (pam-1.1.3-nouserenv.patch):' Patch #10 (pam-1.1.3-nouserenv.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nouserenv --fuzz=0 patching file modules/pam_env/pam_env.c patching file modules/pam_env/pam_env.8.xml Hunk #1 succeeded at 158 (offset 11 lines). Patch #13 (pam-1.1.6-limits-user.patch): + echo 'Patch #13 (pam-1.1.6-limits-user.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .limits --fuzz=0 patching file modules/pam_limits/limits.conf + echo 'Patch #15 (pam-1.1.8-full-relro.patch):' Patch #15 (pam-1.1.8-full-relro.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .relro --fuzz=0 patching file modules/pam_console/Makefile.am patching file modules/pam_filter/upperLOWER/Makefile.am patching file modules/pam_mkhomedir/Makefile.am patching file modules/pam_tally2/Makefile.am patching file modules/pam_timestamp/Makefile.am patching file modules/pam_unix/Makefile.am Hunk #1 succeeded at 51 (offset -4 lines). Patch #20 (pam-1.2.0-unix-no-fallback.patch): + echo 'Patch #20 (pam-1.2.0-unix-no-fallback.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .no-fallback --fuzz=0 patching file modules/pam_unix/pam_unix.8.xml Hunk #1 succeeded at 293 (offset 9 lines). Hunk #2 succeeded at 307 (offset 9 lines). Hunk #3 succeeded at 321 (offset 9 lines). patching file modules/pam_unix/passverify.c Hunk #1 succeeded at 434 (offset -3 lines). Hunk #2 succeeded at 446 (offset -3 lines). Patch #28 (pam-1.1.1-console-errmsg.patch): + echo 'Patch #28 (pam-1.1.1-console-errmsg.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .errmsg --fuzz=0 patching file modules/pam_console/pam_console_apply.c + echo 'Patch #29 (pam-1.3.0-pwhistory-helper.patch):' Patch #29 (pam-1.3.0-pwhistory-helper.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pwhhelper --fuzz=0 patching file modules/pam_pwhistory/Makefile.am patching file modules/pam_pwhistory/opasswd.c patching file modules/pam_pwhistory/opasswd.h patching file modules/pam_pwhistory/pam_pwhistory.c patching file modules/pam_pwhistory/pwhistory_helper.c patching file modules/pam_pwhistory/pwhistory_helper.8.xml + echo 'Patch #31 (pam-1.1.8-audit-user-mgmt.patch):' Patch #31 (pam-1.1.8-audit-user-mgmt.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .audit-user-mgmt --fuzz=0 patching file modules/pam_tally2/pam_tally2.c Hunk #1 succeeded at 986 (offset -11 lines). Hunk #2 succeeded at 1029 (offset -11 lines). Patch #32 (pam-1.2.1-console-devname.patch): + echo 'Patch #32 (pam-1.2.1-console-devname.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .devname --fuzz=0 patching file modules/pam_console/console.handlers Patch #33 (pam-1.3.0-unix-nomsg.patch): + echo 'Patch #33 (pam-1.3.0-unix-nomsg.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nomsg --fuzz=0 patching file modules/pam_unix/pam_unix_passwd.c Patch #34 (pam-1.3.1-coverity.patch): + echo 'Patch #34 (pam-1.3.1-coverity.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .coverity --fuzz=0 patching file libpam/pam_handlers.c patching file libpam_misc/misc_conv.c patching file modules/pam_access/pam_access.c patching file modules/pam_limits/pam_limits.c patching file modules/pam_loginuid/pam_loginuid.c patching file modules/pam_mkhomedir/mkhomedir_helper.c patching file modules/pam_namespace/pam_namespace.c patching file modules/pam_pwhistory/opasswd.c Hunk #1 succeeded at 379 (offset 53 lines). Hunk #2 succeeded at 392 (offset 53 lines). patching file modules/pam_rootok/pam_rootok.c patching file modules/pam_sepermit/pam_sepermit.c Patch #35 (pam-1.3.1-console-build.patch): + echo 'Patch #35 (pam-1.3.1-console-build.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .console-build --fuzz=0 patching file modules/pam_console/sed-static + echo 'Patch #36 (pam-1.3.1-faillock-update.patch):' Patch #36 (pam-1.3.1-faillock-update.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .faillock-update --fuzz=0 patching file modules/pam_faillock/faillock.c patching file modules/pam_faillock/faillock.conf.5.xml patching file modules/pam_faillock/faillock.conf patching file modules/pam_faillock/faillock.h patching file modules/pam_faillock/Makefile.am patching file modules/pam_faillock/pam_faillock.8.xml patching file modules/pam_faillock/pam_faillock.c + echo 'Patch #37 (pam-1.3.1-namespace-mntopts.patch):' Patch #37 (pam-1.3.1-namespace-mntopts.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .mntopts --fuzz=0 patching file modules/pam_namespace/namespace.conf.5.xml patching file modules/pam_namespace/pam_namespace.c Hunk #3 succeeded at 1553 (offset 1 line). patching file modules/pam_namespace/pam_namespace.h + echo 'Patch #38 (pam-1.3.1-lastlog-no-showfailed.patch):' Patch #38 (pam-1.3.1-lastlog-no-showfailed.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .no-showfailed --fuzz=0 patching file modules/pam_lastlog/pam_lastlog.8.xml Hunk #1 succeeded at 94 (offset -8 lines). patching file modules/pam_lastlog/pam_lastlog.c Hunk #1 succeeded at 130 (offset -5 lines). Hunk #2 succeeded at 158 (offset -5 lines). Patch #39 (pam-1.3.1-lastlog-unlimited-fsize.patch): + echo 'Patch #39 (pam-1.3.1-lastlog-unlimited-fsize.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .unlimited-fsize --fuzz=0 patching file modules/pam_lastlog/pam_lastlog.8.xml Hunk #2 succeeded at 191 (offset -8 lines). Hunk #3 succeeded at 307 (offset -8 lines). patching file modules/pam_lastlog/pam_lastlog.c Hunk #1 succeeded at 24 (offset -1 lines). Hunk #2 succeeded at 79 (offset -5 lines). Hunk #3 succeeded at 156 (offset -5 lines). Hunk #4 succeeded at 342 (offset -36 lines). Hunk #5 succeeded at 402 (offset -36 lines). Hunk #6 succeeded at 434 (offset -36 lines). Patch #40 (pam-1.3.1-unix-improve-logging.patch): + echo 'Patch #40 (pam-1.3.1-unix-improve-logging.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .improve-logging --fuzz=0 patching file modules/pam_unix/pam_unix_auth.c Hunk #1 succeeded at 132 (offset 2 lines). Hunk #2 succeeded at 149 (offset 2 lines). Patch #41 (pam-1.3.1-tty-audit-manfix.patch): + echo 'Patch #41 (pam-1.3.1-tty-audit-manfix.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .tty-audit-manfix --fuzz=0 patching file modules/pam_tty_audit/pam_tty_audit.8.xml + echo 'Patch #42 (pam-1.3.1-fds-closing.patch):' Patch #42 (pam-1.3.1-fds-closing.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fds-closing --fuzz=0 patching file libpam/pam_modutil_sanitize.c + echo 'Patch #43 (pam-1.3.1-authtok-verify-fix.patch):' Patch #43 (pam-1.3.1-authtok-verify-fix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .authtok-verify-fix --fuzz=0 patching file libpam/pam_get_authtok.c patching file libpam/pam_private.h patching file libpam/pam_start.c Patch #44 (pam-1.3.1-motd-manpage.patch): + echo 'Patch #44 (pam-1.3.1-motd-manpage.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .motd-manpage --fuzz=0 patching file modules/pam_motd/pam_motd.8.xml + echo 'Patch #45 (pam-1.3.1-pam-usertype.patch):' Patch #45 (pam-1.3.1-pam-usertype.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pam-usertype --fuzz=0 patching file configure.ac patching file modules/Makefile.am patching file modules/pam_usertype/Makefile.am patching file modules/pam_usertype/pam_usertype.8.xml patching file modules/pam_usertype/pam_usertype.c patching file modules/pam_usertype/README.xml patching file modules/pam_usertype/tst-pam_usertype + echo 'Patch #46 (pam-1.3.1-audit-error.patch):' Patch #46 (pam-1.3.1-audit-error.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .audit-error --fuzz=0 patching file modules/pam_tty_audit/pam_tty_audit.c Hunk #1 succeeded at 347 (offset -4 lines). Patch #47 (pam-1.3.1-pam-modutil-close-write.patch): + echo 'Patch #47 (pam-1.3.1-pam-modutil-close-write.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pam-modutil-close-write --fuzz=0 patching file libpam/pam_modutil_sanitize.c Hunk #1 succeeded at 40 (offset -6 lines). Hunk #2 succeeded at 72 (offset -6 lines). Patch #48 (pam-1.3.1-wheel-pam_ruser-fallback.patch): + echo 'Patch #48 (pam-1.3.1-wheel-pam_ruser-fallback.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .wheel-pam_ruser-fallback --fuzz=0 patching file modules/pam_wheel/pam_wheel.c patching file modules/pam_wheel/pam_wheel.c patching file modules/pam_wheel/pam_wheel.8.xml + echo 'Patch #49 (pam-1.3.1-namespace-gdm-doc.patch):' Patch #49 (pam-1.3.1-namespace-gdm-doc.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .namespace-gdm-doc --fuzz=0 patching file modules/pam_namespace/pam_namespace.8.xml + autoreconf -i Copying file m4/codeset.m4 Copying file m4/extern-inline.m4 Copying file m4/fcntl-o.m4 Copying file m4/glibc2.m4 Copying file m4/glibc21.m4 Copying file m4/intdiv0.m4 Copying file m4/intl.m4 Copying file m4/intldir.m4 Copying file m4/intmax.m4 Copying file m4/inttypes-pri.m4 Copying file m4/inttypes_h.m4 Copying file m4/lcmessage.m4 Copying file m4/lock.m4 Copying file m4/longlong.m4 Copying file m4/printf-posix.m4 Copying file m4/size_max.m4 Copying file m4/stdint_h.m4 Copying file m4/threadlib.m4 Copying file m4/uintmax_t.m4 Copying file m4/visibility.m4 Copying file m4/wchar_t.m4 Copying file m4/wint_t.m4 Copying file m4/xsize.m4 Copying file po/Makevars.template Can't load '/usr/lib64/perl5/vendor_perl/auto/threads/threads.so' for module threads: /usr/lib64/perl5/vendor_perl/auto/threads/threads.so: undefined symbol: thread_locale_init at /usr/share/perl5/XSLoader.pm line 96. at /usr/lib64/perl5/vendor_perl/threads.pm line 32. Compilation failed in require at /usr/share/automake-1.16/Automake/ChannelDefs.pm line 23. BEGIN failed--compilation aborted at /usr/share/automake-1.16/Automake/ChannelDefs.pm line 26. Compilation failed in require at /usr/share/automake-1.16/Automake/Configure_ac.pm line 27. BEGIN failed--compilation aborted at /usr/share/automake-1.16/Automake/Configure_ac.pm line 27. Compilation failed in require at /usr/bin/aclocal line 38. BEGIN failed--compilation aborted at /usr/bin/aclocal line 38. autoreconf: aclocal failed with exit status: 2 error: Bad exit status from /var/tmp/rpm-tmp.u9NOaN (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.u9NOaN (%prep) 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/pam.spec