Skip to content

Build Failure: RuntimeError: context has already been set in multiprocessing on Python 3.14Β #1796

@darky7669

Description

@darky7669

Plaintext
File "/home/darky/.cache/yay/openage-git/src/build/openage/main.py", line 178, in
multiprocessing.set_start_method('spawn')
File "/usr/lib/python3.14/multiprocessing/context.py", line 247, in set_start_method
raise RuntimeError('context has already been set')
RuntimeError: context has already been set
System Info
OS: Cachy OS

Python Version: 3.14.3

Compiler: GCC 15.2.1

Openage Version: 0.6.0.r197.g865bd548d-1

Technical Summary for Devs
It appears that in Python 3.14, the multiprocessing context is being initialized earlier than in previous versions. When openage/main.py calls set_start_method('spawn'), it triggers a RuntimeError because the method is not being called with force=True. This prevents the codegen_run from completing, which causes the CMake configuration to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions