Repository navigation
blake2-config.h HAVE_SSE4_1 typo fix #102027
Copy link
Copy link
Closed
Labels
buildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Unable to compile cpython on Windows with AVX enable
- adding
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>for</ClCompile>in vcxproj files (result/arch:AVXin cl.exe cmd line) 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- result:
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]
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]
It's just a typo issue in Modules/_blake2/impl/blake2-config.h
diff --git "a/Modules/_blake2/impl/blake2-config.h" "b/Modules/_blake2/impl/blake2-config.h"
index f5dd6faa9e..c09cb4bcf0 100644
--- "a/Modules/_blake2/impl/blake2-config.h"
+++ "b/Modules/_blake2/impl/blake2-config.h"
@@ -53,7 +53,7 @@
#endif
#endif
-#ifdef HAVE_SSE41
+#ifdef HAVE_SSE4_1
#ifndef HAVE_SSSE3
#define HAVE_SSSE3
#endif
The patch fix the issue
Seems to be present on every branch
Your environment
- CPython versions tested on: branch 3.8 / tag 3.8.16
- Operating system and architecture: Win64 vs17 AVX
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
terryjreedy commentedon Feb 18, 2023
@tiran Can you verify that the proposed blake2 typo fix is correct?
EDIT: Looking at the file, I see that lines 49-51 being, in main,
makes it likely that line 56 should be
#ifndef HAVE_SSE4_1instead of#ifndef HAVE_SSE41.@ambv Do build issues like this get backported to 'security' versions?
arhadthedev commentedon Feb 26, 2023
@nono303 We close bugfix issues after the corresponding PR is backported to previous versions, just to not lose track.
pythongh-102027: Fix macro name (pythonGH-102124)
gh-102027: Fix macro name (#102124)
pythongh-102027: Fix macro name (pythonGH-102124)
[3.11] gh-102027: Fix macro name (GH-102124) (#102916)
[3.10] gh-102027: Fix macro name (GH-102124) (#102917)
pythongh-102027: Fix macro name (python#102124)
pythongh-102027: Fix macro name (python#102124)
YWtheGod commentedon Mar 13, 2024
But this fix hasn't merged into branch 3.9 and lower, people who want to build version before 3.10 still got this bug.
terryjreedy commentedon Mar 13, 2024
This is standard. Non-security bugfixs are essentially never backported by us to versions that only get security-fixes.