mmand: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sugar-paint.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1549152000 Wrote: /builddir/build/SRPMS/sugar-paint-68-2.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sugar-paint.spec'], chrootPath='/var/lib/mock/f31-build-115314-34491/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sugar-paint.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': 'en_US.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 BUILDSTDERR: sh: /usr/bin/python: No such file or directory Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1549152000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IuWmyc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Paint-68 + /usr/bin/tar -xof - + /usr/bin/bzip2 -dc /builddir/build/SOURCES/Paint-68.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd Paint-68 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (sugar-paint-Fedora.patch): + echo 'Patch #0 (sugar-paint-Fedora.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fedora --fuzz=0 patching file fill/Makefile + sed -i s/python/python2/ setup.py + rm -rf fill/linux32_27 fill/linux64_27 fill/armv7l_27 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.p1TMG9 + umask 022 + cd /builddir/build/BUILD + cd Paint-68 + make -j4 V=1 -C fill LD=gcc make: Entering directory '/builddir/build/BUILD/Paint-68/fill' cc -fPIC -c -o fill.o fill.c BUILDSTDERR: make: python-config: Command not found BUILDSTDERR: make: python-config: Command not found cc -fPIC -c -o eggfill.o eggfill.c BUILDSTDERR: make: python-config: Command not found cc -fPIC -c -o fillmodule.o fillmodule.c BUILDSTDERR: fillmodule.c:49:10: fatal error: Python.h: No such file or directory BUILDSTDERR: 49 | #include BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: compilation terminated. BUILDSTDERR: make: *** [: fillmodule.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... make: Leaving directory '/builddir/build/BUILD/Paint-68/fill' error: RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.p1TMG9 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.p1TMG9 (%build) 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 700, 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/sugar-paint.spec