美文网首页
android-6.0.1编译问题处理

android-6.0.1编译问题处理

作者: 发条蛙 | 来源:发表于2017-11-27 14:01 被阅读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

相关文章

网友评论

      本文标题:android-6.0.1编译问题处理

      本文链接:https://www.haomeiwen.com/subject/zntdbxtx.html