搜索

451

主题

663

帖子

5297

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5297
QQ
发表于 2022-10-14 09:58:31 2643 浏览 0 回复

Android12 GMS移植mianline 编译报错/dexdump: error: Target of symlink is...


问题现象:
           Android12 版本,移植mainline 进系统,编译报错如下:

  1. [ 48% 66707/137461] symlink out/soong/.intermediates/prebuilts/module_sdk/art/current/host-exports/prebuilt_dex2oatd/linux_glibc_x86_64/dex2oatd
  2. [ 48% 66708/137461] symlink out/soong/.intermediates/prebuilts/module_sdk/art/current/host-exports/prebuilt_dexdump/linux_glibc_x86_64/dexdump
  3. [ 48% 66709/137461] //external/ppp/pppd:pppd clang magic.c
  4. [ 48% 66710/137461] //prebuilts/module_sdk/art/current/host-exports:prebuilt_dexdump install dexdump [linux_glibc]
  5. [ 48% 66711/137461] //hardware/libhardware/modules/power:power.default clang power.c [arm]
  6. [ 48% 66712/137461] symlink out/soong/.intermediates/prebuilts/module_sdk/art/current/host-exports/prebuilt_hiddenapi/linux_glibc_x86_64/hiddenapi
  7. [ 48% 66713/137461] //hardware/libhardware/modules/power:power.default clang power.c
  8. [ 48% 66714/137461] compile out/soong/.primary/pom2bp/obj/pom2bp.a
  9. [ 48% 66715/137461] //prebuilts/module_sdk/art/current/host-exports:prebuilt_hiddenapi install hiddenapi [linux_glibc]
  10. [ 48% 66716/137461] host Prebuilt: dexdump (out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump)
  11. FAILED: out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump
  12. /bin/bash -c "(rm -f out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump ) && (if [ -h out/soong/host/linux-x86/bin/dexdump ]; then ln -s \$(realpath out/soong/host/linux-x86/bin/dexdump) out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump; else cp out/soong/host/linux-x86/bin/dexdump out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump; fi ) && ([ -x out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump ] || ( echo -e "\\033[1mout/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump: \\033[31merror:\\033[0m\\033[1m" 'Target of symlink is not executable'  "\\033[0m" >&2; false ) )"
  13. out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump: error: Target of symlink is not executable
  14. [ 48% 66717/137461] compile out/soong/.primary/pom2mk/obj/pom2mk.a
  15. [ 48% 66718/137461] //external/ppp/pppd:pppopptp-android clang plugins/pppopptp-android/pppopptp-android.c
  16. [ 48% 66719/137461] //external/ppp/pppd:pppd clang demand.c
  17. [ 48% 66720/137461] //external/ppp/pppd:pppol2tp-android clang plugins/pppol2tp-android/pppol2tp-android.c
  18. [ 48% 66721/137461] //external/ppp/pppd:pppd clang fsm.c
  19. [ 48% 66722/137461] //external/ppp/pppd:pppd clang upap.c
复制代码


解决方案:
          修改环境变量值:

  1. export SOONG_CONFIG_art_module_source_build=true
复制代码





手机微信同号:13682654092
回复

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


登录或注册
快速回复 返回顶部 返回列表