Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-125269: Use AC_LINK_IF_ELSE to detect if -latomic is needed #125416

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Oct 13, 2024

We previously used AC_RUN_IF_ELSE with a short test program to detect if -latomic is needed, but that requires choosing a specific default value when cross-compiling because the test program is not run if we are cross compiling. Some cross compilation targets like wasm32-emscripten do not support -latomic, while other cross compilation targets, like arm-linux-gnueabi require it.

We previously used `AC_RUN_IF_ELSE` with a short test program to detect
if `-latomic` is needed, but that requires choosing a specific default
value when cross-compiling because the test program is not run.
Some cross compilation targets like `wasm32-emscripten` do not support
`-latomic`, while other cross compilation targets, like
`arm-linux-gnueabi` require it.
@colesbury colesbury added needs backport to 3.13 bugs and security fixes 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Oct 13, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @colesbury for commit 5fb411b 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 13, 2024
@colesbury colesbury marked this pull request as ready for review October 13, 2024 22:08
Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, if the bots are ok with it 🤖🤖🤖

@vstinner
Copy link
Member

buildbot/AMD64 Fedora Stable Refleaks PR

It's an unrelated regression: #125451

buildbot/x86 Debian Installed with X PR
buildbot/x86 Debian Non-Debug with X PR

Known failure: #121938

buildbot/AMD64 Arch Linux TraceRefs PR

Another known issue: #125286

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's see how it goes.

@colesbury colesbury merged commit 8d42e2d into python:main Oct 15, 2024
110 of 115 checks passed
@miss-islington-app
Copy link

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@colesbury colesbury deleted the gh-125269-latomic branch October 15, 2024 00:09
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 15, 2024
…ded (pythonGH-125416)

We previously used `AC_RUN_IF_ELSE` with a short test program to detect
if `-latomic` is needed, but that requires choosing a specific default
value when cross-compiling because the test program is not run.
Some cross compilation targets like `wasm32-emscripten` do not support
`-latomic`, while other cross compilation targets, like
`arm-linux-gnueabi` require it.
(cherry picked from commit 8d42e2d)

Co-authored-by: Sam Gross <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 15, 2024

GH-125493 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 15, 2024
vstinner pushed a commit that referenced this pull request Oct 15, 2024
…eded (GH-125416) (#125493)

gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (GH-125416)

We previously used `AC_RUN_IF_ELSE` with a short test program to detect
if `-latomic` is needed, but that requires choosing a specific default
value when cross-compiling because the test program is not run.
Some cross compilation targets like `wasm32-emscripten` do not support
`-latomic`, while other cross compilation targets, like
`arm-linux-gnueabi` require it.
(cherry picked from commit 8d42e2d)

Co-authored-by: Sam Gross <[email protected]>
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.

4 participants