TI中文支持网
TI专业的中文技术问题搜集分享网站

AM5708: android 编译失败

Part Number:AM5708

aosp 9.0编译到vendor.img时失败。日志如下

make vendorimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=beagle_x15
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR1.181005.003
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
No need to regenerate ninja file
[100% 1/1] Target vendor fs image: out/target/product/beagle_x15/vendor.img
FAILED: out/target/product/beagle_x15/vendor.img
/bin/bash -c "(mkdir -p out/target/product/beagle_x15/vendor ) && (mkdir -p out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates && rm -rf out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs.sh\" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"fs_type=ext4\" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"system_size=1073741824 \" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"userdata_size=1879048192 \" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"vendor_fs_type=ext4\" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"vendor_size=268435456 \" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"selinux_fc=out/target/product/beagle_x15/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"skip_fsck=true\" >> out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (rm -rf out/target/product/beagle_x15/vendor/lib/modules ) && (mkdir -p out/target/product/beagle_x15/vendor/lib/modules ) && (cp out/target/product/beagle_x15/vendor/lib/modules/ ) && (rm -rf out/target/product/beagle_x15/obj/PACKAGING/depmod_vendor_intermediates ) && (mkdir -p out/target/product/beagle_x15/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (cp out/target/product/beagle_x15/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (out/host/linux-x86/bin/depmod -b out/target/product/beagle_x15/obj/PACKAGING/depmod_vendor_intermediates 0.0 ) && (sed -e 's/\\(.*modules.*\\):/\\/\\1:/g' -e 's/ \\([^ ]*modules[^ ]*\\)/ \\/\\1/g' out/target/product/beagle_x15/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.dep > out/target/product/beagle_x15/vendor/lib/modules/modules.dep ) && (cp out/target/product/beagle_x15/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.alias out/target/product/beagle_x15/vendor/lib/modules ) && (PATH=out/host/linux-x86/bin/:\$PATH build/make/tools/releasetools/build_image.py out/target/product/beagle_x15/vendor out/target/product/beagle_x15/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt out/target/product/beagle_x15/vendor.img out/target/product/beagle_x15/system ) && (size=\$(for i in out/target/product/beagle_x15/vendor.img; do stat –format \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \"out/target/product/beagle_x15/vendor.img\" | tr \" \" +); maxsize=\$((268435456 )); if [ \”\$total\” -gt \”\$maxsize\” ]; then echo \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \”\$total\” -gt \$((maxsize – 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi )"
cp: missing destination file operand after 'out/target/product/beagle_x15/vendor/lib/modules/'
Try 'cp –help' for more information.
ninja: build stopped: subcommand failed.
20:27:06 ninja failed with: exit status 1

#### failed to build some targets (13 seconds) ####

请问大家都什么建议吗?

谢谢

Nancy Wang:

我帮您升级到了英文论坛,请关注:

e2e.ti.com/…/am5708-android-compilation-failed

赞(0)
未经允许不得转载:TI中文支持网 » AM5708: android 编译失败
分享到: 更多 (0)