Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1686421400.849263/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.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': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-leechcorepyc-2.14.4-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1686421400.849263/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.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': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-leechcorepyc-2.14.4-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1686421400.849263/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.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': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EmsCN1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf leechcorepyc-2.14.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/leechcorepyc-2.14.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd leechcorepyc-2.14.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ME13N2 + umask 022 + cd /builddir/build/BUILD + cd leechcorepyc-2.14.4 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' make clean -C leechcore make[1]: Entering directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore' rm -f *.o || true rm -f */*.o || true rm -f *.so || true make[1]: Leaving directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore' make clean -C leechcore_ft601_driver_linux || true make[1]: Entering directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore_ft601_driver_linux' rm -f *.o make[1]: Leaving directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore_ft601_driver_linux' make clean -C leechcore_device_rawtcp || true make[1]: Entering directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore_device_rawtcp' rm -f *.o make[1]: Leaving directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore_device_rawtcp' make clean -C leechcore_device_sp605tcp || true make[1]: Entering directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore_device_sp605tcp' rm -f *.o make[1]: Leaving directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore_device_sp605tcp' rm files/*.so || true rm: cannot remove 'files/*.so': No such file or directory rm leechcore.so || true rm: cannot remove 'leechcore.so': No such file or directory rm leechcorepyc/*.so || true rm: cannot remove 'leechcorepyc/*.so': No such file or directory make -C leechcore make[1]: Entering directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore' gcc -c -o oscompatibility.o oscompatibility.c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -I. -D LINUX -D _GNU_SOURCE -shared -fPIC -fvisibility=hidden -pthread `pkg-config libusb-1.0 --libs --cflags` -fPIE -fPIC -pie -fstack-protector -D_FORTIFY_SOURCE=2 -O1 -Wl,-z,noexecstack -Wall -Wno-unused-result -Wno-unused-variable -Wno-unused-value -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast Package libusb-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb-1.0.pc' to the PKG_CONFIG_PATH environment variable Package 'libusb-1.0', required by 'virtual:world', not found In file included from oscompatibility.c:40: oscompatibility.h:28:10: fatal error: libusb.h: No such file or directory 28 | #include | ^~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:16: oscompatibility.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/leechcorepyc-2.14.4/leechcore' make: *** [Makefile:3: all] Error 2 running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/leechcorepyc copying leechcorepyc/__init__.py -> build/lib.linux-x86_64-3.9/leechcorepyc running build_ext building 'leechcorepyc.leechcorepyc' extension creating build/temp.linux-x86_64-3.9 gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DLINUX= -Iincludes -I/usr/include/libusb-1.0/ -I/usr/include/python3.9 -c leechcorepyc.c -o build/temp.linux-x86_64-3.9/leechcorepyc.o -I. -L. -l:leechcore.so -shared -fPIC -fvisibility=hidden gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DLINUX= -Iincludes -I/usr/include/libusb-1.0/ -I/usr/include/python3.9 -c oscompatibility.c -o build/temp.linux-x86_64-3.9/oscompatibility.o -I. -L. -l:leechcore.so -shared -fPIC -fvisibility=hidden In file included from oscompatibility.h:8, from oscompatibility.c:40: includes/leechcore.h:485:19: warning: ‘LC_STATISTICS_NAME’ defined but not used [-Wunused-variable] 485 | static LPCSTR LC_STATISTICS_NAME[] = { | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from oscompatibility.h:36, from oscompatibility.c:40: In function ‘strncpy’, inlined from ‘FindFirstFileA’ at oscompatibility.c:128:5: /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ specified bound 5 equals destination size [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -shared -g -g -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-x86_64-3.9/leechcorepyc.o build/temp.linux-x86_64-3.9/oscompatibility.o -L. -L/usr/lib64 -lusb-1.0 -l:leechcore.so -o build/lib.linux-x86_64-3.9/leechcorepyc/leechcorepyc.abi3.so -Wl,-rpath,$ORIGIN -g -ldl -shared /usr/bin/ld: cannot find -lusb-1.0 /usr/bin/ld: cannot find -l:leechcore.so collect2: error: ld returned 1 exit status error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.ME13N2 (%build) Bad exit status from /var/tmp/rpm-tmp.ME13N2 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 598, in do_with_status 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 x86_64 --nodeps /builddir/build/SPECS/python-leechcorepyc.spec