Summary: | dev-python/pypy3: ctypes broken with dev-libs/libffi[debug] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ionen, mgorny, sam, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://foss.heptapod.net/pypy/pypy/-/issues/3933 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 898670 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2023-05-06 18:39:31 UTC
Created attachment 861243 [details]
build.log
build log and emerge --info
I can't reproduce. Can you modify the ebuild to pass `epytest -s tests` locally, and see whether it gives you a specific error? It looks like there is an assertion failure on libffi: pypy3 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:tavern -s tests =========================================================================== test session starts =========================================================================== platform linux -- Python 3.9.16[pypy-7.3.11-final], pytest-7.3.1, pluggy-1.0.0 -- /var/tmp/portage/dev-python/freetype-py-2.4.0/work/freetype-py-2.4.0-pypy3/install/usr/bin/pypy3 cachedir: .pytest_cache rootdir: /var/tmp/portage/dev-python/freetype-py-2.4.0/work/freetype-py-2.4.0 collecting ... ASSERTION FAILURE: (!isvariadic) || (nfixedargs >= 1) at /var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4/src/prep_cif.c:121 Fatal Python error: Aborted Can reproduce with libffi[debug] Well, this package is using ctypes, so either it's a bug in dev-lang/python or libffi itself, I guess. Or perhaps, a wrong use of ctypes that triggers directly in libffi instead of being caught by CPython? (In reply to Michał Górny from comment #5) > ... bug in dev-lang/python ... Only happens with pypy3 that I can see. Reported to pypy first at https://foss.heptapod.net/pypy/pypy/-/issues/3933. |