René's URL Explorer Experiment


Title: LLVM 22 clang-cl on Windows fails for jit builds · Issue #146210 · python/cpython · GitHub

Open Graph Title: LLVM 22 clang-cl on Windows fails for jit builds · Issue #146210 · python/cpython

X Title: LLVM 22 clang-cl on Windows fails for jit builds · Issue #146210 · python/cpython

Description: Bug report Bug description: When using https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.1 and build.bat --experimental-jit-off -p x64 "/p:PlatformToolset=ClangCL" "/p:LLVMInstallDir=D:\dev\cpython\externals\llvm-22.1.1" "/p...

Open Graph Description: Bug report Bug description: When using https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.1 and build.bat --experimental-jit-off -p x64 "/p:PlatformToolset=ClangCL" "/p:LLVMInstallDir=D...

X Description: Bug report Bug description: When using https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.1 and build.bat --experimental-jit-off -p x64 "/p:PlatformToolset=ClangCL" "/p:L...

Opengraph URL: https://github.com/python/cpython/issues/146210

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LLVM 22 clang-cl on Windows fails for jit builds","articleBody":"# Bug report\n\n### Bug description:\n\nWhen using https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.1 and\n```\nbuild.bat  --experimental-jit-off -p x64 \"/p:PlatformToolset=ClangCL\" \"/p:LLVMInstallDir=D:\\dev\\cpython\\externals\\llvm-22.1.1\" \"/p:LLVMToolsVersion=22\"\n```\nto build the interpreter, building the stencils fails:\n```\nC:\\Program Files\\Microsoft Visual Studio\\18\\Professional\\VC\\Tools\\MSVC\\14.50.35717\\include\\vcruntime.h(399,51): error G58EA42A4: unknown type name 'uintptr_t'; did you mean 'intptr_t'? [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files\\Microsoft Visual Studio\\18\\Professional\\VC\\Tools\\MSVC\\14.50.35717\\include\\vcruntime.h(400,67): error G58EA42A4: unknown type name 'uintptr_t'; did you mean 'intptr_t'? [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files\\Microsoft Visual Studio\\18\\Professional\\VC\\Tools\\MSVC\\14.50.35717\\include\\vcruntime.h(404,8): error G58EA42A4: unknown type name 'uintptr_t'; did you mean 'intptr_t'? [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt.h(380,16): error G58EA42A4: unknown type name 'uintptr_t'; did you mean 'intptr_t'? [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(277,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(286,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(295,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(303,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(317,39): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(332,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(348,43): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(365,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(379,39): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(393,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(406,39): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(420,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(435,43): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(451,49): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\corecrt_wstdio.h(464,39): error G58EA42A4: unknown type name 'va_list' [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\nEXEC : fatal error : too many errors emitted, stopping now [-ferror-limit=] [D:\\dev\\cpython\\PCbuild\\pythoncore.vcxproj]\n```\n\nThis is because during building the interpreter, the respective include path of clang is [smuggled](https://github.com/python/cpython/pull/138452#issuecomment-3604153373) into the `INCLUDE` environment variable[^1]:\n```\nINCLUDE=D:\\dev\\cpython\\externals\\llvm-22.1.1\\llvm-21.1.4.0\\lib\\clang\\22\\include;\u003cother include paths>\n```\nand the clang\nhttps://github.com/python/cpython/blob/2f4eb34bd23d57d38f81da561e889c60fca244cd/Tools/jit/_llvm.py#L13-L14\nused to build the jit stencils picks it up. Since these are two different versions, the hiccup is no surprise (but that it manifests in errors in `vcruntime` and `ucrt` is).\n\nInstead of tying the two LLVM versions together like discussed in https://github.com/python/cpython/pull/138452, I now rather think it would be better to just empty[^2] the `INCLUDE` variable when running `Tools\\jit\\build.py`. Either by adding `EnvironmentVariables=\"INCLUDE=\"` to\nhttps://github.com/python/cpython/blob/9f9faa2d1a31e6d1d6271efa834b955f4acd53ee/PCbuild/regen.targets#L132\nor by adapting `Tools\\jit\\build.py`.\n\n@zooba, @Fidget-Spinner, @savannahostrowski: WDYT? I'd happily create a PR if this seems the correct approach to you.\n\n[^1]: I think `MSBuild support for LLVM (clang-cl) toolset does this\n[^2]: I've tested locally that this fixes building the jit stencils.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-146338\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/chris-eibl","@type":"Person","name":"chris-eibl"},"datePublished":"2026-03-20T14:03:35Z","url":"https://github.com/python/cpython/issues/146210"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:94496e24-4d40-b19e-655b-50fca04f75e5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D44:EA06E:3EB1FB0:4F9E995:6B01F930
html-safe-noncecc3082772b980852ad145df07e89d4fac61ebe5e072721cf311a0bddad7f7544
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDQ0OkVBMDZFOjNFQjFGQjA6NEY5RTk5NTo2QjAxRjkzMCIsInZpc2l0b3JfaWQiOiI3ODc2MjM4NTIxMDA5MzA1OTA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac47ec17d35f4b05579c2d6b0d943982bda2ccfbe7bc95d42965bff7b415be1d76
hovercard-subject-tagissue:4108071232
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/146210/issue_layout
twitter:imagehttps://opengraph.githubassets.com/61145589c472b8a890cf7a8138ae18dcbd785df9aa7bec5e9f4858fd06d0cd2d/python/cpython/issues/146210
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/61145589c472b8a890cf7a8138ae18dcbd785df9aa7bec5e9f4858fd06d0cd2d/python/cpython/issues/146210
og:image:altBug report Bug description: When using https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.1 and build.bat --experimental-jit-off -p x64 "/p:PlatformToolset=ClangCL" "/p:LLVMInstallDir=D...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechris-eibl
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/146210#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F146210
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F146210
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/146210
Reloadhttps://github.com/python/cpython/issues/146210
Reloadhttps://github.com/python/cpython/issues/146210
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/146210
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/146210
LLVM 22 clang-cl on Windows fails for jit buildshttps://github.com/python/cpython/issues/146210#top
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
topic-JIThttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-JIT%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/chris-eibl
chris-eiblhttps://github.com/chris-eibl
on Mar 20, 2026https://github.com/python/cpython/issues/146210#issue-4108071232
https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.1https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.1
smuggledhttps://github.com/python/cpython/pull/138452#issuecomment-3604153373
1https://github.com/python/cpython/issues/146210#user-content-fn-1-defa31b855567e458521ac4983a792ff
cpython/Tools/jit/_llvm.pyhttps://github.com/python/cpython/blob/2f4eb34bd23d57d38f81da561e889c60fca244cd/Tools/jit/_llvm.py#L13-L14
2f4eb34https://github.com/python/cpython/commit/2f4eb34bd23d57d38f81da561e889c60fca244cd
#138452https://github.com/python/cpython/pull/138452
2https://github.com/python/cpython/issues/146210#user-content-fn-2-defa31b855567e458521ac4983a792ff
cpython/PCbuild/regen.targetshttps://github.com/python/cpython/blob/9f9faa2d1a31e6d1d6271efa834b955f4acd53ee/PCbuild/regen.targets#L132
9f9faa2https://github.com/python/cpython/commit/9f9faa2d1a31e6d1d6271efa834b955f4acd53ee
@zoobahttps://github.com/zooba
@Fidget-Spinnerhttps://github.com/Fidget-Spinner
@savannahostrowskihttps://github.com/savannahostrowski
GH-146210: Fix building the jit stencils on Windows when the interpreter is built with a different clang version #146338https://github.com/python/cpython/pull/146338
↩https://github.com/python/cpython/issues/146210#user-content-fnref-1-defa31b855567e458521ac4983a792ff
↩https://github.com/python/cpython/issues/146210#user-content-fnref-2-defa31b855567e458521ac4983a792ff
chris-eiblhttps://github.com/chris-eibl
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
on Mar 20, 2026https://github.com/python/cpython/issues/146210#event-23753430727
aiskhttps://github.com/aisk
topic-JIThttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-JIT%22
on Mar 21, 2026https://github.com/python/cpython/issues/146210#event-23774204159
https://github.com/zooba
zoobahttps://github.com/zooba
on Mar 23, 2026https://github.com/python/cpython/issues/146210#issuecomment-4111597727
https://github.com/chris-eibl
chris-eiblhttps://github.com/chris-eibl
on Mar 23, 2026https://github.com/python/cpython/issues/146210#issuecomment-4112756888
cpython/Tools/jit/_llvm.pyhttps://github.com/python/cpython/blob/a57209eb98943f4d8edbf56a55e98ec112e00e39/Tools/jit/_llvm.py#L45-L51
a57209ehttps://github.com/python/cpython/commit/a57209eb98943f4d8edbf56a55e98ec112e00e39
savannahostrowskihttps://github.com/savannahostrowski
on Apr 3, 2026https://github.com/python/cpython/issues/146210#event-24184583592
GH-146210: Fix building the jit stencils on Windows when the interpre…https://github.com/python/cpython/commit/dea4083aa952c955a7c3a7657034bd38889a4e22
GH-146210https://github.com/python/cpython/issues/146210
dea4083https://github.com/python/cpython/commit/dea4083aa952c955a7c3a7657034bd38889a4e22
savannahostrowskihttps://github.com/savannahostrowski
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 3, 2026https://github.com/python/cpython/issues/146210#event-24184591181
ljfphttps://github.com/ljfp
on Apr 25, 2026https://github.com/python/cpython/issues/146210#event-24868335471
pythonGH-146210: Fix building the jit stencils on Windows when the in…https://github.com/ljfp/cpython/commit/443237dd4a7027a5e021586476f10507bc228dbb
pythonGH-146210https://github.com/python/cpython/issues/146210
443237dhttps://github.com/ljfp/cpython/commit/443237dd4a7027a5e021586476f10507bc228dbb
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/146210
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/146210
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
topic-JIThttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-JIT%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.