10000 Apple LTO distributions may not weakly reference symbols on CPython 3.10+ · Issue #216 · astral-sh/python-build-standalone · GitHub
[go: up one dir, main page]

Skip to content
Apple LTO distributions may not weakly reference symbols on CPython 3.10+ #216
@indygreg

Description

@indygreg

When attempting to upgrade GitHub Actions runners and building MacOS SDKs past the old versions we're currently using, various builds started failing validation because our custom code for validating that all strongly bound symbols were present in target MacOS SDK versions was failing.

Strangely, the failure was only occurring on LTO optimized (either the lto or pgo+lto optimization level) builds of CPython 3.10 or newer. Not 3.8 or 3.9. Nor any non-LTO build configuration on 3.10+.

The most likely symbols to be strongly bound instead of weak are mknodat and mkfifoat. However, pretty much every CPython weakly bound symbol is affected once the MacOS SDK is upgraded. (PR #161 suggested disabling mknodat and mkfifoat globally as a workaround but it turns out this problem is beyond those two symbols.)

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

      0