【问题标题】:Can't build Botan with Clang无法使用 Clang 构建 Botan
【发布时间】:2014-03-05 20:04:10
【问题描述】:

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

【问题讨论】:

    标签: c++ clang osx-mavericks botan


    【解决方案1】:

    您需要使用所需的 CPU 标志来编译合并以支持 AES-NI (-maes) 或在配置步骤中禁用 AES-NI (--disable-module=aes_ni)。

    【讨论】:

      猜你喜欢
      • 2020-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多