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-psycopg2.spec'], chrootPath='/var/lib/mock/module-python27-2.7-8040020211101043344-3d27a66e-build-51662-23634/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=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vp7mmn9_:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vp7mmn9_:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b52ed9862e4049c89965cef6c74a06a2', '-D', '/var/lib/mock/module-python27-2.7-8040020211101043344-3d27a66e-build-51662-23634/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vp7mmn9_:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/python-psycopg2.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/python-psycopg2-2.7.5-7.0.1.module+an8.4.0+10418+a99b65f1.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-psycopg2.spec'], chrootPath='/var/lib/mock/module-python27-2.7-8040020211101043344-3d27a66e-build-51662-23634/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=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vp7mmn9_:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vp7mmn9_:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'd3dae25a91674ba8b1dc448ea010ac7a', '-D', '/var/lib/mock/module-python27-2.7-8040020211101043344-3d27a66e-build-51662-23634/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vp7mmn9_:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/python-psycopg2.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FM7kdr + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf psycopg2-2.7.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/psycopg2-2.7.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd psycopg2-2.7.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-python-psycopg2-anolis-Mark-_test_external_close-as-expected-failure.patch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hLzBIx + umask 022 + cd /builddir/build/BUILD + cd psycopg2-2.7.5 + for python in python2 python2-debug + python2 setup.py build running build running build_py creating build creating build/lib.linux-loongarch64-2.7 creating build/lib.linux-loongarch64-2.7/psycopg2 copying lib/psycopg1.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/pool.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/_json.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/_range.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/__init__.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/extras.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/sql.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/extensions.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/errorcodes.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/_ipaddress.py -> build/lib.linux-loongarch64-2.7/psycopg2 copying lib/tz.py -> build/lib.linux-loongarch64-2.7/psycopg2 creating build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_green.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/testconfig.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_async.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_lobject.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_async_keyword.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_ipaddress.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_with.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_copy.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_connection.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_cursor.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_extras_dictcursor.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_quote.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_sql.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_types_basic.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_replication.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_errcodes.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_transaction.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_module.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_notify.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_bug_gc.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/dbapi20_tpc.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/testutils.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_dates.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_types_extras.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/dbapi20.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_fast_executemany.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/__init__.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_bugX000.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests copying tests/test_cancel.py -> build/lib.linux-loongarch64-2.7/psycopg2/tests running build_ext building 'psycopg2._psycopg' extension creating build/temp.linux-loongarch64-2.7 creating build/temp.linux-loongarch64-2.7/psycopg gcc -pthread -fno-strict-aliasing -O2 -g -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=2.7.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=130003 -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-loongarch64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement In file included from /usr/include/python2.7/Python.h:8, from ./psycopg/psycopg.h:34, from psycopg/psycopgmodule.c:27: /usr/include/python2.7/pyconfig.h:6:10: fatal error: pyconfig-64.h: No such file or directory #include "pyconfig-64.h" ^~~~~~~~~~~~~~~ compilation terminated. It appears you are missing some prerequisite to build the package from source. You may install a binary package by installing 'psycopg2-binary' from PyPI. If you want to install psycopg2 from source, please install the packages required for the build and try again. For further information please check the 'doc/src/install.rst' file (also at ). error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.hLzBIx (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.hLzBIx (%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: # /usr/bin/systemd-nspawn -q -M d3dae25a91674ba8b1dc448ea010ac7a -D /var/lib/mock/module-python27-2.7-8040020211101043344-3d27a66e-build-51662-23634/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.vp7mmn9_:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/python-psycopg2.spec