CMake构建LLVM clang失败,出现“执行llvm-build时意外失败:追踪(...)导入llvmbuild”
我想要构建LLVM clang编译器,但CMake最后出现了以下错误信息:
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!
我已经安装了所有需要的工具。
- 操作系统:Windows 7 64位
- Python:3.2.2(64位)
- GnuWin32:0.6.3
1 个回答
21
我找到了解决办法。
我刚刚安装了另一个版本的 Python: 2.x(2.72),(还是 x86-64 的版本)