首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误构建livm3.0

错误构建livm3.0
EN

Stack Overflow用户
提问于 2011-12-07 06:38:33
回答 1查看 2.2K关注 0票数 1

我试图在我的机器上获得lvm3.0,但是当我给make -k时,我会得到以下错误。

代码语言:javascript
复制
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

  • ./configure

  • make

  • 从llvm下载页面获取llvm源文件并解压缩到llvm 3.0

  • cd

  • -k

文件夹。

虽然在这种情况下,我只是给'make‘,以便它停止在第一个错误。我的机器上安装了llvm gcc 4.2。

今天早上,我在家里的机器上遵循了同样的步骤,成功地完成了lvm-3.0!知道这里可能缺少了什么吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-12-07 08:17:35

使用CC=gcc CXX=g++进行配置。看起来,配置脚本正在找到一个实际上没有正确设置以编译C++代码的clang版本。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8411371

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档