nted as if it were guarded by the 'if' BUILDSTDERR: if (!start) BUILDSTDERR: ^~ 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 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7cvata + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64 + cd libpagemap-0.0.1 + rm -rf /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64 + cd libpagemap-0.0.1 + make install DESTDIR=/builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64 install -Dp libpagemap.so.0.0.0 /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64/usr/lib64/libpagemap.so.0.0.0 cd /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.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.fc30.riscv64/usr/bin/pgmap install -Dp pgmap.1 /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64/usr/share/man/man1/pgmap.1 install -Dp -m 0644 libpagemap.h /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64/usr/include/libpagemap.h + install -D -p -m 755 pagemapdata.py /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64//pagemapdata.py + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.0.1-26.fc30 --unique-debug-suffix -0.0.1-26.fc30.riscv64 --unique-debug-src-base libpagemap-0.0.1-26.fc30.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/libpagemap-0.0.1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64/usr/lib64/libpagemap.so.0.0.0 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64/usr/bin/pgmap extracting debug info from /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64/usr/lib64/libpagemap.so.0.0.0 extracting debug info from /builddir/build/BUILDROOT/libpagemap-0.0.1-26.fc30.riscv64/usr/bin/pgmap /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. BUILDSTDERR: 84 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /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. BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.7cvata (%install) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.7cvata (%install) RPM build errors: 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