首页 > 代码库 > android4.4 编译报错,和llvm 有关的
android4.4 编译报错,和llvm 有关的
问题描述
最近想看一下android4.4 的source ,但是在编译的过程中遇到了下面的问题,各位大哥帮忙看一下,我实在是搞不定了,网上介绍的关于4.0 的类似的错误修改方法在4.4 上无效,其实错误也不是一样的。
4.0 的错误修改方法:
下面的是4.4 编译报错信息
希望各位路过的给点思路或者建议,我的分不多,只有这么多了,全部都给出来了。 解决方案1
不会,帮顶
最近想看一下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
不会,帮顶
android4.4 编译报错,和llvm 有关的
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。