• Lv3
    粉丝0

积分0 / 贡献0

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

作者动态

    【OpenHarmony5.0】编译出错

    soilsky 显示全部楼层 发表于 前天 10:04

    【问题描述】

    1. 下载OpenHarmony5.0全新代码,未做修改,
    2. 在ubuntu18.04上,直接./build.sh --product-name rk3568 --ccache --no-prebuilt-sdk 编译
    3. 错误提示

    [OHOS INFO] [12152/14972] ACTION //applications/standard/applications_auth_widget:auth_widget__js_assets(//build/toolchain/ohos:ohos_clang_arm) [OHOS INFO] end hpm command

    [OHOS ERROR] [12135/14985] ACTION //arkcompiler/runtime_core/static_core/irtoc:irtoc_generate(//build/toolchain/ohos:ohos_clang_arm) [OHOS ERROR] FAILED: gen/ark_sig/generated/irtoc_lib.o [OHOS ERROR] /usr/bin/env clang_x64/arkcompiler/runtime_core/irtoc --irtoc-output gen/ark_sig/generated/irtoc_lib.o --compiler-cross-arch arm

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

    [OHOS ERROR] Code: 4000 [OHOS ERROR] [OHOS ERROR] Reason: COMPILE Failed! Please check error in /home/xuegang/bin/out/rk3568/error.log, and for more build information in /home/xuegang/bin/out/rk3568/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] =====build error=====

    4.尝试了重新清理后编译,以及全新代码编译都报相同的错误。

    【运行环境】

    硬件:ubuntu18.04 ROM版本:无 DevEvoStudio版本:无 SDK版本:无

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

    精彩评论4

    onefan

    沙发 发表于 前天 10:34
    ./build.sh --product-name rk3568 --ccach能编过吗?
    不行的话 再执行下bash build/prebuilts_download.sh --skip-ssl再编译

    soilsky

    板凳 发表于 前天 10:49
    1. ./build.sh --product-name rk3568 --ccache 用这个编译提示相同的错误。
    2. bash build/prebuilts_download.sh --skip-ssl 编译前已经执行通过了,没有报错误。
    3.而且尝试了全部清理,增加内存到39G 问题都是这个错误提示,
    请问大佬有啥建议吗?

    soilsky

    地板 发表于 前天 11:04
    1  ./build.sh --product-name rk3568 --ccach能编过吗?
        编译过,一样的错误提示。
    2  不行的话 再执行下bash build/prebuilts_download.sh --skip-ssl再编译
         编译前已经执行过了,没有异常。
    3. 编译机内存已经扩到40GB了,还是一样的错误。

    onefan

    5# 发表于 前天 11:41
    sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
    共4 条回复,点击查看

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

    返回顶部