Description of problem: python3.11-3.11.0~a2-1.fc36 does not build successfully --without bootstrap when the previous build is installed. Version-Release number of selected component (if applicable): python3.11-3.11.0~a2-1.fc36 How reproducible: Easy. Steps to Reproduce: Option 1. Mockbuild python3.11 --without bootstrap. Option 2. Edit the specfile, replace "%bcond_without bootstrap" with "%bcond_with bootstrap", submit a Koji rawhide scratch build. Option 3. The same as (2) but submit a Copr build, e.g. into @python/python3.11. Actual results: Build fails. Expected results: It should build. Additional info: Scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=79079211 Log fragment: gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -g -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -g -o Programs/_freeze_module Programs/_freeze_module.o Modules/getbuildinfo.o Parser/token.o Parser/pegen.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpreteridobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/Python-tokenize.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/codecs.o Python/compile.o Python/context.o Python/dynamic_annotations.o Python/errors.o Python/frame.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/initconfig.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/specialize.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/suggestions.o Python/dynload_shlib.o Python/pydtrace.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/_collectionsmodule.o Modules/_abc.o Modules/_codecsmodule.o Modules/_functoolsmodule.o Modules/_io/_iomodule.o Modules/_io/iobase.o Modules/_io/fileio.o Modules/_io/bytesio.o Modules/_io/bufferedio.o Modules/_io/textio.o Modules/_io/stringio.o Modules/_localemodule.o Modules/_operator.o Modules/signalmodule.o Modules/_sre.o Modules/_stat.o Modules/symtablemodule.o Modules/_threadmodule.o Modules/_tracemalloc.o Modules/_weakref.o Modules/atexitmodule.o Modules/errnomodule.o Modules/faulthandler.o Modules/itertoolsmodule.o Modules/posixmodule.o Modules/pwdmodule.o Modules/timemodule.o Modules/xxsubtype.o -ldl -lm Programs/_freeze_module abc /builddir/build/BUILD/Python-3.11.0a2/Lib/abc.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/abc.h Programs/_freeze_module io /builddir/build/BUILD/Python-3.11.0a2/Lib/io.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/io.h Programs/_freeze_module zipimport /builddir/build/BUILD/Python-3.11.0a2/Lib/zipimport.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/zipimport.h Programs/_freeze_module _sitebuiltins /builddir/build/BUILD/Python-3.11.0a2/Lib/_sitebuiltins.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/_sitebuiltins.h Programs/_freeze_module importlib._bootstrap_external /builddir/build/BUILD/Python-3.11.0a2/Lib/importlib/_bootstrap_external.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/importlib._bootstrap_external.h Programs/_freeze_module genericpath /builddir/build/BUILD/Python-3.11.0a2/Lib/genericpath.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/genericpath.h Programs/_freeze_module codecs /builddir/build/BUILD/Python-3.11.0a2/Lib/codecs.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/codecs.h Programs/_freeze_module importlib._bootstrap /builddir/build/BUILD/Python-3.11.0a2/Lib/importlib/_bootstrap.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/importlib._bootstrap.h Programs/_freeze_module _collections_abc /builddir/build/BUILD/Python-3.11.0a2/Lib/_collections_abc.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/_collections_abc.h Programs/_freeze_module posixpath /builddir/build/BUILD/Python-3.11.0a2/Lib/posixpath.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/posixpath.h Programs/_freeze_module stat /builddir/build/BUILD/Python-3.11.0a2/Lib/stat.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/stat.h Programs/_freeze_module ntpath /builddir/build/BUILD/Python-3.11.0a2/Lib/ntpath.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/ntpath.h Programs/_freeze_module __hello__ /builddir/build/BUILD/Python-3.11.0a2/Lib/__hello__.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/__hello__.h Programs/_freeze_module __phello__ /builddir/build/BUILD/Python-3.11.0a2/Lib/__phello__/__init__.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/__phello__.h Programs/_freeze_module __phello__.ham /builddir/build/BUILD/Python-3.11.0a2/Lib/__phello__/ham/__init__.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/__phello__.ham.h Programs/_freeze_module __phello__.ham.eggs /builddir/build/BUILD/Python-3.11.0a2/Lib/__phello__/ham/eggs.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/__phello__.ham.eggs.h Programs/_freeze_module __phello__.spam /builddir/build/BUILD/Python-3.11.0a2/Lib/__phello__/spam.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/__phello__.spam.h Programs/_freeze_module frozen_only /builddir/build/BUILD/Python-3.11.0a2/Tools/freeze/flag.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/frozen_only.h python3.11 /builddir/build/BUILD/Python-3.11.0a2/Tools/scripts/freeze_modules.py ERROR: missing _freeze_module make: *** [Makefile:875: regen-frozen] Error 1 make: *** Waiting for unfinished jobs.... Programs/_freeze_module site /builddir/build/BUILD/Python-3.11.0a2/Lib/site.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/site.h Programs/_freeze_module os /builddir/build/BUILD/Python-3.11.0a2/Lib/os.py /builddir/build/BUILD/Python-3.11.0a2/Python/frozen_modules/os.h error: Bad exit status from /var/tmp/rpm-tmp.L1XpPz (%build)
I've reported this to upstream: https://bugs.python.org/issue45866
I have tried to build the main branch as an RPM and this problem seems fixed. Leaving open so we don't forget to actually flip the bcond with alpha 3.
The bcond was flipped in alpha 3, so I am closing this. https://src.fedoraproject.org/rpms/python3.11/c/9ff3c6864390e76a229254144b1de62b8714667b?branch=rawhide