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-112984: Fix link error on free-threaded Windows build#114455

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
zooba merged 1 commit intopython:mainfromcolesbury:gh-112984-peggen
Jan 23, 2024

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commentedJan 22, 2024
edited by bedevere-appbot
Loading

The test_peg_generator test tried to link the python313_d.lib library, which failed because the library is now named python313t_d.lib. The underlying problem is that the cmd.compiler attribute was not set when we call get_libraries() from distutils.

itamaro reacted with heart emoji
The test_peg_generator test tried to link the python313_d.lib library,which failed because the library is now named python313t_d.lib. Theunderlying problem is that the "compiler" attribute was not set whenwe call get_libraries() from distutils.
@colesbury
Copy link
ContributorAuthor

!buildbot nogil

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@colesbury for commitccfc91b 🤖

The command will test the builders whose names match following regular expression:nogil

The builders matched are:

  • AMD64 Ubuntu NoGIL Refleaks PR
  • x86-64 MacOS Intel ASAN NoGIL PR
  • AMD64 Windows Server 2022 NoGIL PR
  • x86-64 MacOS Intel NoGIL PR
  • ARM64 MacOS M1 Refleaks NoGIL PR
  • ARM64 MacOS M1 NoGIL PR
  • AMD64 Ubuntu NoGIL PR

@colesbury
Copy link
ContributorAuthor

cc@itamaro

itamaro reacted with thumbs up emoji

@colesbury
Copy link
ContributorAuthor

The relevant piece of distutils is this code:

https://github.com/pypa/distutils/blob/fb5c5704962cd3f40c69955437da9a88f4b28567/distutils/command/build_ext.py#L745-L758

Thecompiler attribute is normally set byrun(), but we're decomposing the distutils command intest_peg_generator so it was not set. Because it's still set toNone, distutils thinks we are not using MSVC and sticks in a manual library name that's not correct for the free-threaded build.

@colesbury
Copy link
ContributorAuthor

We might also want to fix the library name upstream in distutils for the free-threaded build on non-MSVC compilers.

Copy link
Contributor

@itamaroitamaro left a comment

Choose a reason for hiding this comment

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

thanks for the quick fix, Sam!

is this test not covered by the free-threaded CI? only buildbot?

@colesbury
Copy link
ContributorAuthor

Yes,test_peg_generator is slow so it's only run by the build bots, not any of the GitHub actions runners.

itamaro reacted with thumbs up emoji

@itamaro
Copy link
Contributor

the buildot is green on this PR (https://buildbot.python.org/all/#/builders/1295/builds/26)

@zooba
Copy link
Member

LGTM

@colesbury
Copy link
ContributorAuthor

Thanks@zooba - would you please merge this PR?

@zoobazooba merged commit5f19978 intopython:mainJan 23, 2024
@colesburycolesbury deleted the gh-112984-peggen branchJanuary 24, 2024 17:28
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…nGH-114455)The test_peg_generator test tried to link the python313_d.lib library,which failed because the library is now named python313t_d.lib. Theunderlying problem is that the "compiler" attribute was not set whenwe call get_libraries() from distutils.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…nGH-114455)The test_peg_generator test tried to link the python313_d.lib library,which failed because the library is now named python313t_d.lib. Theunderlying problem is that the "compiler" attribute was not set whenwe call get_libraries() from distutils.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@itamaroitamaroitamaro approved these changes

@zoobazoobaAwaiting requested review from zooba

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou 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

@colesbury@bedevere-bot@itamaro@zooba

[8]ページ先頭

©2009-2025 Movatter.jp