zoukankan      html  css  js  c++  java
  • 编译android6.0错误recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed

    转自:http://blog.csdn.net/ztguang/article/details/52856076

    trip: libpagemap_32 (out/target/product/xx/obj_arm/lib/libpagemap.so)
    target Strip: librilutils_32 (out/target/product/xx/obj_arm/lib/librilutils.so)
    target Strip: libtinyxml_32 (out/target/product/xx/obj_arm/lib/libtinyxml.so)
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    drivers/soc/qcom/Kconfig:310:warning: choice value used outside its choice group
    drivers/soc/qcom/Kconfig:315:warning: choice value used outside its choice group

    #
    # configuration written to .config
    #
    make[2]: Leaving directory '/home/xx/xx/6.0/android/xx/out/target/product/xx/obj/KERNEL_OBJ'
    make[1]: Leaving directory '/home/xx/xx/6.0/android/xx/kernel'
    make[1]: Entering directory '/home/xx/xx/6.0/android/xx/kernel'
    make[2]: Entering directory '/home/xx/xx/6.0/android/xx/out/target/product/xx/obj/KERNEL_OBJ'
    build/core/host_shared_library_internal.mk:51: recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed
    make: *** [out/host/linux-x86/obj/lib/libart.so] Error 1
    make: *** 正在等待未完成的任务....

    clang编译器导致的问题,目前可行的修改方法时在art/build/Android.common_build.mk ,中将host 默认编辑器使用clang关掉,找到WITHOUT_HOST_CLANG

    关闭clang即可

    # Host.
    ART_HOST_CLANG := false
    ifneq ($(WITHOUT_HOST_CLANG),true)
      # By default, host builds use clang for better warnings.

      ART_HOST_CLANG := false
    endif

  • 相关阅读:
    第三章 AjaxPro框架
    第一章 ASP.NET XML与JSON
    第二章 ASP.NET Ajax核心对象
    第五次作业
    第四次作业
    第三周笔记
    第二周笔记
    Java作业
    日期顺时,自动跳过节假日
    利用java实现excel转pdf文件
  • 原文地址:https://www.cnblogs.com/dirt2/p/8434293.html
Copyright © 2011-2022 走看看