Skip to content

Fix Queue.qsize() on Linux cross-compilation#978

Merged
jjhelmus merged 1 commit intoastral-sh:mainfrom
mmangkad:fix-qsize-linux-cross-compilation
Feb 10, 2026
Merged

Fix Queue.qsize() on Linux cross-compilation#978
jjhelmus merged 1 commit intoastral-sh:mainfrom
mmangkad:fix-qsize-linux-cross-compilation

Conversation

@mmangkad
Copy link
Contributor

Fixes #977.

multiprocessing.Queue.qsize() raises NotImplementedError on Linux cross-compiled builds because CPython's configure
defaults to ac_cv_broken_sem_getvalue=yes when cross-compiling. See configure.ac.

This affects all Linux cross-compiled builds. Fix by setting ac_cv_broken_sem_getvalue=no for Linux targets (macOS excluded as it genuinely has broken sem_getvalue).

cc @jjhelmus @zanieb

@jjhelmus
Copy link
Contributor

LGTM, thanks @mmangkad

@jjhelmus jjhelmus merged commit a003a67 into astral-sh:main Feb 10, 2026
978 of 981 checks passed
@mmangkad mmangkad deleted the fix-qsize-linux-cross-compilation branch February 10, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CPython 3.11.11 from uv fails on multiprocessing.Queue().qsize() (aarch64)

2 participants