Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-bblfsh.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1685380074.460824/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffff9c68d210>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-bblfsh.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\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-bblfsh-4.2.0-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-bblfsh.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1685380074.460824/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffff8fbf1950>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-bblfsh.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\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-bblfsh-4.2.0-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-bblfsh.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1685380074.460824/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffff8fbf1950>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-bblfsh.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\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.MaO99A
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf bblfsh-4.2.0
+ /usr/bin/gzip -dc /builddir/build/SOURCES/bblfsh-4.2.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd bblfsh-4.2.0
+ /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.LqEA2j
+ umask 022
+ cd /builddir/build/BUILD
+ cd bblfsh-4.2.0
+ 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/bblfsh
copying bblfsh/test_compat.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/launcher.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/tree_order.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/compat.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/roles.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/type_aliases.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/aliases.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/client.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/node.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/result_context.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/node_iterator.py -> build/lib.linux-aarch64-3.9/bblfsh
copying bblfsh/test.py -> build/lib.linux-aarch64-3.9/bblfsh
creating build/lib.linux-aarch64-3.9/bblfsh/github
copying bblfsh/github/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/github
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg
copying bblfsh/gopkg/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg
creating build/lib.linux-aarch64-3.9/bblfsh/github/com
copying bblfsh/github/com/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/github/com
creating build/lib.linux-aarch64-3.9/bblfsh/github/com/gogo
copying bblfsh/github/com/gogo/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/github/com/gogo
creating build/lib.linux-aarch64-3.9/bblfsh/github/com/gogo/protobuf
copying bblfsh/github/com/gogo/protobuf/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/github/com/gogo/protobuf
creating build/lib.linux-aarch64-3.9/bblfsh/github/com/gogo/protobuf/gogoproto
copying bblfsh/github/com/gogo/protobuf/gogoproto/gogo_pb2.py -> build/lib.linux-aarch64-3.9/bblfsh/github/com/gogo/protobuf/gogoproto
copying bblfsh/github/com/gogo/protobuf/gogoproto/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/github/com/gogo/protobuf/gogoproto
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in
copying bblfsh/gopkg/in/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh
copying bblfsh/gopkg/in/bblfsh/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk
copying bblfsh/gopkg/in/bblfsh/sdk/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1
copying bblfsh/gopkg/in/bblfsh/sdk/v1/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2
copying bblfsh/gopkg/in/bblfsh/sdk/v2/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1/uast
copying bblfsh/gopkg/in/bblfsh/sdk/v1/uast/generated_pb2.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1/uast
copying bblfsh/gopkg/in/bblfsh/sdk/v1/uast/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1/uast
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1/protocol
copying bblfsh/gopkg/in/bblfsh/sdk/v1/protocol/generated_pb2.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1/protocol
copying bblfsh/gopkg/in/bblfsh/sdk/v1/protocol/generated_pb2_grpc.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1/protocol
copying bblfsh/gopkg/in/bblfsh/sdk/v1/protocol/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v1/protocol
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2/uast
copying bblfsh/gopkg/in/bblfsh/sdk/v2/uast/generated_pb2.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2/uast
copying bblfsh/gopkg/in/bblfsh/sdk/v2/uast/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2/uast
creating build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2/protocol
copying bblfsh/gopkg/in/bblfsh/sdk/v2/protocol/generated_pb2.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2/protocol
copying bblfsh/gopkg/in/bblfsh/sdk/v2/protocol/generated_pb2_grpc.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2/protocol
copying bblfsh/gopkg/in/bblfsh/sdk/v2/protocol/__init__.py -> build/lib.linux-aarch64-3.9/bblfsh/gopkg/in/bblfsh/sdk/v2/protocol
running build_ext
building 'bblfsh.pyuast' extension
creating build/temp.linux-aarch64-3.9
creating build/temp.linux-aarch64-3.9/bblfsh
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 -Ibblfsh/libuast -I/usr/include/python3.9 -c bblfsh/pyuast.cc -o build/temp.linux-aarch64-3.9/bblfsh/pyuast.o -std=c++11
g++ -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/bblfsh/pyuast.o bblfsh/libuast/libuast.a -L/usr/lib64 -o build/lib.linux-aarch64-3.9/bblfsh/pyuast.cpython-39-aarch64-linux-gnu.so
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000000.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000008.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000010.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(go.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000001.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000002.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000003.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000005.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000011.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000012.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000013.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000014.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000015.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000016.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000017.o)' is incompatible with aarch64 output
/usr/bin/ld: i386:x86-64 architecture of input file `bblfsh/libuast/libuast.a(000009.o)' is incompatible with aarch64 output
/usr/bin/ld: bblfsh/libuast/libuast.a(go.o): unrecognized relocation type 0x16 in section `.text'
/usr/bin/ld: is this version of the linker - (GNU Binutils) 2.37 - out of date ?
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
error: command '/usr/bin/g++' failed with exit code 1
error: Bad exit status from /var/tmp/rpm-tmp.LqEA2j (%build)
    Bad exit status from /var/tmp/rpm-tmp.LqEA2j (%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-bblfsh.spec\n', 1)]
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/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-bblfsh.spec