Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3.12.spec'], chrootPath='/var/lib/mock//dist-an23.5-AImanager-build-536908-82836/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', 'FORCE_UNSAFE_CONFIGURE': '1'}shell=Falselogger=timeout=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3.12.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', 'FORCE_UNSAFE_CONFIGURE': '1'} and shell False warning: extra tokens at the end of %endif directive in line 709: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1773619200 warning: extra tokens at the end of %endif directive in line 938: %endif # with gdb_hooks Wrote: /builddir/build/SRPMS/python3.12-3.12.13-1.an23.src.rpm RPM build warnings: extra tokens at the end of %endif directive in line 709: %endif # with debug_build extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 938: %endif # with gdb_hooks Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3.12.spec'], chrootPath='/var/lib/mock//dist-an23.5-AImanager-build-536908-82836/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', 'FORCE_UNSAFE_CONFIGURE': '1'}shell=Falselogger=timeout=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3.12.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', 'FORCE_UNSAFE_CONFIGURE': '1'} and shell False warning: extra tokens at the end of %endif directive in line 709: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 938: %endif # with gdb_hooks Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1773619200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Vsn2EK + umask 022 + cd /builddir/build/BUILD + /usr/lib/rpm/anolis/gpgverify --keyring=/builddir/build/SOURCES/Yhg1s.gpg --signature=/builddir/build/SOURCES/Python-3.12.13.tar.xz.asc --data=/builddir/build/SOURCES/Python-3.12.13.tar.xz gpgv: Signature made Tue Mar 3 08:11:53 2026 EST gpgv: using RSA key 7169605F62C751356D054A26A821E680E5FA6305 gpgv: Good signature from "Thomas Wouters " gpgv: aka "Thomas Wouters " gpgv: aka "Thomas Wouters " + cd /builddir/build/BUILD + rm -rf Python-3.12.13 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Python-3.12.13.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.12.13 + /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.12-3.12.13 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/bin/git am --reject -q + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00251-change-user-install-location.patch 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/lib/rpm/rpmuncompress /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/lib/rpm/rpmuncompress /builddir/build/SOURCES/00460-gh-132415-update-vendored-setuptools-in-lib-test-wheeldata.patch + /usr/bin/git am --reject -q Checking patch Lib/test/support/__init__.py... Checking patch Lib/test/test_cext/__init__.py... Checking patch Lib/test/test_cppext/__init__.py... Checking patch Lib/test/test_cppext/setup.py... Checking patch Lib/test/test_peg_generator/test_c_parser.py... Applied patch Lib/test/support/__init__.py cleanly. Applied patch Lib/test/test_cext/__init__.py cleanly. Applied patch Lib/test/test_cppext/__init__.py cleanly. Applied patch Lib/test/test_cppext/setup.py cleanly. Applied patch Lib/test/test_peg_generator/test_c_parser.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00461-downstream-only-install-wheel-in-test-venvs-when-setuptools-71.patch + /usr/bin/git am --reject -q Checking patch Lib/test/support/__init__.py... Applied patch Lib/test/support/__init__.py cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00462-fix-pyssl_seterror-handling-ssl_error_syscall.patch + /usr/bin/git am --reject -q Checking patch Lib/test/test_ssl.py... Checking patch Misc/NEWS.d/next/Library/2024-02-18-09-50-31.gh-issue-115627.HGchj0.rst... Checking patch Modules/_ssl.c... Applied patch Lib/test/test_ssl.py cleanly. Applied patch Misc/NEWS.d/next/Library/2024-02-18-09-50-31.gh-issue-115627.HGchj0.rst cleanly. Applied patch Modules/_ssl.c cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00464-enable-pac-and-bti-protections-for-aarch64.patch + /usr/bin/git am --reject -q Checking patch Python/asm_trampoline.S... Checking patch Python/asm_trampoline_aarch64.h... Applied patch Python/asm_trampoline.S cleanly. Applied patch Python/asm_trampoline_aarch64.h cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00474-cve-2025-15366.patch + /usr/bin/git am --reject -q Checking patch Lib/imaplib.py... Checking patch Lib/test/test_imaplib.py... Checking patch Misc/NEWS.d/next/Security/2026-01-16-11-41-06.gh-issue-143921.AeCOor.rst... Applied patch Lib/imaplib.py cleanly. Applied patch Lib/test/test_imaplib.py cleanly. Applied patch Misc/NEWS.d/next/Security/2026-01-16-11-41-06.gh-issue-143921.AeCOor.rst cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/00475-cve-2025-15367.patch + /usr/bin/git am --reject -q Checking patch Lib/poplib.py... Checking patch Lib/test/test_poplib.py... Checking patch Misc/NEWS.d/next/Security/2026-01-16-11-43-47.gh-issue-143923.DuytMe.rst... Applied patch Lib/poplib.py cleanly. Applied patch Lib/test/test_poplib.py cleanly. Applied patch Misc/NEWS.d/next/Security/2026-01-16-11-43-47.gh-issue-143923.DuytMe.rst cleanly. + '[' -f /usr/lib/rpm/pythonbundles.py ']' + /usr/lib/rpm/pythonbundles.py /dev/fd/63 --compare-with ' Provides: bundled(python3dist(cachecontrol)) = 0.14.1 Provides: bundled(python3dist(certifi)) = 2024.8.30 Provides: bundled(python3dist(distlib)) = 0.3.9 Provides: bundled(python3dist(distro)) = 1.9 Provides: bundled(python3dist(idna)) = 3.10 Provides: bundled(python3dist(msgpack)) = 1.1 Provides: bundled(python3dist(packaging)) = 24.2 Provides: bundled(python3dist(platformdirs)) = 4.3.6 Provides: bundled(python3dist(pygments)) = 2.18 Provides: bundled(python3dist(pyproject-hooks)) = 1.2 Provides: bundled(python3dist(requests)) = 2.32.3 Provides: bundled(python3dist(resolvelib)) = 1.0.1 Provides: bundled(python3dist(rich)) = 13.9.4 Provides: bundled(python3dist(setuptools)) = 70.3 Provides: bundled(python3dist(tomli)) = 2.2.1 Provides: bundled(python3dist(truststore)) = 0.10 Provides: bundled(python3dist(typing-extensions)) = 4.12.2 Provides: bundled(python3dist(urllib3)) = 1.26.20 ' ++ unzip -p Lib/ensurepip/_bundled/pip-25.0.1-py3-none-any.whl pip/_vendor/vendor.txt /usr/lib/rpm/pythonbundles.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version + /usr/lib/rpm/pythonbundles.py /dev/fd/63 --compare-with ' Provides: bundled(python3dist(packaging)) = 23 ' ++ unzip -p Lib/test/wheeldata/wheel-0.40.0-py3-none-any.whl wheel/vendored/vendor.txt /usr/lib/rpm/pythonbundles.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version + /usr/lib/rpm/pythonbundles.py /dev/fd/63 --compare-with ' Provides: bundled(python3dist(autocommand)) = 2.2.2 Provides: bundled(python3dist(backports-tarfile)) = 1.2 Provides: bundled(python3dist(importlib-metadata)) = 8 Provides: bundled(python3dist(inflect)) = 7.3.1 Provides: bundled(python3dist(jaraco-collections)) = 5.1 Provides: bundled(python3dist(jaraco-context)) = 5.3 Provides: bundled(python3dist(jaraco-functools)) = 4.0.1 Provides: bundled(python3dist(jaraco-text)) = 3.12.1 Provides: bundled(python3dist(more-itertools)) = 10.3 Provides: bundled(python3dist(packaging)) = 24.2 Provides: bundled(python3dist(platformdirs)) = 4.2.2 Provides: bundled(python3dist(tomli)) = 2.0.1 Provides: bundled(python3dist(typeguard)) = 4.3 Provides: bundled(python3dist(typing-extensions)) = 4.12.2 Provides: bundled(python3dist(wheel)) = 0.45.1 Provides: bundled(python3dist(zipp)) = 3.19.2 ' ++ unzip -l Lib/test/wheeldata/setuptools-79.0.1-py3-none-any.whl ++ grep -E _vendor/.+dist-info/RECORD ++ sed -E 's@^.*/([^-]+)-([^-]+)\.dist-info/.*$@\1==\2@' /usr/lib/rpm/pythonbundles.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version + rm Lib/ensurepip/_bundled/pip-25.0.1-py3-none-any.whl + rm Lib/test/wheeldata/setuptools-79.0.1-py3-none-any.whl + rm Lib/test/wheeldata/wheel-0.40.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.ZGAiXh + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd Python-3.12.13 + export HAS_GIT=not-found + HAS_GIT=not-found + autoconf + autoheader ++ pwd + topdir=/builddir/build/BUILD/Python-3.12.13 + export 'CFLAGS= -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + CFLAGS=' -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + export 'CFLAGS_NODIST=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -D_GNU_SOURCE -fPIC -fwrapv' + CFLAGS_NODIST='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -D_GNU_SOURCE -fPIC -fwrapv' + export 'CXXFLAGS= -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + CXXFLAGS=' -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' ++ pkg-config --cflags-only-I libffi + export CPPFLAGS= + CPPFLAGS= + export 'OPT= -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + OPT=' -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + export LINKCC=gcc + LINKCC=gcc ++ pkg-config --cflags openssl + export 'CFLAGS= -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d ' + CFLAGS=' -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d ' ++ pkg-config --libs-only-L openssl + export 'LDFLAGS= -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 ' + LDFLAGS=' -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 ' ++ pkg-config --libs-only-L openssl + export 'LDFLAGS_NODIST=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -g ' + LDFLAGS_NODIST='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -g ' + BuildPython debug '--without-ensurepip --with-pydebug' '-O0 -Wno-cpp' + ConfName=debug STARTING: BUILD OF PYTHON FOR CONFIGURATION: 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.12.13/build/debug ~/build/BUILD/Python-3.12.13 + export 'DFLAGS= ' + DFLAGS=' ' + CFLAGS=' -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d ' + export CFLAGS + CXXFLAGS=' -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS=' -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + '[' 1 = 1 ']' +++ dirname /builddir/build/BUILD/Python-3.12.13/configure ++ find /builddir/build/BUILD/Python-3.12.13 -name config.guess -o -name config.sub + for i in $(find $(dirname $topdir/configure) -name config.guess -o -name config.sub) ++ basename /builddir/build/BUILD/Python-3.12.13/config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f /builddir/build/BUILD/Python-3.12.13/config.guess ++ basename /builddir/build/BUILD/Python-3.12.13/config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess /builddir/build/BUILD/Python-3.12.13/config.guess '/usr/lib/rpm/anolis/config.guess' -> '/builddir/build/BUILD/Python-3.12.13/config.guess' + for i in $(find $(dirname $topdir/configure) -name config.guess -o -name config.sub) ++ basename /builddir/build/BUILD/Python-3.12.13/config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f /builddir/build/BUILD/Python-3.12.13/config.sub ++ basename /builddir/build/BUILD/Python-3.12.13/config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub /builddir/build/BUILD/Python-3.12.13/config.sub '/usr/lib/rpm/anolis/config.sub' -> '/builddir/build/BUILD/Python-3.12.13/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh ++ dirname /builddir/build/BUILD/Python-3.12.13/configure + /usr/lib/rpm/anolis/force-as-needed-for-shared-lib-in-libtool /builddir/build/BUILD/Python-3.12.13 Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/anolis/fix-libtool-ltmain-from-overlinking ++ dirname /builddir/build/BUILD/Python-3.12.13/configure + /usr/lib/rpm/anolis/fix-libtool-from-moving-options-after-libs /builddir/build/BUILD/Python-3.12.13 + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + /builddir/build/BUILD/Python-3.12.13/configure --build=riscv64-Anolis-linux --host=riscv64-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-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 for git... not-found checking build system type... riscv64-Anolis-linux-gnu checking host system type... riscv64-Anolis-linux-gnu checking for Python interpreter freezing... ./_bootstrap_python checking for python3.12... no checking for python3.12... no checking for python3.11... python3.11 checking Python for regen version... Python 3.11.6 checking for riscv64-Anolis-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... "linux" checking for riscv64-Anolis-linux-gcc... gcc checking whether the C compiler works... no configure: error: in `/builddir/build/BUILD/Python-3.12.13/build/debug': configure: error: C compiler cannot create executables See `config.log' for more details error: Bad exit status from /var/tmp/rpm-tmp.ZGAiXh (%build) RPM build warnings: RPM build errors: extra tokens at the end of %endif directive in line 709: %endif # with debug_build extra tokens at the end of %endif directive in line 897: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 938: %endif # with gdb_hooks Bad exit status from /var/tmp/rpm-tmp.ZGAiXh (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3.12.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 riscv64 --nodeps /builddir/build/SPECS/python3.12.spec