android-6.0.1编译问题处理

2017-11-27  本文已影响0人  发条蛙

编译Android-6.0.1的过程中遇到的一些问题及处理方法:

error: unsupported reloc 43

  1. 错误信息如下:
    error: unsupported reloc 43
    
  2. 解决思路如下:
    1. 修改文件art/build/Android.common_build.mk中的如下内容:
      # Host.
      ART_HOST_CLANG := false
      ifneq ($(WITHOUT_HOST_CLANG),true)
        # By default, host builds use clang for better warnings.
        ART_HOST_CLANG := true
      endif
      
      为:
      # Host.
      ART_HOST_CLANG := false
      ifneq ($(WITHOUT_HOST_CLANG),false)
        # By default, host builds use clang for better warnings.
        ART_HOST_CLANG := true
      endif
      
    2. 执行如下命令:
    cd prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin
     cp /usr/bin/ld.gold ld
    
  3. 相关链接:
    https://stackoverflow.com/questions/36048358/building-android-from-sources-unsupported-reloc-43
上一篇 下一篇

猜你喜欢

热点阅读