-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Error compiling AESNI in Mbed-TLS with clang on Windows #8372
Comments
@gilles-peskine-arm Yes, it looks very similarly. I tried to search existing issues with my errors and could not find them. #8339 will not work for me, because clang does not define the macro There is the task Consider removing AESNI assembly #8231, maybe it's more correct that #8339 does not update aesni.c for MinGW but disables easni.c like I want to do it in easni.h. |
…indows It can successfully compile w/ or w/o the clang options -maes -mpclmul.
…indows It can successfully compile w/ or w/o the clang options -maes -mpclmul. Signed-off-by: Sergey Markelov <sergey@solidstatenetworks.com>
I believe it would fix the issue arround |
…indows It can successfully compile w/ the clang options -maes -mpclmul. Signed-off-by: Sergey Markelov <sergey@solidstatenetworks.com>
…indows It can successfully compile w/ or w/o the clang options -maes -mpclmul. Signed-off-by: Sergey Markelov <sergey@solidstatenetworks.com>
…indows It can successfully compile w/ or w/o the clang options -maes -mpclmul. Signed-off-by: Sergey Markelov <sergey@solidstatenetworks.com>
…indows It can successfully compile w/ the clang options -maes -mpclmul. Signed-off-by: Sergey Markelov <sergey@solidstatenetworks.com>
…indows It can successfully compile w/ the clang options -maes -mpclmul. Signed-off-by: Sergey Markelov <sergey@solidstatenetworks.com>
…indows It can successfully compile w/ or w/o the clang options -maes -mpclmul. Signed-off-by: Sergey Markelov <sergey@solidstatenetworks.com>
Is there any way to solve this compilation problem without modifying the code? |
Summary
clang does not have MSVS intrinsics, the pre-processor condition below does not cover this case if clang runs in MSVC compatibility mode
mbedtls/library/aesni.h
Lines 42 to 46 in 1ec6906
It should be
System information
Mbed TLS version 2.28.5, 3.5.0
Operating system and version: Windows 10/11
Default configuration.
Compiler: LLVM clang, clang-cl
Expected behavior
Built without errors.
Actual behavior
Got many errors
Additional infromation
Fixing PRs will be offered soon.
The text was updated successfully, but these errors were encountered: