LLVM clang的CMake构建失败,原因是“执行llvmbuild时出现意外错误:Traceback(…)import llvmbuild”

2024-10-03 00:18:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我想构建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 x64
  • Python:3.2.2(x86-64)
  • GnuWin32:0.6.3

Tags: inimportbuildcmake编译器main错误line