Title: blake2-config.h `HAVE_SSE4_1` typo fix · Issue #102027 · python/cpython · GitHub
Open Graph Title: blake2-config.h `HAVE_SSE4_1` typo fix · Issue #102027 · python/cpython
X Title: blake2-config.h `HAVE_SSE4_1` typo fix · Issue #102027 · python/cpython
Description: Bug report Unable to compile cpython on Windows with AVX enable adding
Open Graph Description: Bug report Unable to compile cpython on Windows with AVX enable adding
X Description: Bug report Unable to compile cpython on Windows with AVX enable adding <EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet> for </ClCompile> in vc...
Opengraph URL: https://github.com/python/cpython/issues/102027
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"blake2-config.h `HAVE_SSE4_1` typo fix","articleBody":"# Bug report\r\n\r\n### Unable to compile cpython on Windows with **`AVX`** enable\r\n1. adding `\u003cEnableEnhancedInstructionSet\u003eAdvancedVectorExtensions\u003c/EnableEnhancedInstructionSet\u003e` for `\u003c/ClCompile\u003e` in vcxproj files (result `/arch:AVX` in cl.exe cmd line)\r\n2. `MSBuild.exe C:\\sdk\\src\\python\\PCbuild\\pcbuild.proj /nologo /nr:false /m:16 /p:Turbo=true /p:CL_MPCount=16 /p:RunCodeAnalysis=false /p:DebugType=None /p:DebugSymbols=true /p:WindowsTargetPlatformVersion=10.0.22621.0 /p:PlatformToolset=v143 /clp:EnableMPLogging;Summary;ShowCommandLine /v:d /p:Configuration=Release /p:Platform=\"x64\" /p:IncludeExtensions=true /p:IncludeExternals=true /p:IncludeTests=false /p:IncludeCTypes=true /p:IncludeSSL=true /p:IncludeTkinter=false /p:IncludeUwp=true /t:RebuildAll /p:EXTERNALS_DIR=\"C:\\sdk\\release\\vs17_x64-avx\" /p:ExternalsSrcDir=\"C:\\sdk\\src\" /p:_DLLSuffix=-81_3-x64 /p:SqliteVersionStrToParse=3.40.1.0 /nowarn:C4244`\r\n3. result:\r\n\u003e C:\\sdk\\src\\python\\Modules\\_blake2\\impl\\blake2-config.h(67,1): fatal error C1189: #error: \"This code requires at least SSE2.\" (compiling source file ..\\Modules\\_blake2\\blake2s_impl.c) [C:\\sdk\\src\\python\\PCbuild\\pythoncore.vcxproj]\r\n\u003e C:\\sdk\\src\\python\\Modules\\_blake2\\impl\\blake2-config.h(67,1): fatal error C1189: #error: \"This code requires at least SSE2.\" (compiling source file ..\\Modules\\_blake2\\blake2b_impl.c) [C:\\sdk\\src\\python\\PCbuild\\pythoncore.vcxproj]\r\n\r\n\r\n### It's just a typo issue in `Modules/_blake2/impl/blake2-config.h`\r\n\r\n```diff\r\ndiff --git \"a/Modules/_blake2/impl/blake2-config.h\" \"b/Modules/_blake2/impl/blake2-config.h\"\r\nindex f5dd6faa9e..c09cb4bcf0 100644\r\n--- \"a/Modules/_blake2/impl/blake2-config.h\"\r\n+++ \"b/Modules/_blake2/impl/blake2-config.h\"\r\n@@ -53,7 +53,7 @@\r\n #endif\r\n #endif\r\n \r\n-#ifdef HAVE_SSE41\r\n+#ifdef HAVE_SSE4_1\r\n #ifndef HAVE_SSSE3\r\n #define HAVE_SSSE3\r\n #endif\r\n\r\n```\r\n\r\nThe patch fix the issue\r\nSeems to be present on every branch\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: branch 3.8 / tag 3.8.16\r\n- Operating system and architecture: Win64 vs17 AVX\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102124\n* gh-102916\n* gh-102917\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/nono303","@type":"Person","name":"nono303"},"datePublished":"2023-02-18T14:19:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/102027/cpython/issues/102027"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b4eb8005-94b6-66d6-ea88-6512d0d7ee47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D818:378C0F:1878596:21D2EC2:696AA558 |
| html-safe-nonce | faebed7f9ffe676efd79172662db2dcc5d12df1e8ec67df01f6818325db2b995 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODE4OjM3OEMwRjoxODc4NTk2OjIxRDJFQzI6Njk2QUE1NTgiLCJ2aXNpdG9yX2lkIjoiNzU1NzQzNDgzNjc0NjE1MTI1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 847a548a8f3d178eb37658c680fef182d2cb41b6ddd65f34aa0e9cbef80d2866 |
| hovercard-subject-tag | issue:1590358981 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/102027/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c685ef6309b501ef577731b8d96de0beb9794a9118bfd13b8514d03dabf3267/python/cpython/issues/102027 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c685ef6309b501ef577731b8d96de0beb9794a9118bfd13b8514d03dabf3267/python/cpython/issues/102027 |
| og:image:alt | Bug report Unable to compile cpython on Windows with AVX enable adding |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nono303 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width