OpenHarmony开发者论坛

标题: OpenHarmony-5.0-Release编译报错 [打印本页]

作者: songqi    时间: 2024-9-12 14:12
标题: OpenHarmony-5.0-Release编译报错
[md]./build.sh --product-name rk3568 --ccache


ubuntu18.04 OpenHarmony-5.0-Release分支


[OHOS INFO] end hpm command

[OHOS ERROR] [11543/28707] 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/songqi037/hongmeng5.0/prebuilts/ohos-sdk/linux --output-file obj/applications/standard/dlp_manager/dlp_manager/unsigned_hap_path_list.json --ohpm-registry  --enable-debug --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/songqi037/hongmeng5.0/applications/standard/dlp_manager
[OHOS ERROR] modules_list:[{'name': 'entry', 'srcPath': './entry', 'targets': [{'name': 'default', 'applyToProducts': ['default']}]}]

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

[OHOS ERROR] Code:        4000
[OHOS ERROR]
[OHOS ERROR] Reason:      COMPILE Failed! Please check error in /home/songqi037/hongmeng5.0/out/rk3568/error.log, and for more build information in /home/songqi037/hongmeng5.0/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=====
[/md]
作者: songqi    时间: 6 天前
这边看是--sdk-home /home/songqi037/hongmeng5.0/prebuilts/ohos-sdk目录没有,是sdk没下载吗,这种情况需要怎么检查




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5