Skip to content
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

library/aesni.c build fail on windows arm64 #7704

Closed
jiayuehua opened this issue Jun 7, 2023 · 2 comments
Closed

library/aesni.c build fail on windows arm64 #7704

jiayuehua opened this issue Jun 7, 2023 · 2 comments
Assignees

Comments

@jiayuehua
Copy link

Summary

library/aesni.c build fail. report include\immintrin.h(15): fatal error C1189: #error: This header is specific to X86 and X64 targets

System information

Mbed TLS version (number or commit id): v2.28.3
Operating system and version: windows 11
Configuration (if not default, please attach mbedtls_config.h):
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): msvc
Additional environment information:

Expected behavior

should build success

Actual behavior

build fail

Steps to reproduce

build on arm64 windows should reproduce

Additional information

[4/100] C:\PROGRA1\MICROS1\2022\ENTERP1\VC\Tools\MSVC\14351.322\bin\Hostx64\arm64\cl.exe -ID:\buildtrees\mbedtls\arm64-windows-dbg\include -ID:\installed\arm64-windows\include -ID:\buildtrees\mbedtls\src\v2.28.3-daafc1cf77.clean\include -ID:\buildtrees\mbedtls\src\v2.28.3-daafc1cf77.clean\library /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /W3 /utf-8 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /Folibrary\CMakeFiles\mbedcrypto.dir\aesni.c.obj /Fdlibrary\CMakeFiles\mbedcrypto.dir\mbedcrypto.pdb /FS -c D:\buildtrees\mbedtls\src\v2.28.3-daafc1cf77.clean\library\aesni.c
FAILED: library/CMakeFiles/mbedcrypto.dir/aesni.c.obj
C:\PROGRA1\MICROS1\2022\ENTERP1\VC\Tools\MSVC\14351.322\bin\Hostx64\arm64\cl.exe -ID:\buildtrees\mbedtls\arm64-windows-dbg\include -ID:\installed\arm64-windows\include -ID:\buildtrees\mbedtls\src\v2.28.3-daafc1cf77.clean\include -ID:\buildtrees\mbedtls\src\v2.28.3-daafc1cf77.clean\library /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /W3 /utf-8 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /Folibrary\CMakeFiles\mbedcrypto.dir\aesni.c.obj /Fdlibrary\CMakeFiles\mbedcrypto.dir\mbedcrypto.pdb /FS -c D:\buildtrees\mbedtls\src\v2.28.3-daafc1cf77.clean\library\aesni.c
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\immintrin.h(15): fatal error C1189: #error: This header is specific to X86 and X64 targets

@jiayuehua
Copy link
Author

microsoft/vcpkg#31867

@gilles-peskine-arm
Copy link
Contributor

I believe this is fixed by #8209 which is merged on the mbedtls-2.28 branch and will be included in the next 2.28 release coming in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants