ubuntu 16.04LTS compile obfuscator-llvm

Viewed 689

cmake version 3.5.1

ubuntu 16.04LTS

I want to compile llvm on ubuntu follow git wiki:

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

$ mkdir build

$ cd build

$ cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/

When I execute cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/,report ab error:

-- 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)

I don't konw what check-llvm-bindings-ocaml is,and how cam I solve this problem? Can you help me? Thank you, thank you, thank you!!!

1 Answers
Related