android4.4 compile error, and LLVM-related

Source: Internet
Author: User

Problem description
Recently want to look at the source of android4.4, but in the process of compiling encountered the following problems, I really can not help to look at, I do not, the introduction of the online about 4.0 of similar error modification method in 4.4 invalid, in fact, the error is not the same.
4.0 Error Modification Method:
$vi external/llvm/llvm-host-build.mk +local_ldlibs: =-LPTHREAD-LDL

The following is a 4.4 compile error message
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*,&NBSP;LLVM::D atalayout 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*,&NBSP;LLVM::SMALLVECTORIMPL&LT;LLVM::VALUE*&GT;&AMP;,&NBSP;LLVM::D atalayout  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::p erform (llvm::loopinfo*) ' external/llvm/lib/transforms/vectorize/loopvectorize.cpp:4299:  error: undefined reference to  ' Llvm::loopblocksdfs::p erform (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::P assregistry&) ' 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  statusmake: *** [out/target/product/generic/obj/shared_libraries/libllvm_intermediates/linked/ libllvm.so]  Error  1


I hope you pass to some ideas or suggestions, my points are not many, only so many, all gave out. Solutions 1
No, help the top.

android4.4 compile error, and LLVM-related

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.