• Lv0
    粉丝0

积分0 / 贡献0

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

作者动态

OpenHarmony-5.0-Release编译报错

songqi 显示全部楼层 发表于 昨天 16:46

./build.sh --product-name rk3568 --ccache --no-prebuilt-sdk

ubuntu20.04

[OHOS INFO] [11645/27828] ACTION //applications/standard/dlp_manager:dlp_manager_compile_app(//build/toolchain/ohos:ohos_clang_arm) [OHOS INFO] [0/0] ohpm_install_cmd:['ohpm', 'install'] [OHOS INFO] [0/0] ohpm DEBUG: start lock, pid: 3733701 [OHOS INFO] [0/0] [OHOS INFO] [0/0] project dir: /home/songqi037/hongmeng5.0/applications/standard/dlp_manager [OHOS INFO] [0/0] model_version: None [OHOS INFO] [0/0] hvigor cmd: bash ./hvigorw assembleHap --mode module -p product=default -p module=entry -p debuggable=false -p buildMode=release --no-daemon [OHOS INFO] [0/0] Hvigor clean start [OHOS INFO] [0/0] Hvigor build start [OHOS INFO] [1/1] Hvigor info: > hvigor CPU Architecture: x86_64 [OHOS INFO] [1/1] Hvigor info: [OHOS INFO] [2/2] Hvigor warning: > hvigor ERROR: Unable to find the following components: [OHOS INFO] [2/2] Hvigor warning: toolchains:12 [OHOS INFO] [2/2] Hvigor warning: Detail: [OHOS INFO] [2/2] Hvigor warning: 1.Go to Tools > SDK Manager > SDK > OpenHarmony, download the components, and sync the project. Open SDK Manager [OHOS INFO] [2/2] Hvigor warning: 2.Alternatively, modify the compileSdkVersion settings in the project-level build-profile.json5 file. [OHOS INFO] [2/2] Hvigor warning: > hvigor ERROR: BUILD FAILED in 1 s 914 ms [OHOS INFO] [11646/27828] ACTION //applications/standard/permission_manager:permission_manager_compile_app(//build/toolchain/ohos:ohos_clang_arm) [OHOS INFO] [0/0] ohpm_install_cmd:['ohpm', 'install'] [OHOS INFO] [0/0] ohpm DEBUG: start lock, pid: 3733714 [OHOS INFO] [0/0] [OHOS INFO] [0/0] project dir: /home/songqi037/hongmeng5.0/applications/standard/permission_manager [OHOS INFO] [0/0] model_version: None [OHOS INFO] [0/0] hvigor cmd: bash ./hvigorw assembleHap --mode module -p product=default -p module=permissionmanager -p debuggable=false -p buildMode=release --no-daemon [OHOS INFO] [0/0] Hvigor clean start [OHOS INFO] [0/0] Hvigor build start [OHOS INFO] [1/1] Hvigor info: > hvigor CPU Architecture: x86_64 [OHOS INFO] [1/1] Hvigor info: [OHOS INFO] [2/2] Hvigor warning: > hvigor ERROR: Unable to find the following components: [OHOS INFO] [2/2] Hvigor warning: toolchains:12 [OHOS INFO] [2/2] Hvigor warning: Detail: [OHOS INFO] [2/2] Hvigor warning: 1.Go to Tools > SDK Manager > SDK > OpenHarmony, download the components, and sync the project. Open SDK Manager [OHOS INFO] [2/2] Hvigor warning: 2.Alternatively, modify the compileSdkVersion settings in the project-level build-profile.json5 file. [OHOS INFO] [2/2] Hvigor warning: > hvigor ERROR: BUILD FAILED in 1 s 989 ms [OHOS INFO] [11647/27828] SOLINK hdf/drivers_peripheral_clearplay/libmedia_key_system_factory_clearplay_service_1.0.z.so [OHOS INFO] [11648/27828] SOLINK telephony/sms_mms/libtel_sms_mms_api.z.so [OHOS INFO] [11649/27828] SOLINK hdf/drivers_peripheral_camera/libcamera_daemon.so [OHOS INFO] [11650/27828] SOLINK hdf/drivers_peripheral_pin_auth/libpin_auth_interface_service_2.0.z.so [OHOS INFO] [11651/27828] SOLINK hdf/drivers_peripheral_user_auth/libuser_auth_interface_service_2.0.z.so [OHOS INFO] [11652/27828] ACTION //third_party/jsframework:gen_snapshot(//build/toolchain/ohos:ohos_clang_arm) [OHOS INFO] end hpm command

[OHOS ERROR] [11645/27828] 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 --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] [11646/27828] 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=====

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

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

返回顶部