Bug 2325194
Summary: | libnvme fails to build with Python 3.14: /usr/include/python3.14/pyport.h:629:35: error: missing ')' after "__has_attribute" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
Component: | libnvme | Assignee: | Tomáš Bžatek <tbzatek> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | ksurma, mhroncok, tbzatek, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libnvme-1.11.1-3.fc43 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2025-03-03 14:34:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2322407 |
Description
Karolina Surma
2024-11-11 14:04:02 UTC
Uhm, yes please, a patch would be welcome to move forward. I'm kinda overwhelmed by the amount of work at the moment (although still NVMe, different area). libnvme has #define fallthrough, Python 3.14 uses __attribute__((fallthrough)) now https://github.com/python/cpython/commit/12af8ec864225248c3d2916cb142a5e7ee36cbe2 Victor, does this create an incompatibility of the two codebases? > Victor, does this create an incompatibility of the two codebases?
Correct. If libnvme defines a "fallthrough" macro, the "#if _Py__has_attribute(fallthrough)" test in Python cannot work.
libnvme should undefine the "fallthrough" macro before including <Python.h>.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42. Fix available as libnvme-1.11.1-3.fc43 Feel free to reopen in case of any related issues. |