通过命令编写小型系统测试套件

hb set
选择 设备类型
hb build --gn-args build_xts=true
(注):若不追加--gn-args build_xts=true,不会编译acts测试套件。

执行 hb build --gn-args build_xts=true 后出现以下错误;

[OHOS INFO] [2739/3756] ACTION //kernel/liteos_a:make(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] [2732/3756] ACTION //kernel/liteos_a/apps/toybox:build_toybox(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/kernel/liteos_a/apps/toybox/build_toybox_build_ext_components.txt unstripped/bin/toybox bin/toybox 
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/build_ext_components.py --path=/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/toybox_build --command=rm\ -rf\ .git\ \&\&\ cp\ -rfp\ porting/liteos_a/.\ .\ \&\&\ env\ CC=\"ccache\ /home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang\"\ STRIP=\"ccache\ /home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-strip\ --strip-unneeded\"\ OUTNAME=toybox\ CFLAGS=\"-fstack-protector-strong\ -D_FORTIFY_SOURCE=2\ -mfloat-abi=softfp\ -mfpu=neon-vfpv4\ -mcpu=cortex-a7\ --target=arm-liteos\ --sysroot=/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/sysroot\"\ make\ toybox\ \&\&\ install\ -D\ toybox\ ../../../../../../bin/toybox\ \&\&\ install\ -D\ generated/unstripped/toybox\ ../../../../../../unstripped/bin/toybox --target_dir=/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/build.log --out_dir=/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/error.log
[OHOS ERROR] scripts/genconfig.sh
[OHOS ERROR] make[1]: Entering directory '/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/toybox_build'
[OHOS ERROR] cc -o kconfig/conf kconfig/conf.c kconfig/zconf.tab.c -DKBUILD_NO_NLS=1 \
[OHOS ERROR]     -DPROJECT_NAME=\"ToyBox\"
[OHOS ERROR] kconfig/conf -D /home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/toybox_build/../liteos_a_custom.config Config.in > /dev/null
[OHOS ERROR] make[1]: Leaving directory '/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/toybox_build'
[OHOS ERROR] scripts/make.sh
[OHOS ERROR] Generate headers from toys/*/*.c...
[OHOS ERROR] Library probe...........
[OHOS ERROR] Make generated/config.h from .config.
[OHOS ERROR] generated/flags.h scripts/make.sh: line 197: arm-linux-gnueabi-ccache: command not found
[OHOS ERROR] scripts/make.sh: line 197: arm-linux-gnueabi-ccache: command not found
[OHOS ERROR] Makefile:19: recipe for target 'toybox' failed
[OHOS ERROR] make: *** [toybox] Error 1
[OHOS ERROR] cmd:rm -rf .git 
[OHOS ERROR] cost time:0:00:00
[OHOS ERROR] cmd: cp -rfp porting/liteos_a/. . 
[OHOS ERROR] cost time:0:00:00
[OHOS ERROR] you can check build log in /home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/build.log
[OHOS ERROR] command: "/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries" failed
[OHOS ERROR] return code: 1
[OHOS ERROR] execution path: /home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony
 

 

这是error.log

scripts/genconfig.sh
make[1]: Entering directory '/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/toybox_build'
cc -o kconfig/conf kconfig/conf.c kconfig/zconf.tab.c -DKBUILD_NO_NLS=1 \
    -DPROJECT_NAME=\"ToyBox\"
kconfig/conf -D /home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/toybox_build/../liteos_a_custom.config Config.in > /dev/null
make[1]: Leaving directory '/home/devicetool/Desktop/ff/code-v3.0-LTS/OpenHarmony/out/hispark_aries/ipcamera_hispark_aries/obj/kernel/liteos_a/apps/toybox/toybox_build'
scripts/make.sh
Generate headers from toys/*/*.c...
Library probe...........
Make generated/config.h from .config.
generated/flags.h scripts/make.sh: line 197: arm-linux-gnueabi-ccache: command not found
scripts/make.sh: line 197: arm-linux-gnueabi-ccache: command not found
Makefile:19: recipe for target 'toybox' failed
make: *** [toybox] Error 1
cmd:rm -rf .git 
cost time:0:00:00
cmd: cp -rfp porting/liteos_a/. . 
cost time:0:00:00

咋解决呀????????? 

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