更新时间:2023-02-06 10:30:16
AFAIK,这是Ubuntu包装中的一个众所周知的错误.原始问题仍然存在于Ubuntu 16.04上的llvm-3.8-dev中,请参见此处和此处.
AFAIK, this is a well-known bug in Ubuntu's packaging. The original issue still persists in llvm-3.8-dev on Ubuntu 16.04 see here and here.
在尝试通过手动设置导入前缀来修复LLVMExports.cmake
时
When attempting to fix LLVMExports.cmake
by manually setting the import prefix
set(_IMPORT_PREFIX "/usr/lib/llvm-3.8")
CMake能够找到libLLVMSupport.a
和其他库.但是,我遇到了以下问题
CMake was able to find libLLVMSupport.a
and other libraries. However, I was faced with the following issue
The imported target "PollyISL" references the file
"/usr/lib/llvm-3.8/lib/libPollyISL.a"
but this file does not exist. Possible reasons include:
令人惊讶的是,库libPollyISL.a
甚至在LLVM安装目录中都不存在.因此,问题不仅仅在于CMake config.
Surprisingly, library libPollyISL.a
does not even exist in LLVM installation directory. Therefore, the problem is more than CMake config.
要节省时间,请从源代码自己构建LLVM并设置LLVM_DIR env变量.请参阅此教程.
To save time, build LLVM yourself from source and set LLVM_DIR env variable. See this tutorial.