Mock Version: 2.10 Mock Version: 2.10 Mock Version: 2.10 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python3.spec'], chrootPath='/var/lib/mock/dist-an23-riscv64-build-111285-45856/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=2592000uid=991gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7exuu135:/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.7exuu135:/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', '01ffc529522f4b55b15dcf6d337ef5af', '-D', '/var/lib/mock/dist-an23-riscv64-build-111285-45856/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7exuu135:/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', '--console=pipe', '--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 riscv64 --nodeps /builddir/build/SPECS/python3.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 warning: line 265: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 warning: extra tokens at the end of %endif directive in line 336: %endif # with main_python warning: extra tokens at the end of %endif directive in line 489: %endif # with debug_build warning: extra tokens at the end of %else directive in line 491: %else # with flatpackage warning: extra tokens at the end of %endif directive in line 527: %endif # with flatpackage warning: extra tokens at the end of %endif directive in line 672: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 708: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 743: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 776: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 984: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 987: %endif # with tests warning: extra tokens at the end of %endif directive in line 1460: %endif # with debug_build Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/python3.10-3.10.2-2.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python3.spec'], chrootPath='/var/lib/mock/dist-an23-riscv64-build-111285-45856/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=2592000uid=991gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7exuu135:/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.7exuu135:/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', '61fcb0d8a13d4b7482bf03ed37819ecb', '-D', '/var/lib/mock/dist-an23-riscv64-build-111285-45856/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7exuu135:/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', '--console=pipe', '--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 riscv64 --nodeps /builddir/build/SPECS/python3.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 warning: line 265: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 warning: extra tokens at the end of %endif directive in line 336: %endif # with main_python warning: extra tokens at the end of %endif directive in line 489: %endif # with debug_build warning: extra tokens at the end of %else directive in line 491: %else # with flatpackage warning: extra tokens at the end of %endif directive in line 527: %endif # with flatpackage warning: extra tokens at the end of %endif directive in line 672: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 708: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 743: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 776: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 984: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 987: %endif # with tests warning: extra tokens at the end of %endif directive in line 1460: %endif # with debug_build Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1l7Jpm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Python-3.10.2 + /usr/bin/xz -dc /builddir/build/SOURCES/Python-3.10.2.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.10.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'python3.10-3.10.2 base' + /usr/bin/cat /builddir/build/SOURCES/0001-Make-test-suite-support-Expat-2.4.5.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_minidom.py... Checking patch Lib/test/test_xml_etree.py... Hunk #1 succeeded at 2183 (offset -9 lines). Checking patch Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst... Applied patch Lib/test/test_minidom.py cleanly. Applied patch Lib/test/test_xml_etree.py cleanly. Applied patch Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst cleanly. + /usr/bin/cat /builddir/build/SOURCES/0002-3.10-bpo-46513-Remove-AC_C_CHAR_UNSIGNED-__CHAR_UNSI.patch + /usr/bin/git am --reject -q Checking patch Misc/NEWS.d/next/Build/2022-01-25-12-32-37.bpo-46513.mPm9B4.rst... Checking patch Modules/audioop.c... Checking patch configure... Checking patch configure.ac... Checking patch pyconfig.h.in... Applied patch Misc/NEWS.d/next/Build/2022-01-25-12-32-37.bpo-46513.mPm9B4.rst cleanly. Applied patch Modules/audioop.c cleanly. Applied patch configure cleanly. Applied patch configure.ac cleanly. Applied patch pyconfig.h.in cleanly. + rm Lib/ensurepip/_bundled/pip-21.2.4-py3-none-any.whl + rm Lib/ensurepip/_bundled/setuptools-58.1.0-py3-none-any.whl + find -name '*.exe' -print -delete + rm -r Modules/expat + rm -r Modules/_decimal/libmpdec + rm configure pyconfig.h.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bW5x3q + umask 022 + cd /builddir/build/BUILD + cd Python-3.10.2 + export HAS_GIT=not-found + HAS_GIT=not-found + autoconf configure.ac:59: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:59: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:59: the top level configure.ac:911: warning: AC_LINK_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS ./lib/autoconf/specific.m4:364: AC_USE_SYSTEM_EXTENSIONS is expanded from... configure.ac:911: the top level configure.ac:2214: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:2214: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:2214: the top level configure.ac:4247: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:4247: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:4247: the top level + autoheader ++ pwd + topdir=/builddir/build/BUILD/Python-3.10.2 + export 'CFLAGS=%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv' + CFLAGS='%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv' + export 'CFLAGS_NODIST=-O2 -g -D_GNU_SOURCE -fPIC -fwrapv' + CFLAGS_NODIST='-O2 -g -D_GNU_SOURCE -fPIC -fwrapv' + export 'CXXFLAGS=%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv' + CXXFLAGS='%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv' ++ pkg-config --cflags-only-I libffi + export CPPFLAGS= + CPPFLAGS= + export 'OPT=%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv' + OPT='%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv' + export LINKCC=gcc + LINKCC=gcc ++ pkg-config --cflags openssl + export 'CFLAGS=%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv ' + CFLAGS='%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv ' ++ pkg-config --libs-only-L openssl + export 'LDFLAGS=%{extension_ldflags} -g ' + LDFLAGS='%{extension_ldflags} -g ' ++ pkg-config --libs-only-L openssl + export 'LDFLAGS_NODIST=%{build_ldflags} -g ' + LDFLAGS_NODIST='%{build_ldflags} -g ' + BuildPython debug '--without-ensurepip --with-pydebug' '-O0 -Wno-cpp' + ConfName=debug + ExtraConfigArgs='--without-ensurepip --with-pydebug' + MoreCFlags='-O0 -Wno-cpp' + ConfDir=build/debug STARTING: BUILD OF PYTHON FOR CONFIGURATION: debug + echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: debug + mkdir -p build/debug + pushd build/debug ~/build/BUILD/Python-3.10.2/build/debug ~/build/BUILD/Python-3.10.2 + export 'DFLAGS= ' + DFLAGS=' ' + CFLAGS='%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv ' + export CFLAGS + CXXFLAGS='%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv' + export CXXFLAGS + FFLAGS='-O2 -g ' + export FFLAGS + FCFLAGS='-O2 -g ' + export FCFLAGS + LDFLAGS='%{extension_ldflags} -g ' + export LDFLAGS + /builddir/build/BUILD/Python-3.10.2/configure --host=riscv64-koji-linux-gnu --build=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-platlibdir=lib64 --enable-ipv6 --enable-shared --with-computed-gotos=yes --with-dbmliborder=gdbm:ndbm:bdb --with-system-expat --with-system-ffi --with-system-libmpdec --enable-loadable-sqlite-extensions --with-dtrace --with-lto --with-ssl-default-suites=openssl --without-static-libpython --with-wheel-pkg-dir=/usr/share/python-wheels --without-ensurepip --with-pydebug configure: WARNING: unrecognized options: --disable-dependency-tracking checking for git... not-found checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking for python3.10... python3.10 checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... "linux" checking for riscv64-koji-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/builddir/build/BUILD/Python-3.10.2/build/debug': configure: error: C compiler cannot create executables See `config.log' for more details error: Bad exit status from /var/tmp/rpm-tmp.bW5x3q (%build) RPM build errors: line 265: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 extra tokens at the end of %endif directive in line 336: %endif # with main_python extra tokens at the end of %endif directive in line 489: %endif # with debug_build extra tokens at the end of %else directive in line 491: %else # with flatpackage extra tokens at the end of %endif directive in line 527: %endif # with flatpackage extra tokens at the end of %endif directive in line 672: %endif # with debug_build extra tokens at the end of %endif directive in line 708: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 743: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 776: %endif # with debug_build extra tokens at the end of %endif directive in line 984: %endif # with debug_build extra tokens at the end of %endif directive in line 987: %endif # with tests extra tokens at the end of %endif directive in line 1460: %endif # with debug_build Bad exit status from /var/tmp/rpm-tmp.bW5x3q (%build) Child return code was: 1 EXCEPTION: [Error()] 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 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 61fcb0d8a13d4b7482bf03ed37819ecb -D /var/lib/mock/dist-an23-riscv64-build-111285-45856/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.7exuu135:/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 --console=pipe --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 riscv64 --nodeps /builddir/build/SPECS/python3.spec