'/builddir/build/BUILD/libselinux-2.8/utils' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/libselinux-2.8/utils' make[1]: Entering directory '/builddir/build/BUILD/libselinux-2.8/man' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/libselinux-2.8/man' + BuildPythonWrapper /usr/bin/python + BinaryName=/usr/bin/python + make PYTHON=/usr/bin/python LIBDIR=/usr/lib64 'CFLAGS=-g -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' -j4 pywrap make -C src pywrap pywrap make[1]: Entering directory '/builddir/build/BUILD/libselinux-2.8/src' BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: Please specify at least one package name on the command line. cc -g -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 -I../include -D_GNU_SOURCE -DDISABLE_RPM -DNO_ANDROID_BACKEND -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8 -Wno-error -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-shadow -Wno-uninitialized -Wno-missing-prototypes -Wno-missing-declarations -fPIC -DSHARED -c -o selinuxswig_wrap.lo selinuxswig_wrap.c BUILDSTDERR: make[1]: /usr/bin/python: Command not found BUILDSTDERR: Please specify at least one package name on the command line. cc -g -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 -I../include -D_GNU_SOURCE -DDISABLE_RPM -DNO_ANDROID_BACKEND -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8 -fPIC -DSHARED -c -o audit2why.lo audit2why.c BUILDSTDERR: selinuxswig_wrap.c:149:11: fatal error: Python.h: No such file or directory BUILDSTDERR: # include BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: compilation terminated. BUILDSTDERR: audit2why.c:6:10: fatal error: Python.h: No such file or directory BUILDSTDERR: #include BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: make[1]: *** [Makefile:138: selinuxswig_wrap.lo] Error 1 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... BUILDSTDERR: compilation terminated. make[1]: Leaving directory '/builddir/build/BUILD/libselinux-2.8/src' BUILDSTDERR: make[1]: *** [Makefile:164: audit2why.lo] Error 1 BUILDSTDERR: make: *** [Makefile:52: pywrap] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.DzpBhh (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.DzpBhh (%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 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, 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/libselinux.spec