OpenHarmony-2.2-Beta2 编译失败,求助

Hunk #2 FAILED at 241.
1 out of 2 hunks FAILED -- saving rejects to file library/sha512.c.rej
patching file library/timing.c
make[6]: *** [/home/openharmony/out/KERNEL_OBJ/sdk_linux/src_tmp/src/interdrv/common/cipher/mbedtls_prepare/linux.mak:26: mbedtls_patch] Error 1
make[6]: Leaving directory '/home/openharmony/out/KERNEL_OBJ/sdk_linux/src_tmp/src/interdrv/common/cipher/mbedtls_prepare'
make[5]: *** [/home/openharmony/out/KERNEL_OBJ/sdk_linux/src_tmp/src/interdrv/common/cipher/src/linux.mak:41: mbedtls_prepare] Error 2
make[5]: Leaving directory '/home/openharmony/out/KERNEL_OBJ/sdk_linux/src_tmp/src/interdrv/common/cipher/src'
make[4]: *** [Makefile:21: default] Error 2
make[4]: Leaving directory '/home/openharmony/out/KERNEL_OBJ/sdk_linux/src_tmp/src/interdrv/common/cipher'
/bin/sh: exit1: command not found
make[3]: *** [Makefile:54: cipher] Error 127
make[3]: *** Waiting for unfinished jobs....

我所用的代码下载命令为:

repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-2.2-Beta2
repo sync -c
repo forall -c 'git lfs pull' 

编译使用的命令为:

./build.sh --product-name Hi3516DV300 --ccache

OpenHarmony
2021-08-04 14:25:12
浏览
收藏 0
回答 1
已解决
回答 1
按赞同
/
按时间
HMFanXinhao
3

您好,建议参考一下其他博主的案例,例如:https://harmonyos.51cto.com/posts/7608

初步怀疑是您的环境有问题。

也可以尝试去除--ccache选项再试试,gitee的教程:

https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-standard-package-environment.md

分享
微博
QQ
微信
回复
2021-08-06 15:44:01
相关问题
OpenHarmony-v4.0-Beta1 编译报错,求助
3272浏览 • 3回复 待解决
编译OpenHarmony2.0失败求助一下
7585浏览 • 3回复 已解决
repo+https下载openharmony2.2出错,求助
5279浏览 • 1回复 待解决
DevEcoStudio2.2 Beta1中模拟器
6293浏览 • 2回复 已解决
安装HUAWEI DevEco Device Tool 1.0 Beta1失败
12919浏览 • 3回复 已解决
openharmony 交叉编译openjdk报错
257浏览 • 1回复 待解决
求助】自定义相机Camera2焦距异常
6676浏览 • 1回复 待解决
OpenHarmony提示同步失败:sync Failed
1119浏览 • 1回复 待解决
OpenHarmony dcts无法编译通过
2259浏览 • 0回复 待解决
OpenHarmony L1 Samgr No Permission-2
6437浏览 • 2回复 待解决
macOS 编译 Paddle-Lite 失败
435浏览 • 1回复 待解决
OpenHarmony3.1release 连接服务失败
4718浏览 • 1回复 待解决
OpenHarmony 编译原生设置settings报错
1684浏览 • 0回复 待解决
openHarmony2.0 hb编译问题
9395浏览 • 5回复 待解决
Openharmony 编译 openssl 依赖 icu库报错
805浏览 • 0回复 待解决