From 54b75ae79eb3864f34d9542ac20e0760cb6a61cc Mon Sep 17 00:00:00 2001 From: Sam <530566495@qq.com> Date: Thu, 17 Sep 2020 14:31:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B8=B8=E8=A7=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...70\350\247\201\351\227\256\351\242\230.md" | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git "a/quick-start/\345\270\270\350\247\201\351\227\256\351\242\230.md" "b/quick-start/\345\270\270\350\247\201\351\227\256\351\242\230.md" index cb7ec502983..0127dc952d3 100755 --- "a/quick-start/\345\270\270\350\247\201\351\227\256\351\242\230.md" +++ "b/quick-start/\345\270\270\350\247\201\351\227\256\351\242\230.md" @@ -221,3 +221,40 @@ ![](figures/zh-cn_image_0000001055674130.png) +**问题 10:编译构建过程中,提示找不到“patch: command not found”。** + +- **现象描述** + + ``` + [194/197] ACTION //build/lite:gen_rootfs(//build/lite/toolchain:linux_x86_64_riscv32_gcc) + [195/197] STAMP obj/build/lite/gen_rootfs.stamp + [196/197] ACTION //vendor/hisi/hi3861/hi3861:run_wifiiot_scons(//build/lite/toolchain:linux_x86_64_riscv32_gcc) + FAILED: obj/vendor/hisi/hi3861/hi3861/run_wifiiot_scons_build_ext_components.txt + python ../../build/lite/build_ext_components.py --path=../../vendor/hisi/hi3861/hi3861 --command=sh\ hm_build.sh + /harmonyos/giteecode/vendor/hisi/hi3861/hi3861/build_patch.sh: line 25: patch: command not found + Traceback (most recent call last): + File "../../build/lite/build_ext_components.py", line 64, in + sys.exit(main()) + File "../../build/lite/build_ext_components.py", line 58, in main + cmd_exec(args.command) + File "../../build/lite/build_ext_components.py", line 32, in cmd_exec + raise Exception("{} failed, return code is {}".format(cmd, ret_code)) + Exception: ['sh', 'hm_build.sh'] failed, return code is 127 + ninja: build stopped: subcommand failed. + you can check build log in /harmonyos/giteecode/out/wifiiot/build.log + /harmonyos/_docker/ninja/ninja -w dupbuild=warn -C /harmonyos/giteecode/out/wifiiot failed, return code is 1 + ``` + + +- **可能原因** + + 系统未安装patch + + +- **解决办法** + + 安装patch,centos使用 + ``` + yum -y install patch + ``` + -- Gitee