GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GH-137218: Update `make` for JIT stencils by savannahostrowski · Pull Request #137265 · python/cpython

Conversation

@savannahostrowski

@savannahostrowski savannahostrowski commented Jul 31, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This PR normalizes stencil names and then modifies the Makefile to select the appropriate JIT stencil header based on the host.

  • Issue: Main segfaults importing _pyrepl with low value for JUMP_BACKWARD_INITIAL_VALUE #137218

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@savannahostrowski
Fix make file to check for wildcard stencils
b359056
@savannahostrowski
savannahostrowski requested a review from brandtbucher July 31, 2025 04:11
@savannahostrowski
savannahostrowski requested review from corona10 and erlend-aasland as code owners July 31, 2025 04:11
@bedevere-app bedevere-app Bot added the awaiting core review label Jul 31, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Jul 31, 2025
Main segfaults importing _pyrepl with low value for JUMP_BACKWARD_INITIAL_VALUE #137218
Closed
@savannahostrowski savannahostrowski added skip news build The build process and cross-build topic-JIT labels Jul 31, 2025
@savannahostrowski
Merge branch 'main' into fix-jit-make
ba48cc7
@savannahostrowski

savannahostrowski commented Jul 31, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Fixes the segfault on my machine but feel free to test if we think there's anything dubious here. I opted to remove the autoconf substitution here since this seems pretty straightforward.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Fidget-Spinner
Fidget-Spinner approved these changes Jul 31, 2025
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Jul 31, 2025
@brandtbucher

brandtbucher commented Jul 31, 2025

Copy link
Copy Markdown
Member

Could we do jit_stencils*.h to catch both files with one pattern?

Also, does the PCbuild logic need to be updated? Or is it good?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@savannahostrowski
savannahostrowski force-pushed the fix-jit-make branch from eec5f75 to ba48cc7 Compare August 1, 2025 03:23
savannahostrowski added 4 commits July 31, 2025 20:34
@savannahostrowski
Use *
178cebd
@savannahostrowski
Merge branch 'main' into fix-jit-make
6c949c0
@savannahostrowski
Revert to wildcard keyword
332e596
@savannahostrowski
Merge branch 'fix-jit-make' of https://github.com/savannahostrowski/c…
f15b48a
…python into fix-jit-make
@savannahostrowski

savannahostrowski commented Aug 1, 2025

Copy link
Copy Markdown
Member Author

I'm no make expert, but based on my testing and what I've read, it seems like the wildcard keyword is required for proper glob expansion in Makefiles. It doesn't expand out in the same way as it would in a shell with * (see failed commits above 🫠 ). Windows should be good since we explicitly enumerate the stencils by platform.

That said...I...I am truly perplexed as I can no longer reproduce the segfault. The first commit from last night fixed the issue locally, so I know that this did solve the issue I was seeing, but...????

@brandtbucher Can you still repro?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@savannahostrowski
enumerate stencils
33a246b
@savannahostrowski
savannahostrowski requested a review from diegorusso as a code owner August 2, 2025 19:06
savannahostrowski added 4 commits August 2, 2025 12:07
@savannahostrowski
Update comment
6b467c1
@savannahostrowski
Fix rm
413bcfc
@savannahostrowski
Fix linux
c6f0390
@savannahostrowski
Update to use pc, since that is what it is it :)
ecf492f
savannahostrowski
savannahostrowski commented Aug 2, 2025
View reviewed changes
Comment thread .github/workflows/jit.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

savannahostrowski added 2 commits August 2, 2025 12:14
@savannahostrowski
fix typo
48e3dc1
@savannahostrowski
Fix if statements
f32f8a4
@savannahostrowski
Revert unknown
0ceca36
@savannahostrowski

savannahostrowski commented Aug 2, 2025

Copy link
Copy Markdown
Member Author

I know what the issue is here, will fix later.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

savannahostrowski added 4 commits August 3, 2025 15:12
@savannahostrowski
Fix match for linux platforms
93306d2
@savannahostrowski
Add deps
84b3cca
@savannahostrowski
Merge branch 'main' into fix-jit-make
ea86105
@savannahostrowski
Gracefully fail
d6a5582
@devdanzin

devdanzin commented Aug 4, 2025

Copy link
Copy Markdown
Member

I am truly perplexed as I can no longer reproduce the segfault.

