我想构建 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!
我已经安装了所有需要的工具。
最佳答案
我找到了解决办法。
我刚刚安装了另一个版本的 Python: 2.x (2.72),(仍然是 x86-64)
关于python - LLVM clang 的 CMake 构建失败并显示 "Unexpected failure executing llvm-build: Traceback (...) import llvmbuild",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9017376/