最近想看一下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
希望各位路过的给点思路或者建议,我的分不多,只有这么多了,全部都给出来了。
相关解决方案
- Android4.4.2KK竖屏强制更改替横屏的初步简略方案
- Stk简介跟核心类(android4.0 RIL Framework Java 部分)
- Android4.0中Alertdialog对话框点击边缘外部消失有关问题解决
- Android4.4中回绝发送Intent.ACTION_MEDIA_MOUNTED扫描SD卡的广播
- [odroid-pc] ubuntu12.04 64bit Android4.0.3 源代码编译报错及解决方法
- Android4.4KK中BOOT_COMPLETED广播有关问题的分析
- Android4.4 sd卡 写入权限有关问题 急求
- Android4.4的源码毕竟有多大
- Android4.0是不是不能开机自启动了?该如何解决
- android4.0 Launcher AppsCustomizePagedView里page滑动效果,该怎么解决
- android4.4 Launcher3如何修改主菜单布局
- Android4.4(MT8685)源码WIFI-初始化二
- Android4.4(MT8685)源码WIFI-初始化一
- Android4.4 应用分析——批改Launcher3应用以适应单屏壁纸
- Android4.4(MT8685)源码WIFI-起动
- Android4.4(MT8685)源码蓝牙解析-BLE搜寻
- android4.0.4 3G网络不能看视频,wifi可以瞧视频
- Android4.4 Framework分析——Android默许Home应用Launcher3的加载过程分析
- Android4.4 Framework分析——Activity窗口的创设过程(一)
- android4.0自定义锁屏apk模式总结
- Android4.1 开机logo的initlogo.rle在哪替换解决办法
- android4.0上网设立
- android4.0.4怎么将不带activity的widget应用一开机时就显示在桌面上
- android4.1.2的年历
- android4.0中在onCreate方法中findViewById()返回null解决方案
- Android4.0 对网络Jason对象的解析(1) 服务端
- Android4.0环境搭建要略
- android4.0后不能在住线程中使用网络连接。于是小弟我新开了一个线程,可是还是有异常
- android4.4 编译有关问题
- Android4.4深入显出之SurfaceFlinger框架-渲染一个surface(二)