当前位置: 代码迷 >> Android >> android4.4 编译报错,跟llvm 有关的
  详细解决方案

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

热度:81   发布时间:2016-04-28 07:07:04.0
android4.4 编译报错,和llvm 有关的
最近想看一下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



希望各位路过的给点思路或者建议,我的分不多,只有这么多了,全部都给出来了。
  相关解决方案