Firefly开源社区

打印 上一主题 下一主题

RK3399 Android 编译失败问题

45

积分

0

威望

0

贡献

技术小白

积分
45

RK3399 Android 编译失败问题

发表于 2019-12-16 09:12:37      浏览:10915 | 回复:6        打印      只看该作者   [复制链接] 楼主
请教一下各位,
编译Kernel, boot 都成功了,编译Android 失败。
编译命令: ./FFTools/make.sh -a -j8
失败信息:
[1057/1057] including ./vendor/rockchip/common/vpu/Android.mk ...
PRODUCT_COPY_FILES device/rockchip/common/init.rk30board.usb.rc:root/init.rk30board.usb.rc ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/rk30xxnand_ko.ko.3.10.0:root/rk30xxnand_ko.ko ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/drmboot.ko:root/drmboot.ko ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/phone/etc/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE rk3399_firefly_mid
build/core/aapt2.mk:32: warning: overriding commands for target `out/target/product/rk3399_firefly_mid/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
build/core/aapt2.mk:32: warning: ignoring old commands for target `out/target/product/rk3399_firefly_mid/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_mid/system/bin/chat'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/rk3399_firefly_mid/system/bin/chat'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_mid/vendor/lib/libjpeghwenc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/rk3399_firefly_mid/vendor/lib/libjpeghwenc.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_mid/vendor/lib/libjpeghwdec.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/rk3399_firefly_mid/vendor/lib/libjpeghwdec.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_mid/vendor/lib64/libjpeghwenc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/rk3399_firefly_mid/vendor/lib64/libjpeghwenc.so'
[ 83% 5/6] glob art
[  0% 477/78953] Lex: applypatch <= bootable/recovery/edify/lexer.ll
FAILED: out/target/product/rk3399_firefly_mid/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/rk3399_firefly_mid/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[  0% 495/78953] Ensuring Jack server is installed and started
Jack server already installed in "/home/user/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/user/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[  0% 496/78953] target StaticLib: libv8src (out/target/product/rk3399_firefly_mid/obj/STATIC_LIBRARIES/libv8src_intermediates/libv8src.a)
ninja: build stopped: subcommand failed.
00:51:56 ninja failed with: exit status 1

--------------------------
哪位大神知道失败原因,可以指点一下么?
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2019-12-16 09:27:10        只看该作者  沙发
ubuntu是哪一个版本?
回复

使用道具 举报

45

积分

0

威望

0

贡献

技术小白

积分
45
发表于 2019-12-16 10:11:59        只看该作者  板凳
Linux host016-ubuntu-1804 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2019-12-16 10:50:28        只看该作者  地板
zacmoon 发表于 2019-12-16 10:11
Linux host016-ubuntu-1804 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 ...

你的问题跟这个帖子一样
http://dev.t-firefly.com/thread-100560-1-1.html
回复

使用道具 举报

45

积分

0

威望

0

贡献

技术小白

