-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[python3] Add patch to fix Windows 11 SDK build failure. #20292
Conversation
1c4f9fc
to
d46ffe4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 451d6664e44156035c59cf8a67df91650f51b80b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/p-/python3.json b/versions/p-/python3.json
index e9972c5..719d238 100644
--- a/versions/p-/python3.json
+++ b/versions/p-/python3.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "685ca96439931362657ed1410627861e97155267",
+ "git-tree": "ba36ad8882cebd37de0409abe83dcf043b62e27e",
"version-semver": "3.9.7",
"port-version": 1
},
d46ffe4
to
23693bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 9d892ff9270f2d2fe3b8e490471f0a7dfa78981e -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/p-/python3.json b/versions/p-/python3.json
index e9972c5..726088e 100644
--- a/versions/p-/python3.json
+++ b/versions/p-/python3.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "685ca96439931362657ed1410627861e97155267",
+ "git-tree": "f45cd41d5c734f0736c7fbfa96fdfb076497c359",
"version-semver": "3.9.7",
"port-version": 1
},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 9d892ff9270f2d2fe3b8e490471f0a7dfa78981e -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/p-/python3.json b/versions/p-/python3.json
index e9972c5..f4294d7 100644
--- a/versions/p-/python3.json
+++ b/versions/p-/python3.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "685ca96439931362657ed1410627861e97155267",
+ "git-tree": "29b6b1f6fd4216b50c261c162140cb26f6c46d0f",
"version-semver": "3.9.7",
"port-version": 1
},
c547eab
to
23693bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 9d892ff9270f2d2fe3b8e490471f0a7dfa78981e -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/p-/python3.json b/versions/p-/python3.json
index e9972c5..726088e 100644
--- a/versions/p-/python3.json
+++ b/versions/p-/python3.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "685ca96439931362657ed1410627861e97155267",
+ "git-tree": "f45cd41d5c734f0736c7fbfa96fdfb076497c359",
"version-semver": "3.9.7",
"port-version": 1
},
23693bf
to
81350a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 9d892ff9270f2d2fe3b8e490471f0a7dfa78981e -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index c977d55..43971ad 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5286,7 +5286,7 @@
},
"python3": {
"baseline": "3.9.7",
- "port-version": 0
+ "port-version": 1
},
"qca": {
"baseline": "2.3.1",
diff --git a/versions/p-/python3.json b/versions/p-/python3.json
index 34194e0..b4fc820 100644
--- a/versions/p-/python3.json
+++ b/versions/p-/python3.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "6a1011c32aa2eb7de0b9a6184b2805e34c41f0b5",
+ "version-semver": "3.9.7",
+ "port-version": 1
+ },
{
"git-tree": "b3a545b39c982b7f0a12891765dd9909e364ebc6",
"version-semver": "3.9.7",
I would like @BillyONeal to review this PR. |
Hi @Hoikas! Thank you for the PR and the detailed description of the underlying problem. You saved me at least several hours. I've been using The installation of the packages is triggered in the If you have any suggestions, please let me know. Thank you for your time! |
You raise a good question @vi3itor - we were discussing using that same environment variable yesterday in discord and also found that it didn't work. Ideally, vcpkg would have a way that would let you specify a specific Windows SDK for issues like this, but I don't know what that is or would be. Unless anyone else has a better idea, forking and patching might be the best way to go 😞. I'm sorry I don't have any other ideas right now. |
Thank you Adam for the reply! Defining all the environment variables that mention 10.0.22000.0 in advance doesn't work. @JackBoosY @BillyONeal I hope |
@Hoikas |
Thank you Alexander for pointing it out! When running install with But I'm not sure which of them are generated based on the others. |
Thanks for fixing Actions! |
This adds a patch to work around a compile failure introduced by the Windows SDK 10.0.22000.0. The patch introduced by upstream at python/cpython#28393 is insufficient because vcpkg seems to prefer the usage of the latest (or whatever is set by the environment) Windows SDK. As of actions/runner-images#4014, this issue affects anyone trying to build the python3 port on the GitHub Actions windows-2019 (aka windows-latest) runners.
The specific problem is in the Windows SDK's
um/winnt.h
file. In 10.0.22000.0, it became an error ifSYSTEM_CACHE_ALIGNMENT_SIZE
could not be determined. It appears that the RC compiler does not perform certain defines that allow this to succeed. Here are the problematic lines in 10.22000.0:Previously, this implicitly succeeded, as seen in 10.0.18362.0's
um/winnt.h
:Therefore I have added a patch that sets
SYSTEM_CACHE_ALIGNMENT_SIZE
to the x86 value when the resource compiler is invoked.What does your PR fix?
Fixes [python3:x64-windows] [windows sdk 10.0.22000.0] build failure #17211
Which triplets are supported/not supported? Have you updated the CI baseline?
No change
Does your PR follow the maintainer guide?
Yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?Yes
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/