CMake build of LLVM clang fails with “Unexpected failure executing llvm-build: Traceback (…) import llvmbuild”

假如想象 提交于 2019-12-04 16:34:25

问题


I want to build LLVM clang compiler, but CMake ends up with the following error message:

CMake Error at CMakeLists.txt:256 (message):
  Unexpected failure executing llvm-build: Traceback (most recent call
last):

    File "C:/.../llvm/utils/llvm-build/llvm-build", line 3, in
<module>
      import llvmbuild
    File "C:\...\llvm\utils\llvm-build\llvmbuild\__init__.py",
line 1, in
<module>
      from main import main

  ImportError: No module named main


-- Configuring incomplete, errors occurred!

I've got all needed tools installed.

  • OS: Windows 7 x64
  • Python: 3.2.2 (x86-64)
  • GnuWin32: 0.6.3

回答1:


I've found the solution.

I've just installed another version of Python: 2.x (2.72), (still x86-64)



来源:https://stackoverflow.com/questions/9017376/cmake-build-of-llvm-clang-fails-with-unexpected-failure-executing-llvm-build-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!