3

我正在尝试构建一个链接到 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);
4

1 回答 1

5

You need to either compile the amalgamation with the needed CPU flags for AES-NI support (-maes) or disable AES-NI in the configuration step (--disable-module=aes_ni).

于 2014-03-12T01:21:09.540 回答