Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libhid.spec'], chrootPath='/var/lib/mock/f29-build-13126-5975/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libhid.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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} 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 Wrote: /builddir/build/SRPMS/libhid-0.2.17-29.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libhid.spec'], chrootPath='/var/lib/mock/f29-build-13126-5975/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libhid.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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NbysWZ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libhid-0.2.17 + /usr/bin/gzip -dc /builddir/build/SOURCES/libhid-0.2.17.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libhid-0.2.17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (libhid-0.2.17-fix_manpage.patch): + echo 'Patch #0 (libhid-0.2.17-fix_manpage.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fix_manpage --fuzz=0 patching file doc/man/Makefile.am Patch #3 (libhid-0.2.17-fix_python.patch): + echo 'Patch #3 (libhid-0.2.17-fix_python.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fix_python --fuzz=0 patching file swig/Makefile.am + sed -i 's|AC_PROG_SWIG(1.3)|AC_PROG_SWIG(3.0)|' configure.ac + autoreconf -i BUILDSTDERR: configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body BUILDSTDERR: ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... BUILDSTDERR: m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... BUILDSTDERR: configure.ac:61: the top level BUILDSTDERR: configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body BUILDSTDERR: ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... BUILDSTDERR: m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... BUILDSTDERR: configure.ac:61: the top level libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. BUILDSTDERR: configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body BUILDSTDERR: ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... BUILDSTDERR: m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... BUILDSTDERR: configure.ac:61: the top level BUILDSTDERR: configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body BUILDSTDERR: ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... BUILDSTDERR: m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... BUILDSTDERR: configure.ac:61: the top level BUILDSTDERR: configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body BUILDSTDERR: ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... BUILDSTDERR: m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... BUILDSTDERR: configure.ac:61: the top level BUILDSTDERR: configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body BUILDSTDERR: ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... BUILDSTDERR: ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... BUILDSTDERR: m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... BUILDSTDERR: configure.ac:61: the top level BUILDSTDERR: configure.ac:61: installing './compile' BUILDSTDERR: configure.ac:59: installing './config.guess' BUILDSTDERR: configure.ac:59: installing './config.sub' BUILDSTDERR: configure.ac:28: installing './install-sh' BUILDSTDERR: configure.ac:28: installing './missing' BUILDSTDERR: Makefile.am:42: warning: wildcard $(PACKAGE: non-POSIX variable name BUILDSTDERR: Makefile.am:42: (probably a GNU make extension) BUILDSTDERR: Makefile.debian:1: warning: shell head -1 debian/changelog 2>/dev/null | sed -e '1s,.*(\([^)]*\)).*,\1,': non-POSIX variable name BUILDSTDERR: Makefile.debian:1: (probably a GNU make extension) BUILDSTDERR: Makefile.am:44: 'Makefile.debian' included from here BUILDSTDERR: Makefile.debian:2: warning: shell test -x `which dpkg-architecture 2>/dev/null` && dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null || echo i386: non-POSIX variable name BUILDSTDERR: Makefile.debian:2: (probably a GNU make extension) BUILDSTDERR: Makefile.am:44: 'Makefile.debian' included from here BUILDSTDERR: Makefile.debian:12: warning: error run 'make dist' to create the tarball: non-POSIX variable name BUILDSTDERR: Makefile.debian:12: (probably a GNU make extension) BUILDSTDERR: Makefile.am:44: 'Makefile.debian' included from here BUILDSTDERR: Makefile.am: installing './INSTALL' BUILDSTDERR: Makefile.am: installing './COPYING' using GNU General Public License v3 file BUILDSTDERR: Makefile.am: Consider adding the COPYING file to the version control system BUILDSTDERR: Makefile.am: for your code, to avoid questions about which license your project uses BUILDSTDERR: doc/Makefile.am:12: warning: wildcard ../src/*.c: non-POSIX variable name BUILDSTDERR: doc/Makefile.am:12: (probably a GNU make extension) BUILDSTDERR: doc/Makefile.am:12: warning: wildcard ../include/*.h: non-POSIX variable name BUILDSTDERR: doc/Makefile.am:12: (probably a GNU make extension) BUILDSTDERR: doc/Makefile.am:12: warning: wildcard ../hidparser/*.[ch]: non-POSIX variable name BUILDSTDERR: doc/Makefile.am:12: (probably a GNU make extension) BUILDSTDERR: doc/Makefile.am:12: warning: wildcard *.dox: non-POSIX variable name BUILDSTDERR: doc/Makefile.am:12: (probably a GNU make extension) BUILDSTDERR: doc/Makefile.am:12: warning: variable 'DOXY_SOURCES' is defined but no program or BUILDSTDERR: doc/Makefile.am:12: library has 'DOXY' as canonical name (possible typo) BUILDSTDERR: doc/man/Makefile.am:6: warning: '%'-style pattern rules are a GNU make extension BUILDSTDERR: doc/man/Makefile.am:10: warning: wildcard *.[0-9]: non-POSIX variable name BUILDSTDERR: doc/man/Makefile.am:10: (probably a GNU make extension) BUILDSTDERR: hidparser/Makefile.am: installing './depcomp' BUILDSTDERR: hidparser/Makefile.am:13: installing './py-compile' BUILDSTDERR: src/Makefile.am:53: warning: wildcard *.loT: non-POSIX variable name BUILDSTDERR: src/Makefile.am:53: (probably a GNU make extension) BUILDSTDERR: src/Makefile.am:54: warning: wildcard *.i: non-POSIX variable name BUILDSTDERR: src/Makefile.am:54: (probably a GNU make extension) BUILDSTDERR: src/Makefile.am:55: warning: wildcard *.s: non-POSIX variable name BUILDSTDERR: src/Makefile.am:55: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:12: warning: echo $(CFLAGS: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:12: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:66: warning: wildcard *.pyc: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:66: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:67: warning: patsubst %.i,%.py,$(wildcard *.i: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:67: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:68: warning: wildcard *.s: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:68: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:70: warning: wildcard *_wrap.c: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:70: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:70: warning: wildcard *_wrap.i: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:70: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:71: warning: wildcard *.o: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:71: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:72: warning: wildcard *.so: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:72: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:73: warning: wildcard *.lo *.loT: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:73: (probably a GNU make extension) BUILDSTDERR: swig/Makefile.am:74: warning: wildcard *.la: non-POSIX variable name BUILDSTDERR: swig/Makefile.am:74: (probably a GNU make extension) BUILDSTDERR: test/Makefile.am:32: warning: wildcard *.loT: non-POSIX variable name BUILDSTDERR: test/Makefile.am:32: (probably a GNU make extension) BUILDSTDERR: test/Makefile.am:33: warning: wildcard *.i: non-POSIX variable name BUILDSTDERR: test/Makefile.am:33: (probably a GNU make extension) BUILDSTDERR: test/Makefile.am:34: warning: wildcard *.s: non-POSIX variable name BUILDSTDERR: test/Makefile.am:34: (probably a GNU make extension) + echo 'Patch #1 (libhid-0.2.17-fix_compiler_flags.patch):' Patch #1 (libhid-0.2.17-fix_compiler_flags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fix_compiler_flags --fuzz=0 patching file configure Hunk #1 succeeded at 13737 (offset 132 lines). + echo 'Patch #2 (libhid-0.2.17-buildfix.patch):' Patch #2 (libhid-0.2.17-buildfix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file test/lshid.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HL788N + umask 022 + cd /builddir/build/BUILD + cd libhid-0.2.17 + 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub BUILDSTDERR: ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess BUILDSTDERR: ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --disable-werror --without-doxygen checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether to enable pedantic compiler checks... (cached) no checking whether to enable proper compiler warnings... (cached) yes checking whether to enable compiler warnings as errors... (cached) no checking whether to enable debugging... (cached) no checking whether to enable gdb-enhanced debugging symbols... (cached) no checking whether to use documentation generated by doxygen... (cached) no checking whether to enable swig python wrapper... (cached) yes checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking for target OS... Linux checking whether make supports the include directive... yes (GNU style) checking for riscv64-koji-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking usb.h usability... yes checking usb.h presence... yes checking for usb.h... yes checking for riscv64-koji-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-koji-linux-gnu file names to riscv64-koji-linux-gnu format... func_convert_file_noop checking how to convert riscv64-koji-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-koji-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-koji-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-koji-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for riscv64-koji-linux-gnu-strip... no checking for strip... strip checking for riscv64-koji-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv64-koji-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether make sets $(MAKE)... (cached) yes checking for ANSI C header files... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for inline... inline checking for an ANSI C-conforming const... yes checking whether byte ordering is bigendian... no checking for preprocessor stringizing operator... yes configure: enabled compiler warnings. checking for swig... /usr/bin/swig checking for SWIG version... 3.0.12 configure: SWIG executable is '/usr/bin/swig' configure: SWIG library directory is '/usr/share/swig/3.0.12' SWIG Version 3.0.12 Compiled with g++ [riscv64-redhat-linux-gnu] Configured options: +pcre Please see http://www.swig.org for reporting bugs and further information checking for python... /usr/bin/python BUILDSTDERR: checking for python version... DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out 2.7 BUILDSTDERR: checking for python platform... DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out linux2 BUILDSTDERR: checking for python script directory... DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out ${prefix}/lib/python2.7/site-packages BUILDSTDERR: checking for python extension module directory... DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out ${exec_prefix}/lib64/python2.7/site-packages checking for python2.7... (cached) /usr/bin/python BUILDSTDERR: checking for a version of Python >= '2.1.0'... DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out yes checking for the distutils Python package... no BUILDSTDERR: configure: error: cannot import Python module "distutils". BUILDSTDERR: Please check your Python installation. The error was: BUILDSTDERR: DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.HL788N (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.HL788N (%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/libhid.spec