Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/python-greenlet.spec'], chrootPath='/var/lib/mock/dist-el8-loongarch64-build-52700-24477/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=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/python-greenlet.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 Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/python-greenlet-0.4.13-4.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/python-greenlet.spec'], chrootPath='/var/lib/mock/dist-el8-loongarch64-build-52700-24477/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=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/python-greenlet.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 Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6QlcGd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf greenlet-0.4.13 + /usr/bin/gzip -dc /builddir/build/SOURCES/greenlet-0.4.13.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd greenlet-0.4.13 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-Don-t-clobber-r2-register-on-ppc64el.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qf5lPe + umask 022 + cd /builddir/build/BUILD + cd greenlet-0.4.13 + CFLAGS='-O2 -g' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/libexec/platform-python setup.py build '--executable=/usr/libexec/platform-python -s' running build running build_ext building 'greenlet' extension creating build creating build/temp.linux-loongarch64-3.6 gcc -pthread -DNDEBUG -O2 -g -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -fPIC -I/usr/include/python3.6m -c greenlet.c -o build/temp.linux-loongarch64-3.6/greenlet.o greenlet.c:332:2: error: #error "greenlet needs to be ported to this platform, or teached how to detect your compiler properly." #error "greenlet needs to be ported to this platform, or teached how to detect your compiler properly." ^~~~~ greenlet.c:292:30: warning: ‘slp_switch’ used but never defined static int GREENLET_NOINLINE(slp_switch)(void); ^~~~~~~~~~ greenlet.c:281:59: note: in definition of macro ‘GREENLET_NOINLINE’ #define GREENLET_NOINLINE(name) __attribute__((noinline)) name ^~~~ error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.qf5lPe (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.qf5lPe (%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 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, 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 loongarch64 --nodeps /builddir/build/SPECS/python-greenlet.spec