Building Android from sources: unsupported reloc 43

前端 未结 5 1078
忘了有多久
忘了有多久 2020-12-08 04:49

When I\'m compiling Android 5.1.1, I get dozens of errors like this:

...
...
...
libnativehelper/JniInvocation.cpp:1         


        
5条回答
  •  清歌不尽
    2020-12-08 05:40

    It works to me:
    in file /art/build/Android.common_build.mk, find out:

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

    change to :

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

    If it still not works,try this in your android root path: cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld

提交回复
热议问题