OpenHarmony开发者论坛

标题: RK3588 OpenHarmony5.0.0编译报错 [打印本页]

作者: lele    时间: 2025-2-27 14:29
标题: RK3588 OpenHarmony5.0.0编译报错
[md]### 【问题描述】

1. 从OpenHarmony代码仓库clone了v5.0.0-Release代码未进行任何修改的情况下进行编译,编译命令为:./build.sh  --product-name dayu210  --ccache --no-prebuilt-sdk,结果编译报错,下面这个报错暂时没找到相关解决方法,故而在此寻求大佬帮助!
2. 相关的代码
   编译命令:./build.sh  --product-name dayu210  --ccache --no-prebuilt-sdk
3. 运行结果、错误截图
   编译报错如下:



[OHOS ERROR] [GN] ERROR at //foundation/filemanagement/storage_service/test/fuzztest/storagedaemon_fuzzer/BUILD.gn💯24: OHOS component : (tee_client) not found.

[OHOS ERROR] [GN]     external_deps += [ "tee_client:libteec" ]

[OHOS ERROR] [GN]                        ^-------------------

[OHOS ERROR] [GN] See //build/templates/cxx/cxx.gni:263:3: whence it was called.

[OHOS ERROR] [GN]   executable("${target_name}") {

[OHOS ERROR] [GN]   ^-----------------------------

[OHOS ERROR] [GN] See //build/test.gni:147:3: whence it was called.

[OHOS ERROR] [GN]   ohos_executable(target_name) {

[OHOS ERROR] [GN]   ^-----------------------------

[OHOS ERROR] [GN] See //build/test.gni:271:5: whence it was called.

[OHOS ERROR] [GN]     _ohos_test(target_name) {

[OHOS ERROR] [GN]     ^------------------------

[OHOS ERROR] [GN] See //foundation/filemanagement/storage_service/test/fuzztest/storagedaemon_fuzzer/BUILD.gn:18:1: whence it was called.

[OHOS ERROR] [GN] ohos_fuzztest("StorageDaemonFuzzTest") {

[OHOS ERROR] [GN] ^---------------------------------------

[OHOS ERROR] [GN] See //foundation/filemanagement/storage_service/test/fuzztest/BUILD.gn:25:5: which caused the file to be included.

[OHOS ERROR] [GN]     "${storage_service_path}/test/fuzztest/storagedaemon_fuzzer:StorageDaemonFuzzTest",

[OHOS ERROR] [GN]     ^---------------------------------------------------------------------------------

[OHOS ERROR] [GN] e2fsprogs installed successfully

[OHOS ERROR] [GN] Reading plugin sources: ets (//build/toolchain/linux:clang_x64)

[OHOS ERROR] [GN] target_out_dir //out/rk3588/clang_x64/obj/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest

[OHOS ERROR] [GN] target_dir /data/jiale.chen/share/openHarmony/out/rk3588/clang_x64/obj/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest

[OHOS ERROR] [GN] test_abc_dir /data/jiale.chen/share/openHarmony/out/rk3588/clang_x64/obj/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest

[OHOS ERROR] [GN] Set module_install_dir or relative_install_dir field in the //foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_user_bundle:ui_extension_user_hap(//build/toolchain/ohos:ohos_clang_arm64). Do not install the module to app.

[OHOS ERROR] [GN] Set module_install_dir or relative_install_dir field in the //foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_provider_bundle:ui_extension_provider_hap(//build/toolchain/ohos:ohos_clang_arm64). Do not install the module to app.

[OHOS ERROR] [GN] libunwind_action is exec

[OHOS ERROR] [GN] Reading plugin sources: ets (//build/toolchain/mingw:mingw_x86_64)

[OHOS ERROR] [GN] target_out_dir //out/rk3588/mingw_x86_64/obj/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest

[OHOS ERROR] [GN] target_dir /data/jiale.chen/share/openHarmony/out/rk3588/mingw_x86_64/obj/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest

[OHOS ERROR] [GN] test_abc_dir /data/jiale.chen/share/openHarmony/out/rk3588/mingw_x86_64/obj/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest

[OHOS ERROR] [GN] cmd ['/data/jiale.chen/share/openHarmony/third_party/openssl/make_openssl_build_all_generated.sh', '/data/jiale.chen/share/openHarmony/third_party/openssl', '/data/jiale.chen/share/openHarmony/out/rk3588/obj/third_party/openssl/build_all_generated', 'linux-aarch64', 'true'] start

[OHOS ERROR] [GN] result.returncode = 0

[OHOS ERROR] [GN] result.stdout = /data/jiale.chen/share/openHarmony/out/rk3588

[OHOS ERROR] [GN] ~/share/openHarmony/out/rk3588/obj/third_party/openssl/build_all_generated ~/share/openHarmony/out/rk3588

[OHOS ERROR] [GN] openssl enable liblegacy

[OHOS ERROR] [GN] /data/jiale.chen/share/openHarmony/third_party/openssl/Configure linux-aarch64 no-shared no-module no-filenames

[OHOS ERROR] [GN] Configuring OpenSSL version 3.0.9 for target linux-aarch64

[OHOS ERROR] [GN] Using os-specific seed configuration

[OHOS ERROR] [GN] Created configdata.pm

[OHOS ERROR] [GN] Running configdata.pm

[OHOS ERROR] [GN] Created Makefile.in

[OHOS ERROR] [GN] Created Makefile

[OHOS ERROR] [GN] Created include/openssl/configuration.h

[OHOS ERROR] [GN]

[OHOS ERROR] [GN] **********************************************************************

[OHOS ERROR] [GN] ***                                                                ***

[OHOS ERROR] [GN] ***   OpenSSL has been successfully configured                     ***

[OHOS ERROR] [GN] ***                                                                ***

[OHOS ERROR] [GN] ***   If you encounter a problem while building, please open an    ***

[OHOS ERROR] [GN] ***   issue on GitHub [https://github.com/openssl/openssl/issues](https://github.com/openssl/openssl/issues)  ***

[OHOS ERROR] [GN] Traceback (most recent call last):
[OHOS ERROR] [GN]   File "/data/jiale.chen/share/openHarmony/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] [GN]     return func(*args, **kwargs)
[OHOS ERROR] [GN]            ^^^^^^^^^^^^^^^^^^^^^
[OHOS ERROR] [GN]   File "/data/jiale.chen/share/openHarmony/build/hb/services/gn.py", line 128, in _execute_gn_gen_cmd
[OHOS ERROR] [GN]     SystemUtil.exec_command(gn_gen_cmd, self.config.log_path)
[OHOS ERROR] [GN]   File "/data/jiale.chen/share/openHarmony/build/hb/util/system_util.py", line 73, in exec_command
[OHOS ERROR] [GN]     LogUtil.get_failed_log(log_path)
[OHOS ERROR] [GN]   File "/data/jiale.chen/share/openHarmony/build/hb/util/log_util.py", line 207, in get_failed_log
[OHOS ERROR] [GN]     LogUtil.get_gn_failed_log(log_path)
[OHOS ERROR] [GN]   File "/data/jiale.chen/share/openHarmony/build/hb/util/log_util.py", line 153, in get_gn_failed_log
[OHOS ERROR] [GN]     raise OHOSException(
[OHOS ERROR] [GN] exceptions.ohos_exception.OHOSException: GN Failed! Please check error in /data/jiale.chen/share/openHarmony/out/rk3588/error.log, and for more build information in /data/jiale.chen/share/openHarmony/out/rk3588/build.log
[OHOS ERROR] [GN]

[OHOS ERROR] [GN] Code:        3000
[OHOS ERROR] [GN]
[OHOS ERROR] [GN] Reason:      GN Failed! Please check error in /data/jiale.chen/share/openHarmony/out/rk3588/error.log, and for more build information in /data/jiale.chen/share/openHarmony/out/rk3588/build.log
[OHOS ERROR] [GN]
[OHOS ERROR] [GN] Error Type:  UNKNOWN
[OHOS ERROR] [GN]
[OHOS ERROR] [GN] Description: An unknown error occurred while executing 'gn gen'.
[OHOS ERROR] [GN]
[OHOS ERROR] [GN] Solution:    There is no solution available. You can check the 'gn_error.log' in the output directory for more information
[OHOS ERROR] [GN]
=====build  error=====

4. 我想要达到的结果

   编译通过,合理解决该报错问题

### 【运行环境】

硬件:Ubuntu 24.04 / RK3588 平台
ROM版本:
DevEvoStudio版本:
SDK版本:v5.0.2-Release
[/md]
作者: onefan    时间: 2025-2-28 09:00
不带 --no-prebuilt-sdk,
直接编./build.sh --product-name dayu210 --ccache 会报错吗?
作者: lele    时间: 2025-2-28 10:47
回复 onefan: 如果不带的话会报sdk的报错

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

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





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