积分
45
发表于 2019-12-16 13:04:43        只看该作者  5#
验证了有效。编译过了。 但是编译到98%的时候失败了。
错误:
FAILED: out/target/product/rk3399_firefly_mid/recovery.img
/bin/bash -c "(mkdir -p out/target/product/rk3399_firefly_mid/recovery ) && (mkdir -p out/target/product/rk3399_firefly_mid/recovery/root/etc out/target/product/rk3399_firefly_mid/recovery/root/sdcard out/target/product/rk3399_firefly_mid/recovery/root/tmp ) && (echo Copying baseline ramdisk... ) && (rsync -a --exclude=etc --exclude=sdcard --exclude=/root/sepolicy --exclude=/root/plat_file_contexts --exclude=/root/nonplat_file_contexts --exclude=/root/plat_property_contexts --exclude=/root/nonplat_property_contexts --exclude=cache out/target/product/rk3399_firefly_mid/root out/target/product/rk3399_firefly_mid/recovery ) && (cp -f out/target/product/rk3399_firefly_mid/system/bin/adbd out/target/product/rk3399_firefly_mid/recovery/root/sbin/adbd ) && (echo Modifying ramdisk contents... ) && (rm -f out/target/product/rk3399_firefly_mid/recovery/root/init*.rc ) && (cp -f bootable/recovery/etc/init.rc out/target/product/rk3399_firefly_mid/recovery/root/ ) && (cp out/target/product/rk3399_firefly_mid/root/init.*usb*.rc out/target/product/rk3399_firefly_mid/recovery/root/ ) && (cp out/target/product/rk3399_firefly_mid/root/init.recovery.*.rc out/target/product/rk3399_firefly_mid/recovery/root/ || true ) && (mkdir -p out/target/product/rk3399_firefly_mid/recovery/root/res ) && (rm -rf out/target/product/rk3399_firefly_mid/recovery/root/res/* ) && (cp -rf bootable/recovery/res-hdpi/* out/target/product/rk3399_firefly_mid/recovery/root/res ) && (cp -f bootable/recovery/fonts/12x22.png out/target/product/rk3399_firefly_mid/recovery/root/res/images/font.png ) && (device/rockchip/common/build_wifi_ko.sh arm64 out/target/product/rk3399_firefly_mid/vendor ) && (device/rockchip/common/recovery_contents.sh rk3399_firefly_mid out/target/product/rk3399_firefly_mid rk3399 false arm64 ) && (cp -f  device/rockchip/rk3399/rk3399_firefly_mid/recovery.fstab out/target/product/rk3399_firefly_mid/recovery/root/etc/ ) && (cp out/target/product/rk3399_firefly_mid/obj/PACKAGING/ota_keys_intermediates/keys out/target/product/rk3399_firefly_mid/recovery/root/res/keys ) && (cat out/target/product/rk3399_firefly_mid/system/etc/prop.default > out/target/product/rk3399_firefly_mid/recovery/root/prop.default ) && (cat out/target/product/rk3399_firefly_mid/vendor/default.prop >> out/target/product/rk3399_firefly_mid/recovery/root/prop.default ) && (cat out/target/product/rk3399_firefly_mid/obj/ETC/system_build_prop_intermediates/build.prop out/target/product/rk3399_firefly_mid/vendor/build.prop >> out/target/product/rk3399_firefly_mid/recovery/root/prop.default ) && (ln -sf prop.default out/target/product/rk3399_firefly_mid/recovery/root/default.prop ) && (out/host/linux-x86/bin/mkbootfs -d out/target/product/rk3399_firefly_mid/system out/target/product/rk3399_firefly_mid/recovery/root | out/host/linux-x86/bin/minigzip > out/target/product/rk3399_firefly_mid/ramdisk-recovery.img ) && (out/host/linux-x86/bin/mkbootimg  --kernel out/target/product/rk3399_firefly_mid/kernel  --ramdisk out/target/product/rk3399_firefly_mid/ramdisk-recovery.img --cmdline \"buildvariant=userdebug\" --os_version 8.1.0 --os_patch_level 2018-07-05  --output  out/target/product/rk3399_firefly_mid/recovery.img --id > out/target/product/rk3399_firefly_mid/recovery.id ) && (echo ----- Made recovery image:  out/target/product/rk3399_firefly_mid/recovery.img -------- )"
Copying baseline ramdisk...
/bin/bash: rsync: command not found
[ 98% 77426/78946] target SharedLib: libpac_32 (out/target/product/rk3399_firefly_mid/obj_arm/SHARED_LIBRARIES/libpac_intermediates/LINKED/libpac.so)
ninja: build stopped: subcommand failed.
04:33:35 ninja failed with: exit status 1
回复

使用道具 举报

45

积分

0

威望

0

贡献

技术小白

积分
45
发表于 2019-12-16 13:59:08        只看该作者  6#
问题已解决。需要安装一下 rsync。
> sudo apt-get install rsync
之后再次编译。
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2019-12-16 15:44:10        只看该作者  7#
zacmoon 发表于 2019-12-16 13:59
问题已解决。需要安装一下 rsync。
> sudo apt-get install rsync
之后再次编译。

回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表