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 编译报错,求助
4933浏览 • 3回复 待解决
编译OpenHarmony2.0失败求助一下
8893浏览 • 3回复 已解决
repo+https下载openharmony2.2出错,求助
6902浏览 • 1回复 待解决
DevEcoStudio2.2 Beta1中模拟器
7722浏览 • 2回复 已解决
安装HUAWEI DevEco Device Tool 1.0 Beta1失败
14201浏览 • 3回复 已解决
openharmony 交叉编译openjdk报错
906浏览 • 1回复 待解决
编译release包失败
231浏览 • 1回复 待解决
OpenHarmony dcts无法编译通过
3485浏览 • 0回复 待解决
OpenHarmony提示同步失败:sync Failed
3764浏览 • 1回复 待解决
求助】自定义相机Camera2焦距异常
7989浏览 • 1回复 待解决
OpenHarmony 编译原生设置settings报错
3013浏览 • 0回复 待解决
openHarmony2.0 hb编译问题
11032浏览 • 5回复 待解决
HarmonyOS sm2验签失败
38浏览 • 1回复 待解决
OpenHarmony L1 Samgr No Permission-2
7986浏览 • 2回复 待解决
OpenHarmony3.1release 连接服务失败
6156浏览 • 1回复 待解决