I have the exact same problem, it suddenly stopped crashing and I haven't figured out a way to get into the segfaulting state ever since. So it seems normal for this abnormal issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@savannahostrowski
Merge branch 'main' into fix-jit-make
8f35e30
@savannahostrowski
savannahostrowski requested a review from AA-Turner as a code owner August 21, 2025 19:26
@savannahostrowski
Merge main
c002356
@savannahostrowski
savannahostrowski requested a review from emmatyping as a code owner September 19, 2025 08:15
@savannahostrowski
savannahostrowski merged commit 85c1ef6 into python:main Sep 19, 2025
@bedevere-app bedevere-app Bot removed the awaiting merge label Sep 19, 2025
@bedevere-bot

bedevere-bot commented Sep 19, 2025

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 FreeBSD 3.x (tier-3) has failed when building commit 85c1ef6.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1223/builds/7107) and take a look at the build logs.
  4. Check if the failure is related to this commit (85c1ef6) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1223/builds/7107

Summary of the results of the build (if available):

Click to see traceback logs
remote: Enumerating objects: 15, done.        
remote: Counting objects:   6% (1/15)        
remote: Counting objects:  13% (2/15)        
remote: Counting objects:  20% (3/15)        
remote: Counting objects:  26% (4/15)        
remote: Counting objects:  33% (5/15)        
remote: Counting objects:  40% (6/15)        
remote: Counting objects:  46% (7/15)        
remote: Counting objects:  53% (8/15)        
remote: Counting objects:  60% (9/15)        
remote: Counting objects:  66% (10/15)        
remote: Counting objects:  73% (11/15)        
remote: Counting objects:  80% (12/15)        
remote: Counting objects:  86% (13/15)        
remote: Counting objects:  93% (14/15)        
remote: Counting objects: 100% (15/15)        
remote: Counting objects: 100% (15/15), done.        
remote: Compressing objects:  20% (1/5)        
remote: Compressing objects:  40% (2/5)        
remote: Compressing objects:  60% (3/5)        
remote: Compressing objects:  80% (4/5)        
remote: Compressing objects: 100% (5/5)        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 8 (delta 7), reused 3 (delta 3), pack-reused 0 (from 0)        
From https://github.com/python/cpython
 * branch                    main       -> FETCH_HEAD
Note: switching to '85c1ef647751d18194bbc52eb2b1305871e03d10'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 85c1ef64775 GH-137218: Update `make` for JIT stencils (#137265)
Switched to and reset branch 'main'

make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3291: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3293: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3295: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3297: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3299: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3301: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3303: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3305: Invalid line type
make: Fatal errors encountered -- cannot continue

make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3291: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3293: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3295: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3297: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3299: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3301: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3303: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3305: Invalid line type
make: Fatal errors encountered -- cannot continue
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Sep 19, 2025

Copy link
Copy Markdown
Member

This change broke the build on FreeBSD: https://buildbot.python.org/#/builders/1223/builds/7107

make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3291: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3293: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3295: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3297: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3299: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3301: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3303: Invalid line type
make: "/buildbot/buildarea/3.x.ware-freebsd/build/Makefile" line 3305: Invalid line type
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@savannahostrowski

savannahostrowski commented Sep 19, 2025

Copy link
Copy Markdown
Member Author

Ah, sorry about that. CI didn't catch it. I understand what happened here. I'll open a PR to fix it.

vstinner reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@savannahostrowski savannahostrowski mentioned this pull request Sep 19, 2025
GH-137218: Fix Makefile to handle FreeBSD (fix for JIT stencil changes) #139170
Merged
@savannahostrowski savannahostrowski mentioned this pull request Oct 23, 2025
3.15.0a1 rewrites sysconfig-saved flags on make install #140454
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Fidget-Spinner Fidget-Spinner Fidget-Spinner approved these changes
@brandtbucher brandtbucher Awaiting requested review from brandtbucher brandtbucher is a code owner
@erlend-aasland erlend-aasland Awaiting requested review from erlend-aasland erlend-aasland is a code owner
@corona10 corona10 Awaiting requested review from corona10 corona10 is a code owner
@diegorusso diegorusso Awaiting requested review from diegorusso diegorusso is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@emmatyping emmatyping Awaiting requested review from emmatyping emmatyping is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

build The build process and cross-build skip news topic-JIT

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@savannahostrowski @brandtbucher @devdanzin @bedevere-bot @vstinner @Fidget-Spinner
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.