Skip to content

[3.13] gh-129259: Fix AIX build failures caused by incorrect struct alignment#144917

Open
rsmkaminskas wants to merge 1 commit intopython:3.13from
rsmkaminskas:gh-129259
Open

[3.13] gh-129259: Fix AIX build failures caused by incorrect struct alignment#144917
rsmkaminskas wants to merge 1 commit intopython:3.13from
rsmkaminskas:gh-129259

Conversation

@rsmkaminskas
Copy link

@rsmkaminskas rsmkaminskas commented Feb 17, 2026

This PR fixes the AIX build failures mentioned in issue #129259.

Note In 3.14, the _Py_BackoffCounter bit field structure was replaced with a uint16_t

…ignment by adding AIX-specific #pragma pack directives.
@python-cla-bot
Copy link

python-cla-bot bot commented Feb 17, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@rsmkaminskas rsmkaminskas changed the title gh-129259: Fix AIX build failures caused by incorrect struct alignment [3.13] gh-129259: Fix AIX build failures caused by incorrect struct alignment Feb 17, 2026
@rsmkaminskas
Copy link
Author

Hi @encukou , could you please review this PR?

@encukou
Copy link
Member

encukou commented Feb 18, 2026

Oh, wait, I missed that this only fails on 3.13.
We generally don't backport fixes to maintenance branches, the same would apply to a 3.13-only fix. But we can make an exception; and I guess we should, for this hard-to-diagnose issue.

@ayappanec, as the AIX expert, does this look good?

@ayappanec
Copy link
Contributor

I guess this issue happens with OpenXL compiler (IBM's clang compiler) which by default passes "-maltivec" that enforces strict alignment rules.
@encukou The changes looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants