Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python3.spec'], chrootPath='/var/lib/mock/dist-an23-build-228763-62419/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --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'} and shell False warning: line 263: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 warning: extra tokens at the end of %endif directive in line 334: %endif # with main_python warning: extra tokens at the end of %endif directive in line 486: %endif # with debug_build warning: extra tokens at the end of %else directive in line 488: %else # with flatpackage warning: extra tokens at the end of %endif directive in line 524: %endif # with flatpackage warning: extra tokens at the end of %endif directive in line 669: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 705: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 729: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 747: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 944: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 947: %endif # with tests warning: extra tokens at the end of %endif directive in line 1420: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python3.10-3.10.10-2.an23.src.rpm RPM build warnings: line 263: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 extra tokens at the end of %endif directive in line 334: %endif # with main_python extra tokens at the end of %endif directive in line 486: %endif # with debug_build extra tokens at the end of %else directive in line 488: %else # with flatpackage extra tokens at the end of %endif directive in line 524: %endif # with flatpackage extra tokens at the end of %endif directive in line 669: %endif # with debug_build extra tokens at the end of %endif directive in line 705: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 729: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 747: %endif # with debug_build extra tokens at the end of %endif directive in line 944: %endif # with debug_build extra tokens at the end of %endif directive in line 947: %endif # with tests extra tokens at the end of %endif directive in line 1420: %endif # with debug_build Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python3.spec'], chrootPath='/var/lib/mock/dist-an23-build-228763-62419/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --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'} and shell False warning: line 263: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 warning: extra tokens at the end of %endif directive in line 334: %endif # with main_python warning: extra tokens at the end of %endif directive in line 486: %endif # with debug_build warning: extra tokens at the end of %else directive in line 488: %else # with flatpackage warning: extra tokens at the end of %endif directive in line 524: %endif # with flatpackage warning: extra tokens at the end of %endif directive in line 669: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 705: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 729: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 747: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 944: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 947: %endif # with tests warning: extra tokens at the end of %endif directive in line 1420: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.aW5lBR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Python-3.10.10 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Python-3.10.10.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.10.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python3-3.10.10-fix-linkage.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python3-3.10.10-link-C-modules-with-libpython.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm Lib/ensurepip/_bundled/pip-22.3.1-py3-none-any.whl + rm Lib/ensurepip/_bundled/setuptools-65.5.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.kHidYv + umask 022 + cd /builddir/build/BUILD + cd Python-3.10.10 + 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:4248: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:4248: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:4248: the top level + autoheader ++ pwd + topdir=/builddir/build/BUILD/Python-3.10.10 + 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' STARTING: BUILD OF PYTHON FOR CONFIGURATION: debug + ConfName=debug + ExtraConfigArgs='--without-ensurepip --with-pydebug' + MoreCFlags='-O0 -Wno-cpp' + ConfDir=build/debug + echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: debug + mkdir -p build/debug + pushd build/debug ~/build/BUILD/Python-3.10.10/build/debug ~/build/BUILD/Python-3.10.10 + 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.10/configure --host=x86_64-Anolis-linux --build=x86_64-Anolis-linux --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 --with-valgrind --without-ensurepip --with-pydebug configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-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-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/builddir/build/BUILD/Python-3.10.10/build/debug': configure: error: C compiler cannot create executables See `config.log' for more details error: Bad exit status from /var/tmp/rpm-tmp.kHidYv (%build) line 263: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 extra tokens at the end of %endif directive in line 334: %endif # with main_python extra tokens at the end of %endif directive in line 486: %endif # with debug_build extra tokens at the end of %else directive in line 488: %else # with flatpackage extra tokens at the end of %endif directive in line 524: %endif # with flatpackage extra tokens at the end of %endif directive in line 669: %endif # with debug_build RPM build warnings: RPM build errors: extra tokens at the end of %endif directive in line 705: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 729: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 747: %endif # with debug_build extra tokens at the end of %endif directive in line 944: %endif # with debug_build extra tokens at the end of %endif directive in line 947: %endif # with tests extra tokens at the end of %endif directive in line 1420: %endif # with debug_build Bad exit status from /var/tmp/rpm-tmp.kHidYv (%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 x86_64 --nodeps /builddir/build/SPECS/python3.spec