Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-chip-io.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1686416728.391407/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 aarch64 --nodeps /builddir/build/SPECS/python-chip-io.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-CHIP-IO-0.7.1-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-chip-io.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1686416728.391407/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 aarch64 --nodeps /builddir/build/SPECS/python-chip-io.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-CHIP-IO-0.7.1-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-chip-io.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1686416728.391407/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 aarch64 --nodeps /builddir/build/SPECS/python-chip-io.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3aJ6P4 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf CHIP_IO-0.7.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/CHIP_IO-0.7.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd CHIP_IO-0.7.1 + /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.QXn0Mv + umask 022 + cd /builddir/build/BUILD + cd CHIP_IO-0.7.1 + 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 -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' running build running build_py creating build creating build/lib.linux-aarch64-3.9 creating build/lib.linux-aarch64-3.9/CHIP_IO copying CHIP_IO/OverlayManager.py -> build/lib.linux-aarch64-3.9/CHIP_IO copying CHIP_IO/Utilities.py -> build/lib.linux-aarch64-3.9/CHIP_IO copying CHIP_IO/__init__.py -> build/lib.linux-aarch64-3.9/CHIP_IO copying CHIP_IO/LRADC.py -> build/lib.linux-aarch64-3.9/CHIP_IO running build_ext building 'CHIP_IO.GPIO' extension creating build/temp.linux-aarch64-3.9 creating build/temp.linux-aarch64-3.9/source 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 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c source/common.c -o build/temp.linux-aarch64-3.9/source/common.o -Wno-format-security source/common.c: In function ‘get_adc_ain’: source/common.c:627:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 627 | if (*ain == -1) { | ^~ source/common.c:630:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 630 | if (*ain == -1) { | ^~ In file included from source/common.c:41: source/common.c: In function ‘add_error_msg’: source/common.c:778:83: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 778 | int buff_len = strnlen(error_msg_buff, sizeof(error_msg_buff)); ASSRT(buff_len < sizeof(error_msg_buff)); | ^ source/common.h:43:9: note: in definition of macro ‘ASSRT’ 43 | if (!(cond_expr)) { \ | ^~~~~~~~~ source/common.c: In function ‘get_xio_base.part.0’: source/common.c:194:52: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 112 [-Wformat-truncation=] 194 | snprintf(label_file, sizeof(label_file), "%s/%s/label", GPIO_PATH, ent->d_name); BUF2SMALL(label_file); | ^~ In file included from /usr/include/stdio.h:888, from source/common.c:42: /usr/include/bits/stdio2.h:71:10: note: ‘__builtin___snprintf_chk’ output between 23 and 278 bytes into a destination of size 128 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ source/common.c:202:54: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 112 [-Wformat-truncation=] 202 | snprintf(base_file, sizeof(base_file), "%s/%s/base", GPIO_PATH, ent->d_name); BUF2SMALL(base_file); | ^~ In file included from /usr/include/stdio.h:888, from source/common.c:42: /usr/include/bits/stdio2.h:71:10: note: ‘__builtin___snprintf_chk’ output between 22 and 277 bytes into a destination of size 128 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c source/constants.c -o build/temp.linux-aarch64-3.9/source/constants.o -Wno-format-security 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 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c source/event_gpio.c -o build/temp.linux-aarch64-3.9/source/event_gpio.o -Wno-format-security source/event_gpio.c: In function ‘gpio_set_direction’: source/event_gpio.c:416:11: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 416 | if (s != strlen(direction)) { | ^~ source/event_gpio.c: In function ‘gpio_set_value’: source/event_gpio.c:510:11: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 510 | if (s != strlen(vstr)) { | ^~ 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 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c source/py_gpio.c -o build/temp.linux-aarch64-3.9/source/py_gpio.o -Wno-format-security source/py_gpio.c: In function ‘PyInit_GPIO’: source/py_gpio.c:1376:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-Wdeprecated-declarations] 1376 | if (!PyEval_ThreadsInitialized()) | ^~ In file included from /usr/include/python3.9/Python.h:141, from source/py_gpio.c:41: /usr/include/python3.9/ceval.h:129:36: note: declared here 129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~ source/py_gpio.c:1377:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations] 1377 | PyEval_InitThreads(); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/Python.h:141, from source/py_gpio.c:41: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ 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 -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-aarch64-3.9/source/common.o build/temp.linux-aarch64-3.9/source/constants.o build/temp.linux-aarch64-3.9/source/event_gpio.o build/temp.linux-aarch64-3.9/source/py_gpio.o -L/usr/lib64 -o build/lib.linux-aarch64-3.9/CHIP_IO/GPIO.cpython-39-aarch64-linux-gnu.so /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:15: multiple definition of `bcm'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:15: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:14: multiple definition of `board'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:14: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:13: multiple definition of `unknown'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:13: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:12: multiple definition of `version'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:12: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:11: multiple definition of `both_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:11: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:10: multiple definition of `falling_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:10: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:9: multiple definition of `rising_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:9: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:8: multiple definition of `pud_down'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:8: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:7: multiple definition of `pud_up'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:7: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:6: multiple definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:6: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:5: multiple definition of `alt0'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:5: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:4: multiple definition of `output'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:4: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:3: multiple definition of `input'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:3: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:2: multiple definition of `low'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:2: first defined here /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:1: multiple definition of `high'; build/temp.linux-aarch64-3.9/source/constants.o:/builddir/build/BUILD/CHIP_IO-0.7.1/source/constants.h:1: first defined here 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.QXn0Mv (%build) Bad exit status from /var/tmp/rpm-tmp.QXn0Mv (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-chip-io.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 aarch64 --nodeps /builddir/build/SPECS/python-chip-io.spec