llvm错误:将错误链接到libLTO.so [英] llvm error: linking error to libLTO.so

查看:283
本文介绍了llvm错误:将错误链接到libLTO.so的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编译llvm时,出现以下错误:

During compilation of llvm I get following error:

llvm[2]: ======= Finished Linking Debug+Asserts Executable llvm-config
llvm[2]: Installing Debug+Asserts /usr/local/bin/llvm-config
make[2]: Leaving directory `/usr/bin/tools/llvm-config'
make[2]: Entering directory `/usr/bin/tools/lto'
llvm[2]: Compiling LTODisassembler.cpp for Debug+Asserts build (PIC)
llvm[2]: Compiling lto.cpp for Debug+Asserts build (PIC)
llvm[2]: Linking Debug+Asserts Shared Library libLTO.so
collect2: ld terminated with signal 9 [Killed]
make[2]: *** [/usr/bin/Debug+Asserts/lib/libLTO.so] Error 1
make[2]: Leaving directory `/usr/bin/tools/lto'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/bin/tools'
make: *** [install] Error 1

我确实通过给出gcc&的路径来配置llvm. g++编译器. 我在配置过程中没有任何错误;但是在构建过程中,同样的错误也会与clang一起存在.我正在使用Ubntu-12.10 32位.

I do configure llvm by giving path of gcc & g++ compilers. I don't get any error during configuration; but during build same error persist with clang also. I am using Ubntu-12.10 32 bit.

推荐答案

确定,因此,为解决此问题,我引用了llvm.org,并在配置过程中添加了以下几个选项: sudo ./configure CC="/usr/bin/gcc" CXX="/usr/bin/g++" --enable-optimization --enable-jit --enable-debug-runtime --enable-targets=all

OK, so to solve this problem, I referred to llvm.org and during configuration added few options as follows: sudo ./configure CC="/usr/bin/gcc" CXX="/usr/bin/g++" --enable-optimization --enable-jit --enable-debug-runtime --enable-targets=all

然后我以SuperUser的身份运行构建.

And I ran a build as SuperUser.

这篇关于llvm错误:将错误链接到libLTO.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