llvm链接CXX共享库../../lib/libLTO.so未定义引用目标 [英] llvm Linking CXX shared library ../../lib/libLTO.so undefiened refernece to target

查看:556
本文介绍了llvm链接CXX共享库../../lib/libLTO.so未定义引用目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装提拉米苏编译器

并尝试使用此命令安装其子模块((ISL,LLVM和Halide)

dina@dina-VBox:~/tiramisu$ ./utils/scripts/install_submodules.sh ./

我收到错误

Done installing isl
#### Installing LLVM ####
cd .//3rdParty/llvm
.//utils/scripts/functions.sh: line 6: cd: .//3rdParty/llvm: No such file or directory

要修复它,我使用了答案解决方案

我无法自行解决问题,但我改变了提拉米苏的安装方式.

我确实注意到了这一点,并且也确实想引起您的注意,这可能有助于您的时间并成功地完成安装.

  • 永远不要在虚拟盒子上安装提拉米苏,因为提拉米苏需要高性能的机器,我的意思是一旦编译消耗至少6GRAM,就至少需要6G RAM.

    意味着最好直接使用分区或Linux系统.

  • 您可能会发现版本之间的问题,这意味着某些版本可以成功地在18.04中安装它,某些版本可以在16中安装,有些则在14中.因此,如果您在版本中失败,请永不放弃,再尝试另一个版本,然后仍然瘫痪. p>

  • 安装提拉米苏后最好不要并行吃午餐.

  • 您需要有一个良好的网络来克隆提拉米苏子模块,并以35kb/s的网络本身来复制提拉米苏,可能需要24小时才能克隆所有东西.
  • 检查所有列出的安装提拉米苏的技巧,以免遇到麻烦,如果据说您应该使用CMake 5.0版本,因为它们已经在该版本中进行了测试,并且可以确保在6版本中没有任何被许可人可以使用该提拉米苏.工作,所以要小心.

  • 如果您以无法解决问题的方式分散事物.最好清理所有内容并从"0"重新启动.

  • 要耐心:安装提拉米苏是一项繁重的工作,因此要胸襟宽广和禅宗.

我花了一个月的时间才能安装提拉米苏,我遇到了很多问题.但是,一旦我将其安装在分区中并仔细执行了上面显示的步骤,我终于可以成功安装了.

祝你好运:).

i tried to install tiramisu compiler

and once trying install it's sub-modules ( (ISL, LLVM and Halide) by using this command

dina@dina-VBox:~/tiramisu$ ./utils/scripts/install_submodules.sh ./

i get the error

Done installing isl
#### Installing LLVM ####
cd .//3rdParty/llvm
.//utils/scripts/functions.sh: line 6: cd: .//3rdParty/llvm: No such file or directory

and to fix it i used the command shared on the answer here

./utils/scripts/install_submodules.sh $PWD

it worked better then the first one i reached 95% of the installation however it stop here with this error

Linking CXX shared library ../../lib/libLTO.so undefiened refernece to target

Here is the detail of the error

   [ 95%] Linking CXX executable ../../bin/opt
    [ 95%] Linking CXX shared library ../../lib/libLTO.so
    ../../lib/libLLVMX86AsmParser.a(X86AsmParser.cpp.o): In function `llvm::RegisterMCAsmParser<(anonymous namespace)::X86AsmParser>::Allocator(llvm::MCSubtargetInfo const&, llvm::MCAsmParser&, llvm::MCInstrInfo const&, llvm::MCTargetOptions const&)':
    X86AsmParser.cpp:(.text._ZN4llvm19RegisterMCAsmParserIN12_GLOBAL__N_112X86AsmParserEE9AllocatorERKNS_15MCSubtargetInfoERNS_11MCAsmParserERKNS_11MCInstrInfoERKNS_15MCTargetOptionsE+0x164): undefined reference to `llvm::CreateX86AsmInstrumentation(llvm::MCTargetOptions const&, llvm::MCContext const&, llvm::MCSubtargetInfo const*&)'
    CMakeFiles/llvm-mc.dir/llvm-mc.cpp.o: In function `main':
    llvm-mc.cpp:(.text.startup.main+0xe4): undefined reference to `LLVMInitializeX86Disassembler'
    ../../lib/libLLVMX86Desc.a(X86MCTargetDesc.cpp.o): In function `LLVMInitializeX86TargetMC':
    X86MCTargetDesc.cpp:(.text.LLVMInitializeX86TargetMC+0xc7): undefined reference to `llvm::createX86_32AsmBackend(llvm::Target const&, llvm::MCRegisterInfo const&, llvm::Triple const&, llvm::StringRef, llvm::MCTargetOptions const&)'

...
...


    ../../lib/libLLVMAArch64CodeGen.a(AArch64TargetObjectFile.cpp.o):(.data.rel.ro._ZTVN4llvm29AArch64_MachoTargetObjectFileE[_ZTVN4llvm29AArch64_MachoTargetObjectFileE]+0xa0): undefined reference to `llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(llvm::GlobalObject const*, llvm::SectionKind, llvm::TargetMachine const&) const'
    collect2: error: ld returned 1 exit status
    tools/opt/CMakeFiles/opt.dir/build.make:349: recipe for target 'bin/opt' failed
    make[2]: *** [bin/opt] Error 1
    CMakeFiles/Makefile2:44345: recipe for target 'tools/opt/CMakeFiles/opt.dir/all' failed
    make[1]: *** [tools/opt/CMakeFiles/opt.dir/all] Error 2
    Makefile:151: recipe for target 'all' failed
    make: *** [all] Error 2
    dina@dina-VBox:~/tiramisu$ ^C

I do not know what should i do to fix this new error can someone help please.

解决方案

I have not been able to fix the problem on it's self but i have changed the way of installing tiramisu.

I did pay attention to that and i do want to pay your attention to too that may serve your time and success your installation.

  • Never ever install tiramisu on virtual box cause tiramisu require a bit high performance machine i mean at least 6G of RAM once compiling it consume >= 6GRAM.

    Means it's better to have partition or Linux system directly.

  • You may find issues from version to version means some succeed to install it in 18.04 where some in 16 where some in 14. So if you fail in version never give up try another version better then still paralyzed.

  • It better to not lunch anything in parallel once installing tiramisu.

  • You need to have a good network to clone tiramisu sub-modules and tiramisu on itself with a network of 35kb/s it may took 24h to get clone all stuff.
  • Respect the all the tips listed to install tiramisu to avoid have trouble ex if it's said you should CMake 5.0 version do it because they have tested in this version and they insure that work nothing grantee that in 6 version it will work so be careful.

  • If you scattered things in the way that you could not fix issues. It's better to clean up everything and restart from "0".

  • Be patient : Installing tiramisu is a bit heavy task so be Broad-minded and Zen.

it took me one month to be able to install tiramisu i had many issues. But once i install it in a partition and doing the steps show above carefully i have been finally to install successfully.

Best of luck :).

这篇关于llvm链接CXX共享库../../lib/libLTO.so未定义引用目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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