+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/libhid.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ocvWKY + 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 . + echo 'Patch #0 (libhid-0.2.17-fix_manpage.patch):' 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 + echo 'Patch #3 (libhid-0.2.17-fix_python.patch):' 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 configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... configure.ac:61: the top level configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... 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. configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... configure.ac:61: the top level configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... configure.ac:61: the top level configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... configure.ac:61: the top level configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... m4/md_check_libusb018b.m4:1: MD_CHECK_LIBUSB018B is expanded from... configure.ac:61: the top level configure.ac:61: installing './compile' configure.ac:59: installing './config.guess' configure.ac:59: installing './config.sub' configure.ac:28: installing './install-sh' configure.ac:28: installing './missing' Makefile.am:42: warning: wildcard $(PACKAGE: non-POSIX variable name Makefile.am:42: (probably a GNU make extension) Makefile.debian:1: warning: shell head -1 debian/changelog 2>/dev/null | sed -e '1s,.*(\([^)]*\)).*,\1,': non-POSIX variable name Makefile.debian:1: (probably a GNU make extension) Makefile.am:44: 'Makefile.debian' included from here 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 Makefile.debian:2: (probably a GNU make extension) Makefile.am:44: 'Makefile.debian' included from here Makefile.debian:12: warning: error run 'make dist' to create the tarball: non-POSIX variable name Makefile.debian:12: (probably a GNU make extension) Makefile.am:44: 'Makefile.debian' included from here Makefile.am: installing './INSTALL' Makefile.am: installing './COPYING' using GNU General Public License v3 file Makefile.am: Consider adding the COPYING file to the version control system Makefile.am: for your code, to avoid questions about which license your project uses doc/Makefile.am:12: warning: wildcard ../src/*.c: non-POSIX variable name doc/Makefile.am:12: (probably a GNU make extension) doc/Makefile.am:12: warning: wildcard ../include/*.h: non-POSIX variable name doc/Makefile.am:12: (probably a GNU make extension) doc/Makefile.am:12: warning: wildcard ../hidparser/*.[ch]: non-POSIX variable name doc/Makefile.am:12: (probably a GNU make extension) doc/Makefile.am:12: warning: wildcard *.dox: non-POSIX variable name doc/Makefile.am:12: (probably a GNU make extension) doc/Makefile.am:12: warning: variable 'DOXY_SOURCES' is defined but no program or doc/Makefile.am:12: library has 'DOXY' as canonical name (possible typo) doc/man/Makefile.am:6: warning: '%'-style pattern rules are a GNU make extension doc/man/Makefile.am:10: warning: wildcard *.[0-9]: non-POSIX variable name doc/man/Makefile.am:10: (probably a GNU make extension) hidparser/Makefile.am: installing './depcomp' hidparser/Makefile.am:13: installing './py-compile' src/Makefile.am:53: warning: wildcard *.loT: non-POSIX variable name src/Makefile.am:53: (probably a GNU make extension) src/Makefile.am:54: warning: wildcard *.i: non-POSIX variable name src/Makefile.am:54: (probably a GNU make extension) src/Makefile.am:55: warning: wildcard *.s: non-POSIX variable name src/Makefile.am:55: (probably a GNU make extension) swig/Makefile.am:12: warning: echo $(CFLAGS: non-POSIX variable name swig/Makefile.am:12: (probably a GNU make extension) swig/Makefile.am:66: warning: wildcard *.pyc: non-POSIX variable name swig/Makefile.am:66: (probably a GNU make extension) swig/Makefile.am:67: warning: patsubst %.i,%.py,$(wildcard *.i: non-POSIX variable name swig/Makefile.am:67: (probably a GNU make extension) swig/Makefile.am:68: warning: wildcard *.s: non-POSIX variable name swig/Makefile.am:68: (probably a GNU make extension) swig/Makefile.am:70: warning: wildcard *_wrap.c: non-POSIX variable name swig/Makefile.am:70: (probably a GNU make extension) swig/Makefile.am:70: warning: wildcard *_wrap.i: non-POSIX variable name swig/Makefile.am:70: (probably a GNU make extension) swig/Makefile.am:71: warning: wildcard *.o: non-POSIX variable name swig/Makefile.am:71: (probably a GNU make extension) swig/Makefile.am:72: warning: wildcard *.so: non-POSIX variable name swig/Makefile.am:72: (probably a GNU make extension) swig/Makefile.am:73: warning: wildcard *.lo *.loT: non-POSIX variable name swig/Makefile.am:73: (probably a GNU make extension) swig/Makefile.am:74: warning: wildcard *.la: non-POSIX variable name swig/Makefile.am:74: (probably a GNU make extension) test/Makefile.am:32: warning: wildcard *.loT: non-POSIX variable name test/Makefile.am:32: (probably a GNU make extension) test/Makefile.am:33: warning: wildcard *.i: non-POSIX variable name test/Makefile.am:33: (probably a GNU make extension) test/Makefile.am:34: warning: wildcard *.s: non-POSIX variable name 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.F3OcN4 + 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 ' + 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 ' + 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 -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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ 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) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ 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-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-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-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for target OS... Linux checking for style of include used by make... GNU checking for riscv64-redhat-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-redhat-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-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop checking how to convert riscv64-redhat-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-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-redhat-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-redhat-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 checking for python version... DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. 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 checking for python platform... DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. 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 checking for python script directory... DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. 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 checking for python extension module directory... DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. 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 checking for a version of Python >= '2.1.0'... DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. 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 configure: error: cannot import Python module "distutils". Please check your Python installation. The error was: DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. 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 error: Bad exit status from /var/tmp/rpm-tmp.F3OcN4 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.F3OcN4 (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff