我试图在我的机器上获得lvm3.0,但是当我给make -k时,我会得到以下错误。
chethan@ubuntu:~/llvm-3.0$ make
make[1]: Entering directory `/home/chethan/llvm-3.0/lib/Support'
llvm[1]: Compiling APFloat.cpp for Release build
In file included from APFloat.cpp:15:
In file included from /home/chethan/llvm-3.0/include/llvm/ADT/APFloat.h:104:
In file included from /home/chethan/llvm-3.0/include/llvm/ADT/APInt.h:18:
In file included from /home/chethan/llvm-3.0/include/llvm/ADT/ArrayRef.h:13:
In file included from /home/chethan/llvm-3.0/include/llvm/ADT/SmallVector.h:17:
/home/chethan/llvm-3.0/include/llvm/Support/type_traits.h:20:10: fatal error: 'utility' file not found
#include <utility>
^
1 error generated.
make[1]: *** [/home/chethan/llvm-3.0/lib/Support/Release/APFloat.o] Error 1
make[1]: Leaving directory `/home/chethan/llvm-3.0/lib/Support'
make: *** [all] Error 1我按照这些步骤在我的机器上构建llvm。
/home/chethan/llvm-3.0
文件夹。
虽然在这种情况下,我只是给'make‘,以便它停止在第一个错误。我的机器上安装了llvm gcc 4.2。
今天早上,我在家里的机器上遵循了同样的步骤,成功地完成了lvm-3.0!知道这里可能缺少了什么吗?
发布于 2011-12-07 08:17:35
使用CC=gcc CXX=g++进行配置。看起来,配置脚本正在找到一个实际上没有正确设置以编译C++代码的clang版本。
https://stackoverflow.com/questions/8411371
复制相似问题