Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44816-14591/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python3.10-3.10.5-4.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44816-14591/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cxRPTk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Python-3.10.5 + /usr/bin/xz -dc /builddir/build/SOURCES/Python-3.10.5.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.10.5 + /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.5 base' + /usr/bin/git branch rpm-build + /usr/bin/git checkout rpm-build Switched to branch 'rpm-build' + /usr/bin/git branch --set-upstream-to=master branch 'rpm-build' set up to track 'master'. + /usr/bin/cat /builddir/build/SOURCES/00251-change-user-install-location.patch + /usr/bin/git am --reject -q Checking patch Lib/site.py... Checking patch Lib/sysconfig.py... Checking patch Lib/test/test_sysconfig.py... Applied patch Lib/site.py cleanly. Applied patch Lib/sysconfig.py cleanly. Applied patch Lib/test/test_sysconfig.py cleanly. + /usr/bin/cat /builddir/build/SOURCES/00371-revert-bpo-1596321-fix-threading-_shutdown-for-the-main-thread-gh-28549-gh-28589.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_threading.py... Checking patch Lib/threading.py... Applied patch Lib/test/test_threading.py cleanly. Applied patch Lib/threading.py cleanly. + /usr/bin/cat /builddir/build/SOURCES/00382-cve-2015-20107.patch + /usr/bin/git am --reject -q Checking patch Doc/library/mailcap.rst... Checking patch Lib/mailcap.py... Checking patch Lib/test/test_mailcap.py... Checking patch Misc/NEWS.d/next/Security/2022-04-27-18-25-30.gh-issue-68966.gjS8zs.rst... Applied patch Doc/library/mailcap.rst cleanly. Applied patch Lib/mailcap.py cleanly. Applied patch Lib/test/test_mailcap.py cleanly. Applied patch Misc/NEWS.d/next/Security/2022-04-27-18-25-30.gh-issue-68966.gjS8zs.rst cleanly. + rm Lib/ensurepip/_bundled/pip-22.0.4-py3-none-any.whl 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.kWlsqG + umask 022 + cd /builddir/build/BUILD + cd Python-3.10.5 + 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.5 + 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 ' + mkdir -p build/debug + pushd build/debug ~/build/BUILD/Python-3.10.5/build/debug ~/build/BUILD/Python-3.10.5 + 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.5/configure --host=x86_64-opencloudos-linux-gnu --build=x86_64-opencloudos-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 --enable-ipv6 --enable-shared --enable-loadable-sqlite-extensions --with-lto --with-dtrace --with-pydebug --with-system-ffi --with-system-expat --with-system-libmpdec --with-platlibdir=lib64 --with-computed-gotos=yes --with-ssl-default-suites=openssl --with-dbmliborder=gdbm:ndbm:bdb --with-wheel-pkg-dir=/usr/share/python-wheels --without-ensurepip --without-static-libpython configure: WARNING: unrecognized options: --disable-dependency-tracking configure: loading site script /usr/share/config.site checking for git... found checking build system type... x86_64-opencloudos-linux-gnu checking host system type... x86_64-opencloudos-linux-gnu checking for python3.10... python3.10 checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... "linux" checking for x86_64-opencloudos-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/builddir/build/BUILD/Python-3.10.5/build/debug': configure: error: C compiler cannot create executables See `config.log' for more details error: Bad exit status from /var/tmp/rpm-tmp.kWlsqG (%build) Bad exit status from /var/tmp/rpm-tmp.kWlsqG (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec\n', 1)] 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 597, 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/python3.10.spec