-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 -Wall -O2 -Ilibtomcrypt/src/headers -c fc.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 -Wall -O2 -o fc fc.o libtomcrypt_fast.a 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 -Wall -O2 -o fv fv.o libtomcrypt_fast.a + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.JB3fF3 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64 + cd olpc-contents-2.6 + mkdir -p /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64//usr/sbin + /usr/bin/install -m 755 olpc-contents-create olpc-contents-clean olpc-contents-hash /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64//usr/sbin + /usr/bin/install -m 755 fv /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64//usr/sbin/olpc-contents-verify + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 2.6-17.fc30 --unique-debug-suffix -2.6-17.fc30.riscv64 --unique-debug-src-base olpc-contents-2.6-17.fc30.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/olpc-contents-2.6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64/usr/sbin/olpc-contents-verify extracting debug info from /builddir/build/BUILDROOT/olpc-contents-2.6-17.fc30.riscv64/usr/sbin/olpc-contents-verify /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 330 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 /usr/sbin/olpc-contents-clean: #!/usr/bin/python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/sbin/olpc-contents-create: #!/usr/bin/python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/sbin/olpc-contents-hash: #!/usr/bin/python. Change it to python3 (or python2) explicitly. error: RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.JB3fF3 (%install) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.JB3fF3 (%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/olpc-contents.spec