• (OK) 编译android6.0错误recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed



    http://blog.csdn.net/u011444472/article/details/51463074


    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

  • 相关阅读:
    用才情绽放的幸福之花
    我的爱车,你在哪里
    爱在网络,有没有错
    假如能抱着美女写诗
    只想爱你
    创业者和爱因斯坦的10大共同点(不是不可比的)
    心的感谢
    成大事必备9种能力.9种手段.9种心态
    一颗新星在陨落
    C++/C学习笔记(九)
  • 原文地址:https://www.cnblogs.com/ztguang/p/12645387.html
Copyright © 2020-2023  润新知