Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake build of LLVM clang fails with "Unexpected failure executing llvm-build: Traceback (...) import llvmbuild"

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
like image 262
Marek Kurdej Avatar asked Jan 26 '12 11:01

Marek Kurdej


1 Answers

I've found the solution.

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

like image 172
Marek Kurdej Avatar answered Sep 19 '22 17:09

Marek Kurdej