• Lv0
    粉丝0

积分0 / 贡献0

提问2答案被采纳0文章0

使用 sudo ./build.sh -p rk3568 -t arm64 --ccache--no-prebuilt-sdk 不能编译成功,报错如下:

zyxzyx 显示全部楼层 发表于 6 天前

使用./build.sh -p rk3568 -t arm64 --ccache报错:

[OHOS ERROR] Code: 4000 [OHOS ERROR] [OHOS ERROR] Reason: COMPILE Failed! Please check error in /home/zhang/Desktop/master_code/out/sdk/error.log, and for more build information in /home/zhang/Desktop/master_code/out/sdk/build.log [OHOS ERROR] [OHOS ERROR] Error Type: Ninja build error [OHOS ERROR] [OHOS ERROR] Description: An unknown error occurred while executing 'ninja -C'. [OHOS ERROR] [OHOS ERROR] Solution: no solution [OHOS ERROR] [OHOS ERROR] ohos-sdk build failed! You can try to use '--no-prebuilt-sdk' to skip the build of ohos-sdk.

按着提示加入'--no-prebuilt-sdk'后使用 sudo ./build.sh -p rk3568 -t arm64 --ccache--no-prebuilt-sdk 依旧不能编译成功,报错如下:

[OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] return func(*args, **kwargs) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/modules/ohos_build_module.py", line 70, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/modules/ohos_build_module.py", line 67, in run [OHOS ERROR] super().run() [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/modules/interface/build_module_interface.py", line 70, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/modules/interface/build_module_interface.py", line 68, in run [OHOS ERROR] self._ninja() [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/util/timer_util.py", line 30, in inner [OHOS ERROR] res = func(*arg, **kwarg) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/modules/interface/build_module_interface.py", line 125, in _ninja [OHOS ERROR] self._target_compilation() [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/modules/ohos_build_module.py", line 105, in _target_compilation [OHOS ERROR] self.target_compiler.run() [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/services/ninja.py", line 38, in run [OHOS ERROR] self._execute_ninja_cmd() [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd [OHOS ERROR] SystemUtil.exec_command( [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/util/system_util.py", line 77, in exec_command [OHOS ERROR] LogUtil.get_failed_log(log_path) [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/util/log_util.py", line 192, in get_failed_log [OHOS ERROR] LogUtil.get_ninja_failed_log(log_path) [OHOS ERROR] File "/home/zhang/Desktop/master_code/build/hb/util/log_util.py", line 157, in get_ninja_failed_log [OHOS ERROR] raise OHOSException( [OHOS ERROR] exceptions.ohos_exception.OHOSException: NINJA Failed! Please check error in /home/zhang/Desktop/master_code/out/rk3568/error.log, and for more build information in /home/zhang/Desktop/master_code/out/rk3568/build.log [OHOS ERROR]

[OHOS ERROR] Code: 4016 [OHOS ERROR] [OHOS ERROR] Reason: NINJA Failed! Please check error in /home/zhang/Desktop/master_code/out/rk3568/error.log, and for more build information in /home/zhang/Desktop/master_code/out/rk3568/build.log [OHOS ERROR] [OHOS ERROR] Error Type: ninja build error: missing and no known rule to make it [OHOS ERROR] [OHOS ERROR] Description: Ninja build error. The ninja build system cannot find the target. [OHOS ERROR] [OHOS ERROR] Solution: Please check the target file is exists. [OHOS ERROR] =====build error=====

【运行环境】

ubuntu20.04

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论1

Hazel

沙发 发表于 5 天前
sudo ./build.sh -p rk3568 --target-cpu arm64 --ccache --no-prebuilt-sdk 这个试试呢

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部