c – 不能用Clang建造Botan
作者:互联网
我正在尝试建立一个链接到Botan 1.11的库.我使用configure.py生成合并并将其包含在我的项目中.
问题是,当我尝试构建项目时,我收到以下错误:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include/wmmintrin.h:30:3: error: "AES/PCLMUL instructions not enabled"
# error "AES/PCLMUL instructions not enabled"
^
/Users/me/Projects/Assorted/something/lib/datatypes/botan_all.cpp:8975:28: error: use of undeclared identifier '_mm_aeskeygenassist_si128'
__m128i key_with_rcon = _mm_aeskeygenassist_si128(key2, 0x00);
^
/Users/me/Projects/Assorted/something/lib/datatypes/botan_all.cpp:9056:7: error: use of undeclared identifier '_mm_aesenc_si128'; did you mean '_mm_and_si128'?
AES_ENC_4_ROUNDS(K1);
解决方法:
您需要使用所需的CPU标志编译合并以获得AES-NI支持(-maes)或在配置步骤中禁用AES-NI( – disable-module = aes_ni).
标签:c,clang,osx-mavericks,botan 来源: https://codeday.me/bug/20190831/1772287.html