我正在嘗試從另一臺機器上的副本中創建LLVM。原始來源使用configure
和make
構建。但是,在新系統上,相同的構建方法失敗(我試過make clean
)。我試過cmake
選項,它說:LLVM內部版本:源自工作副本中的重複版本
基本上似乎有一些遺留在早期版本的文件,所以問題是我如何刪除它,優雅,即不是與Linux命令,但使用LLVM構建系統本身。 make distclean
說:「沒有規則來制定目標`disctclean',停止。」
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:57 (message):
Apparently there is a previous in-source build,
probably as the result of running `configure' and `make' on
/Users/me/scp/llvm_release.
This may cause problems. The suspicious files are:
/Users/me/scp/llvm_release/lib/Target/AArch64/AArch64GenAsmWriter.inc;
...
...
/Users/me/scp/llvm_release/lib/Target/XCore/XCoreGenSubtargetInfo.inc
/Users/me/scp/llvm_release/include/llvm/IR/Intrinsics.gen
Please clean the source directory.
-- Configuring incomplete, errors occurred!