Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libpagemap.spec'], chrootPath='/var/lib/mock/f31-build-69961-30371/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=432000uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libpagemap.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1531440000 Wrote: /builddir/build/SRPMS/libpagemap-0.0.1-26.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libpagemap.spec'], chrootPath='/var/lib/mock/f31-build-69961-30371/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=432000uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libpagemap.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 BUILDSTDERR: sh: /usr/bin/python: No such file or directory BUILDSTDERR: sh: /usr/bin/python: No such file or directory Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1531440000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Oimi0s + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libpagemap-0.0.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/v0.0.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libpagemap-0.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yhOx7u + umask 022 + cd /builddir/build/BUILD + cd libpagemap-0.0.1 + cd libpagemap-0.0.1 + make 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' BUILDSTDERR: pgmap.c: In function 'make_header': BUILDSTDERR: pgmap.c:268:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 268 | if (p) BUILDSTDERR: | ^~ BUILDSTDERR: pgmap.c:270:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 270 | if (!start) BUILDSTDERR: | ^~ + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -c libpagemap.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -shared -Wl,-soname,libpagemap.so.0 -o libpagemap.so.0.0.0 libpagemap.o -lc ln -s libpagemap.so.0.0.0 libpagemap.so.0 gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c pgmap.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o pgmap pgmap.o libpagemap.so.0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.1gcK5u + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64 + cd libpagemap-0.0.1 + rm -rf /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64 + cd libpagemap-0.0.1 + make install DESTDIR=/builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64 + install -D -p -m 755 pagemapdata.py /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64//pagemapdata.py + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.0.1-26.fc31 --unique-debug-suffix -0.0.1-26.fc31.riscv64 --unique-debug-src-base libpagemap-0.0.1-26.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/libpagemap-0.0.1 BUILDSTDERR: 84 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs BUILDSTDERR: *** ERROR: ambiguous python shebang in /pagemapdata.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. install -Dp libpagemap.so.0.0.0 /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/lib64/libpagemap.so.0.0.0 cd /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/lib64 && ln -s libpagemap.so.0.0.0 libpagemap.so.0 && ln -s libpagemap.so.0.0.0 libpagemap.so && cd - /builddir/build/BUILD/libpagemap-0.0.1/libpagemap-0.0.1 install -Dp pgmap /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/bin/pgmap install -Dp pgmap.1 /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/share/man/man1/pgmap.1 install -Dp -m 0644 libpagemap.h /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/include/libpagemap.h explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/bin/pgmap extracting debug info from /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/bin/pgmap explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/lib64/libpagemap.so.0.0.0 extracting debug info from /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc31.riscv64/usr/lib64/libpagemap.so.0.0.0 original debug info size: 136kB, size after compression: 140kB /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.1gcK5u (%install) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.1gcK5u (%install) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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 riscv64 --nodeps /builddir/build/SPECS/libpagemap.spec