• Lv0
    粉丝0

积分0 / 贡献0

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

作者动态

    OpenHarmony 5.0 Release始终编译不过,不论是tag 还是 branch的代码。。。

    Jianwei Mao 显示全部楼层 发表于 2024-11-4 15:53:14

    OpenHarmony 5.0 Release始终编译不过,不论是tag 还是 branch的代码。。。

    下载了代码,执行了prebuild_download.sh,采用./build.sh --product-name rk3568 --ccache编译好多次都是这个问题。

    从root用户换成普通用户、下载多次代码、下载多次依赖库。都依然是这个问题。该怎么搞?从哪排查?需要什么日志?

    [OHOS ERROR] [12950/20364] ACTION //applications/standard/dlp_manager:dlp_manager_compile_app(//build/toolchain/ohos:ohos_clang_arm) [OHOS ERROR] FAILED: obj/applications/standard/dlp_manager/dlp_manager/unsigned_hap_path_list.json [OHOS ERROR] /usr/bin/env ../../build/scripts/compile_app.py --nodejs ../../prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/node --cwd ../../applications/standard/dlp_manager/ --build-profile ../../applications/standard/dlp_manager/build-profile.json5 --sdk-home /home/ip/mao/openharmony/openharmony500tag/prebuilts/ohos-sdk/linux --output-file obj/applications/standard/dlp_manager/dlp_manager/unsigned_hap_path_list.json --ohpm-registry --build-level module --assemble-type assembleHap --sdk-type-name sdk.dir --build-modules entry --hvigor-obfuscation [OHOS ERROR] build_profile:../../applications/standard/dlp_manager/build-profile.json5; cwd:/home/ip/mao/openharmony/openharmony500tag/applications/standard/dlp_manager [OHOS ERROR] modules_list:[{'name': 'entry', 'srcPath': './entry', 'targets': [{'name': 'default', 'applyToProducts': ['default']}]}]

    [OHOS ERROR] [12951/20364] ACTION //applications/standard/permission_manager:permission_manager_compile_app(//build/toolchain/ohos:ohos_clang_arm) [OHOS ERROR] FAILED: obj/applications/standard/permission_manager/permission_manager/unsigned_hap_path_list.json [OHOS ERROR] /usr/bin/env ../../build/scripts/compile_app.py --nodejs ../../prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/node --cwd ../../applications/standard/permission_manager/ --build-profile ../../applications/standard/permission_manager/build-profile.json5 --sdk-home /home/ip/mao/openharmony/openharmony500tag/prebuilts/ohos-sdk/linux --output-file obj/applications/standard/permission_manager/permission_manager/unsigned_hap_path_list.json --ohpm-registry --build-level module --assemble-type assembleHap --sdk-type-name sdk.dir --build-modules permissionmanager --hvigor-obfuscation [OHOS ERROR] build_profile:../../applications/standard/permission_manager/build-profile.json5; cwd:/home/ip/mao/openharmony/openharmony500tag/applications/standard/permission_manager [OHOS ERROR] modules_list:[{'name': 'entry', 'srcPath': './entry', 'targets': [{'name': 'default', 'applyToProducts': ['default']}]}, {'name': 'permissionmanager', 'srcPath': './permissionmanager', 'targets': [{'name': 'default', 'applyToProducts': ['default']}]}]

    [OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] return func(*args, *kwargs) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/modules/ohos_build_module.py", line 67, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/modules/ohos_build_module.py", line 65, in run [OHOS ERROR] super().run() [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/modules/interface/build_module_interface.py", line 70, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/modules/interface/build_module_interface.py", line 68, in run [OHOS ERROR] self._ninja() [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/util/timer_util.py", line 30, in inner [OHOS ERROR] res = func(arg, **kwarg) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/modules/interface/build_module_interface.py", line 125, in _ninja [OHOS ERROR] self._target_compilation() [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/modules/ohos_build_module.py", line 102, in _target_compilation [OHOS ERROR] self.target_compiler.run() [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/services/ninja.py", line 38, in run [OHOS ERROR] self._execute_ninja_cmd() [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd [OHOS ERROR] SystemUtil.exec_command( [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/build/hb/util/system_util.py", line 75, in exec_command [OHOS ERROR] LogUtil.get_failed_log(log_path) [OHOS ERROR] File "/home/ip/mao/openharmony/openharmony500tag/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/ip/mao/openharmony/openharmony500tag/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/ip/mao/openharmony/openharmony500tag/out/rk3568/error.log, and for more build information in /home/ip/mao/openharmony/openharmony500tag/out/rk3568/build.log [OHOS ERROR]

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

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

    精彩评论5

    fengyunrenwu

    沙发 发表于 2024-11-6 15:07:56
    执行下命令,看看结果是啥?

    fengyunrenwu

    板凳 发表于 2024-11-11 15:20:01
    可以在out/rk3568目录下执行一下这个命令,看看是什么报错信息?

    /usr/bin/env../../build/scripts/compile_app.py --nodejs ../../prebuilts/build-
    tools/common/nodejs/node-v16.20.2-linux-x64/bin/node --cwd
    ../../applications/standard/dlp_manager/--bulid-profile
    ../../applications/standard/dlp_manager/bulid-profile.json5 --sdk-home
    /home/ip/mao/openharmony/openharmony500tag/prebuilts/ohos-sdk/linux--output-file
    obj/applications/standard/dlp_manager/dlp_manager/unsigned_hap_path_list.json--ohpm-
    registry--build-level module --assemble-type assembleHap  --sdk-type-name sdk.dir --build-
    modules entry --hvigor-obfuscation

    深开鸿_王石

    地板 发表于 2024-11-12 08:13:41
    上面应该有啥错,log不全,你看看有没啥隐藏文件夹,比如.ccache,.hvigor等,在你的用户路径下,或者是找找有没有hvigor

    平常心

    5# 发表于 2024-11-13 17:53:08
    今天我也是编译不过5.0Release版本的,也是这个错误

    HIT-yuchen

    6# 发表于 5 天前
    请问解决了吗,我也遇到这个问题
    共5 条回复,点击查看

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

    返回顶部