码迷,mamicode.com
首页 > 移动开发 > 详细

android4.4 编译报错,和llvm 有关的

时间:2014-10-15 23:37:41      阅读:336      评论:0      收藏:0      [点我收藏+]

标签:android   blog   http   io   os   ar   for   sp   2014   

问题描述
最近想看一下android4.4 的source ,但是在编译的过程中遇到了下面的问题,各位大哥帮忙看一下,我实在是搞不定了,网上介绍的关于4.0 的类似的错误修改方法在4.4 上无效,其实错误也不是一样的。
4.0 的错误修改方法:
$vi external/llvm/llvm-host-build.mk +

LOCAL_LDLIBS := -lpthread -ldl

下面的是4.4 编译报错信息

external/llvm/lib/Transforms/Vectorize/BBVectorize.cpp:2909: error: undefined reference to ‘llvm::MDNode::getMostGenericTBAA(llvm::MDNode*, llvm::MDNode*)‘

external/llvm/lib/Transforms/Vectorize/BBVectorize.cpp:1147: error: undefined reference to ‘llvm::AliasSet::aliasesUnknownInst(llvm::Instruction*, llvm::AliasAnalysis&) const‘

external/llvm/lib/Transforms/Vectorize/BBVectorize.cpp:1156: error: undefined reference to ‘llvm::AliasSetTracker::add(llvm::Instruction*)‘

external/llvm/lib/Transforms/Vectorize/BBVectorize.cpp:816: error: undefined reference to ‘llvm::SimplifyInstructionsInBlock(llvm::BasicBlock*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:770: error: undefined reference to ‘llvm::Loop::setLoopID(llvm::MDNode*) const‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:980: error: undefined reference to ‘llvm::Loop::isLoopInvariant(llvm::Value*) const‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:980: error: undefined reference to ‘llvm::Loop::isLoopInvariant(llvm::Value*) const‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:1433: error: undefined reference to ‘llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getExitBlock() const‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:3069: error: undefined reference to ‘llvm::GetUnderlyingObjects(llvm::Value*, llvm::SmallVectorImpl<llvm::Value*>&, llvm::DataLayout const*, unsigned int)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:3037: error: undefined reference to ‘llvm::isNoAliasArgument(llvm::Value const*)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:3037: error: undefined reference to ‘llvm::isNoAliasCall(llvm::Value const*)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:3085: error: undefined reference to ‘llvm::isIdentifiedObject(llvm::Value const*)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:3090: error: undefined reference to ‘llvm::isIdentifiedObject(llvm::Value const*)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:3530: error: undefined reference to ‘llvm::Loop::isAnnotatedParallel() const‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:1952: error: undefined reference to ‘llvm::LoopBlocksDFS::perform(llvm::LoopInfo*)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:4299: error: undefined reference to ‘llvm::LoopBlocksDFS::perform(llvm::LoopInfo*)‘

external/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:731: error: undefined reference to ‘llvm::Loop::getLoopID() const‘

external/llvm/lib/Transforms/IPO/Internalize.cpp:123: error: undefined reference to ‘llvm::collectUsedGlobalVariables(llvm::Module&, llvm::SmallPtrSet<llvm::GlobalValue*, 8u>&, bool)‘

external/llvm/lib/Transforms/IPO/Internalize.cpp:150: error: undefined reference to ‘llvm::CallGraphNode::removeOneAbstractEdgeTo(llvm::CallGraphNode*)‘

external/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:343: error: undefined reference to ‘llvm::GetSuccessorNumber(llvm::BasicBlock*, llvm::BasicBlock*)‘

external/llvm/include/llvm/ADT/SmallVector.h:81: error: undefined reference to ‘llvm::BranchProbabilityInfo::ID‘

external/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:290: error: undefined reference to ‘llvm::initializeBranchProbabilityInfoPass(llvm::PassRegistry&)‘

external/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:370: error: undefined reference to ‘llvm::TargetMachine::resetTargetOptions(llvm::MachineFunction const*) const‘

external/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:380: error: undefined reference to ‘llvm::BranchProbabilityInfo::ID‘

external/llvm/lib/CodeGen/Passes.cpp:409: error: undefined reference to ‘llvm::createLowerInvokePass(llvm::TargetMachine const*, bool)‘

collect2: error: ld returned 1 exit status

make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libLLVM_intermediates/LINKED/libLLVM.so] 错误 1





希望各位路过的给点思路或者建议,我的分不多,只有这么多了,全部都给出来了。 解决方案1
不会,帮顶bubuko.com,布布扣

android4.4 编译报错,和llvm 有关的

标签:android   blog   http   io   os   ar   for   sp   2014   

原文地址:http://www.cnblogs.com/liangxieliang56/p/4027417.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!