|
发表于 2022-10-14 09:58:31
2676 浏览 0 回复
Android12 GMS移植mianline 编译报错/dexdump: error: Target of symlink is...
问题现象:
Android12 版本,移植mainline 进系统,编译报错如下:
- [ 48% 66707/137461] symlink out/soong/.intermediates/prebuilts/module_sdk/art/current/host-exports/prebuilt_dex2oatd/linux_glibc_x86_64/dex2oatd
- [ 48% 66708/137461] symlink out/soong/.intermediates/prebuilts/module_sdk/art/current/host-exports/prebuilt_dexdump/linux_glibc_x86_64/dexdump
- [ 48% 66709/137461] //external/ppp/pppd:pppd clang magic.c
- [ 48% 66710/137461] //prebuilts/module_sdk/art/current/host-exports:prebuilt_dexdump install dexdump [linux_glibc]
- [ 48% 66711/137461] //hardware/libhardware/modules/power:power.default clang power.c [arm]
- [ 48% 66712/137461] symlink out/soong/.intermediates/prebuilts/module_sdk/art/current/host-exports/prebuilt_hiddenapi/linux_glibc_x86_64/hiddenapi
- [ 48% 66713/137461] //hardware/libhardware/modules/power:power.default clang power.c
- [ 48% 66714/137461] compile out/soong/.primary/pom2bp/obj/pom2bp.a
- [ 48% 66715/137461] //prebuilts/module_sdk/art/current/host-exports:prebuilt_hiddenapi install hiddenapi [linux_glibc]
- [ 48% 66716/137461] host Prebuilt: dexdump (out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump)
- FAILED: out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump
- /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 ) )"
- out/host/linux-x86/obj/EXECUTABLES/dexdump_intermediates/dexdump: error: Target of symlink is not executable
- [ 48% 66717/137461] compile out/soong/.primary/pom2mk/obj/pom2mk.a
- [ 48% 66718/137461] //external/ppp/pppd:pppopptp-android clang plugins/pppopptp-android/pppopptp-android.c
- [ 48% 66719/137461] //external/ppp/pppd:pppd clang demand.c
- [ 48% 66720/137461] //external/ppp/pppd:pppol2tp-android clang plugins/pppol2tp-android/pppol2tp-android.c
- [ 48% 66721/137461] //external/ppp/pppd:pppd clang fsm.c
- [ 48% 66722/137461] //external/ppp/pppd:pppd clang upap.c
复制代码
解决方案:
修改环境变量值:
- export SOONG_CONFIG_art_module_source_build=true
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|