【问题标题】:ubuntu 16.04LTS compile obfuscator-llvmubuntu 16.04LTS 编译混淆器-llvm
【发布时间】:2017-12-07 16:17:40
【问题描述】:

cmake 版本 3.5.1

ubuntu 16.04LTS

我想在 ubuntu 上编译 llvm 关注 git wiki:

$ git clone -b llvm-4.0 https://github.com/obfuscator-llvm/obfuscator.git

$ mkdir 构建

$ cd 构建

$ cmake -DCMAKE_BUILD_TYPE=发布 ../obfuscator/

当我执行cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/时,报告ab错误:

-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
CMake Error at cmake/modules/AddLLVM.cmake:1163 (add_custom_target):
  add_custom_target cannot create target "check-llvm-bindings-ocaml" 
  because another target with the same name already exists.The 
  existing target is a custom target created in source directory 
  "/home/ryu/Ollvm/obfuscator/test". See documentation for policy 
  CMP0002 for more details.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1226 (add_lit_target)
  test/CMakeLists.txt:150 (add_lit_testsuites)

我不知道 check-llvm-bindings-ocaml 是什么,我如何解决这个问题?你能帮助我吗?谢谢谢谢谢谢!!!

【问题讨论】:

    标签: llvm


    【解决方案1】:

    我遇到了同样的问题,下面的命令可以解决它:

    cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release DLLVM_INCLUDE_TESTS=OFF
    

    仅供参考: https://github.com/obfuscator-llvm/obfuscator/issues/71

    【讨论】:

    • 链接可能会回答问题,最好在此处包含答案的基本部分并提供链接以供参考。如果链接页面发生更改,仅链接的答案可能会失效。
    • THX。我提供了必不可少的部分----答案中的命令。这个链接仅供参考~:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-22
    • 1970-01-01
    • 1970-01-01
    • 2012-08-18
    • 1970-01-01
    • 1970-01-01
    • 2012-09-25
    相关资源
    最近更新 更多