Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-109054: Don't use libatomic on cross-compilation#109211

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:libatomic_cross_compiler
Sep 10, 2023

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedSep 10, 2023
edited by bedevere-bot
Loading

configure no longer uses libatomic by default when Python is cross-compiled. The LIBATOMIC variable can be set manually in this case:

./configure LIBATOMIC="-latomic" (...)

@vstinner
Copy link
MemberAuthor

The LIBATOMIC variable can be set manually in this case: ./configure LIBATOMIC="-latomic" (...)

Should it be documented inhttps://docs.python.org/dev/using/configure.html?

cc@erlend-aasland

@vstinner
Copy link
MemberAuthor

@vstinner
Copy link
MemberAuthor

!buildbot wasm32-emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@vstinner for commitbed957b 🤖

The command will test the builders whose names match following regular expression:wasm32-emscripten

The builders matched are:

  • wasm32-emscripten node (dynamic linking) PR
  • wasm32-emscripten node (pthreads) PR
  • wasm32-emscripten browser (dynamic linking, no tests) PR

@vstinner
Copy link
MemberAuthor

The "Configure host Python" step now saysno for libatomic, as expected, good!

wasm32-emscripten node (dynamic linking) PR

checking whether libatomic is needed by <pyatomic.h>... no

wasm32-emscripten node (pthreads) PR

checking whether libatomic is needed by <pyatomic.h>... no

wasm32-emscripten browser (dynamic linking, no tests) PR

checking whether libatomic is needed by <pyatomic.h>... no

@hoodmane
Copy link
Contributor

Thanks@vstinner!

@vstinner
Copy link
MemberAuthor

test_threading failed on Windows x64: it's an unrelated known bug, see:#108987 (I proposed a fix). I re-ran the Windows x64 job.

configure no longer uses libatomic by default when Python iscross-compiled. The LIBATOMIC variable can be set manually in thiscase:    ./configure LIBATOMIC="-latomic" (...)
@vstinner
Copy link
MemberAuthor

I wrote PR#109224 to documentLIBATOMIC and other configuration variables.

@vstinnervstinner merged commit71b6e26 intopython:mainSep 10, 2023
@vstinnervstinner deleted the libatomic_cross_compiler branchSeptember 10, 2023 16:21
@erlend-aasland
Copy link
Contributor

LGTM!

]])],
[ac_cv_libatomic_needed=no],dnl build succeeded
[ac_cv_libatomic_needed=yes],dnl build failed
[ac_cv_libatomic_needed=no]) dnl cross compilation
Copy link
Contributor

Choose a reason for hiding this comment

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

We could have usedac_cv_libatomic_needed=n/a for a more accurate result message.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Oh, I didn't know this value.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I didn't know this value.

Actually, the value is up to you; it's not a magical GNU Autoconf value :) See docs forAC_CACHE_CHECK. The signature for that macro is:

AC_CACHE_CHECK (message, cache-id, commands-to-set-it)

Quoting the docs:

It callsAC_MSG_CHECKING for message, thenAC_CACHE_VAL with thecache-id and commands arguments, andAC_MSG_RESULT withcache-id.

In out case,cache-id isac_cv_libatomic_needed. Whatever we set it to will be displayed to the user at the end of the check (via the implicitAC_MSG_RESULT call). So if we setac_cv_libatomic_needed ton/a, the user should see this when cross-compiling:

checking whether libatomic is needed by <pyatomic.h>... n/a

Currently, the user will see this when cross-compiling:

checking whether libatomic is needed by <pyatomic.h>... no

The "no" may lead the user to incorrectly assume thatconfigure actually checked whether libatomic was needed (and thatconfigure concluded it was not).

I think it may be worth it to adjust this message. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, my suggestion is made moot by#109344

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

Reviewers

@erlend-aaslanderlend-aaslanderlend-aasland left review comments

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner@bedevere-bot@hoodmane@erlend-aasland

[8]ページ先頭

©2009-2025 Movatter.jp