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/tpm2-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-144035-57648/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/tpm2-tools.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/tpm2-tools-4.1.1-5.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/tpm2-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-144035-57648/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/tpm2-tools.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.R2ghrQ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tpm2-tools-4.1.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/tpm2-tools-4.1.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd tpm2-tools-4.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_hierarchycontrol-Fixed-bug-where-hierarchycontr.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_nvdefine.c-Fixed-error-reporting-message.patch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_policyor-Silent-failure-bug-fix-for-invalid-uns.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_alg_util.c-fix-a-bug-where-the-string-rsa3072-w.patch + /usr/bin/cat /builddir/build/SOURCES/0001-Fix-ESYS_TR-hierarchy-transition.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-Refactor-fix_esys_hierarchies.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_create.c-Fix-an-issue-where-userwithauth-attr-c.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_getekcertificate-add-default-web-address.patch + /usr/bin/cat /builddir/build/SOURCES/0001-lib-files-fix-an-error-message-in-files_load_-name.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_policy.c-restrict-policy-digest-size.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_policycountertimer-Fix-an-issue-where-operandB-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tools-tpm2_nvcertify.c-Fix-incompatible-pointer-cast.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tools-tpm2_nvreadpublic-Fix-resource-leak.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-lib-files.c-Fix-an-issue-where-execution-could-not-r.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-tpm2_import-fix-fixed-AES-key-CVE-2021-3565.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.39OMGp + umask 022 + cd /builddir/build/BUILD + cd tpm2-tools-4.1.1 + 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 + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=loongarch64-Anolis-linux --host=loongarch64-Anolis-linux --program-prefix= --disable-dependency-tracking --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 --prefix=/usr --disable-static --disable-silent-rules checking whether to enable debugging... no checking for loongarch64-Anolis-linux-gcc... no checking for 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 whether gcc understands -c and -o together... yes checking whether ln -s works... yes checking build system type... loongarch64-Anolis-linux-gnu checking host system type... loongarch64-Anolis-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert loongarch64-Anolis-linux-gnu file names to loongarch64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert loongarch64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for loongarch64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for loongarch64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for loongarch64-Anolis-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for loongarch64-Anolis-linux-strip... no checking for strip... strip checking for loongarch64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for loongarch64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking dependency style of gcc... none checking whether make supports nested variables... (cached) yes checking whether to build with code coverage support... no checking for pandoc... no configure: WARNING: Required executable pandoc not found, man pages will not be built checking for loongarch64-Anolis-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for TSS2_ESYS_3_0... no checking for TSS2_ESYS_2_3... yes checking for TSS2_TCTILDR... yes checking for TSS2_MU... yes checking for TSS2_RC... yes checking for CRYPTO... yes checking for CURL... yes checking whether C compiler accepts -Wall... yes checking whether C compiler accepts -Wextra... yes checking whether C compiler accepts -Werror... yes checking whether C compiler accepts -Wformat... yes checking whether C compiler accepts -Wformat-security... yes checking whether C compiler accepts -Wstack-protector... yes checking whether C compiler accepts -fstack-protector-all... yes checking whether C compiler accepts -Wstrict-overflow=5... yes checking whether C compiler accepts -Wbool-compare... yes checking whether C compiler accepts -O2... yes checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... yes checking whether C compiler accepts -fPIC... yes checking whether the linker accepts -shared... yes checking whether C compiler accepts -fPIE... yes checking whether the linker accepts -pie... yes checking whether the linker accepts -Wl,-z,relro... yes checking whether the linker accepts -Wl,-z,now... yes checking whether C compiler accepts -D_GNU_SOURCE... yes checking whether C compiler accepts -Wstringop-overflow=4... yes checking whether C compiler accepts -Wstringop-truncation... yes checking whether C compiler accepts -Wduplicated-branches... yes checking whether C compiler accepts -Wduplicated-cond... yes checking whether C compiler accepts -fdata-sections... yes checking whether C compiler accepts -ffunction-sections... yes checking whether the linker accepts -Wl,--gc-sections... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating lib/config.h config.status: executing libtool commands config.status: executing depfiles commands - tpm2-tools: 4.1.1 - Man pages: no - Unit tests: no + /usr/bin/make -O -j4 rm -f man/man1/tpm2_create.1 && \ mkdir -p man/man1 && \ sed -e '/\[common options\]/r ./man/common/options.md' \ -e '/\[common options\]/d' \ -e '/\[common tcti options\]/r ./man/common/tcti.md' \ -e '/\[common tcti options\]/d' \ -e '/\[authorization formatting\]/r ./man/common/authorizations.md' \ -e '/\[authorization formatting\]/d' \ -e '/\[context object format\]/r ./man/common/ctxobj.md' \ -e '/\[context object format\]/d' \ -e '/\[supported hash algorithms\]/r ./man/common/hash.md' \ -e '/\[supported hash algorithms\]/d' \ -e '/\[algorithm specifiers\]/r ./man/common/alg.md' \ -e '/\[algorithm specifiers\]/d' \ -e '/\[supported public object algorithms\]/r ./man/common/object-alg.md' \ -e '/\[supported public object algorithms\]/d' \ -e '/\[supported signing algorithms\]/r ./man/common/sign-alg.md' \ -e '/\[supported signing algorithms\]/d' \ -e '/\[nv attributes\]/r ./man/common/nv-attrs.md' \ -e '/\[nv attributes\]/d' \ -e '/\[pcr bank specifiers\]/r ./man/common/pcr.md' \ -e '/\[pcr bank specifiers\]/d' \ -e '/\[pubkey options\]/r ./man/common/pubkey.md' \ -e '/\[pubkey options\]/d' \ -e '/\[signature format specifiers\]/r ./man/common/signature.md' \ -e '/\[signature format specifiers\]/d' \ -e '/\[object attribute specifiers\]/r ./man/common/obj-attrs.md' \ -e '/\[object attribute specifiers\]/d' \ -e '/\[supported signing schemes\]/r ./man/common/signschemes.md' \ -e '/\[supported signing schemes\]/d' \ -e '/\[limitations\]/r ./man/common/policy-limitations.md' \ -e '/\[limitations\]/d' \ -e '/\[returns\]/r ./man/common/returns.md' \ -e '/\[returns\]/d' \ -e '/\[footer\]/r ./man/common/footer.md' \ -e '/\[footer\]/d' \ < man/tpm2_create.1.md | pandoc -s -t man > man/man1/tpm2_create.1 RPM build errors: /bin/sh: line 36: pandoc: command not found make: *** [Makefile:4343: man/man1/tpm2_create.1] Error 127 error: Bad exit status from /var/tmp/rpm-tmp.39OMGp (%build) Bad exit status from /var/tmp/rpm-tmp.39OMGp (%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/tpm2-tools.spec