OpenHarmony开发者论坛

标题: OpenHarmony4.0release 编译k3568_uart_test程序报错 [打印本页]

作者: ppinger    时间: 2024-3-22 19:43
标题: OpenHarmony4.0release 编译k3568_uart_test程序报错
[md]将凌蒙派-RK3568开发板的测试samples程序,移植到OpenHarmony4.0release,ohos.build添加"//vendor/hihope/rk3568/samples:samples",

放开k3568_uart_test,使用hb build -T k3568_uart_test  --target-cpu arm64进行编译。编译报错如下:

![image.png](https://forums-obs.openharmony.c ... 7f29993zav3aza9.png "image.png")

[OHOS INFO] Excuting ninja command: /root/openHarmony/openHarmony-4.0/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /root/openHarmony/openHarmony-4.0/out/rk3568 rk3568_uart_test
[OHOS INFO] [0/1] Regenerating ninja files
[OHOS INFO] [1/59] ACTION //base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog_base__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [2/59] ACTION //base/hiviewdfx/hilog/frameworks/libhilog:libhilog_source_ohos__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [3/59] ACTION //base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [4/59] ACTION //base/hiviewdfx/hilog/frameworks/libhilog:libhilog_base_source__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [5/59] ACTION //base/startup/init/interfaces/innerkits:libbegetutil__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [0/0] WARNING:deps validation part_name: 'init', target: '//base/startup/init/interfaces/innerkits:libbegetutil', dep: '//base/customization/config_policy/frameworks/config_policy:configpolicy_util_for_init_static' failed!!!
[OHOS INFO] [6/59] ACTION //base/startup/init/interfaces/innerkits/socket:libsocket__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [7/59] STAMP obj/base/hiviewdfx/hilog/interfaces/native/innerkits/libhilog_base__check.stamp
[OHOS INFO] [8/59] ACTION //base/customization/config_policy/frameworks/config_policy:configpolicy_util_for_init_static__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [9/59] ACTION //base/startup/init/interfaces/innerkits/control_fd:libcontrolfd__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [10/59] STAMP obj/base/hiviewdfx/hilog/frameworks/libhilog/libhilog_source_ohos__check.stamp
[OHOS INFO] [11/59] STAMP obj/base/hiviewdfx/hilog/interfaces/native/innerkits/libhilog__check.stamp
[OHOS INFO] [12/59] STAMP obj/base/hiviewdfx/hilog/frameworks/libhilog/libhilog_base_source__check.stamp
[OHOS INFO] [13/59] ACTION //base/startup/init/services/modules/udid:libudidcomm__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [14/59] ACTION //base/startup/init/services/param/linux:param_client__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [15/59] ACTION //base/startup/init/services/utils:libinit_utils__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [16/59] STAMP obj/base/startup/init/interfaces/innerkits/libbegetutil__check.stamp
[OHOS INFO] [17/59] STAMP obj/base/startup/init/interfaces/innerkits/socket/libsocket__check.stamp
[OHOS INFO] [18/59] STAMP obj/base/customization/config_policy/frameworks/config_policy/configpolicy_util_for_init_static__check.stamp
[OHOS INFO] [19/59] STAMP obj/base/startup/init/interfaces/innerkits/control_fd/libcontrolfd__check.stamp
[OHOS INFO] [20/59] ACTION //base/startup/init/interfaces/innerkits/fd_holder:fdholder__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [21/59] ACTION //base/startup/init/interfaces/innerkits/file:libfile__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [22/59] STAMP obj/base/hiviewdfx/hilog/frameworks/libhilog/libhilog_base_source.inputdeps.stamp
[OHOS INFO] [23/59] STAMP obj/base/startup/init/services/modules/udid/libudidcomm__check.stamp
[OHOS INFO] [24/59] STAMP obj/base/startup/init/services/param/linux/param_client__check.stamp
[OHOS INFO] [25/59] STAMP obj/base/startup/init/services/utils/libinit_utils__check.stamp
[OHOS INFO] [26/59] STAMP obj/base/startup/init/interfaces/innerkits/control_fd/libcontrolfd.inputdeps.stamp
[OHOS INFO] [27/59] STAMP obj/base/startup/init/interfaces/innerkits/fd_holder/fdholder__check.stamp
[OHOS INFO] [28/59] STAMP obj/base/startup/init/interfaces/innerkits/file/libfile__check.stamp
[OHOS INFO] [29/59] ACTION //base/startup/init/services/log:agent_log__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [30/59] STAMP obj/base/startup/init/services/log/agent_log__check.stamp
[OHOS INFO] [31/59] ACTION //base/startup/init/services/loopevent:loopevent__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [32/59] STAMP obj/base/startup/init/services/loopevent/loopevent__check.stamp
[OHOS INFO] [33/59] STAMP obj/base/startup/init/services/loopevent/loopevent.inputdeps.stamp
[OHOS INFO] [34/59] ACTION //base/startup/init/services/param/base:parameterbase_ext__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [35/59] STAMP obj/base/startup/init/services/param/base/parameterbase_ext__check.stamp
[OHOS INFO] [36/59] STAMP obj/base/startup/init/services/param/linux/param_client.inputdeps.stamp
[OHOS INFO] [37/59] STAMP obj/base/startup/init/services/param/base/parameterbase_ext.inputdeps.stamp
[OHOS INFO] [38/59] ACTION //vendor/hihope/rk3568/samples/b08_platform_device_uart/app:rk3568_uart_test_info(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [39/59] STAMP obj/vendor/hihope/rk3568/samples/b08_platform_device_uart/app/rk3568_uart_test_info.stamp
[OHOS INFO] [40/59] ACTION //commonlibrary/c_utils/base:utils__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [41/59] STAMP obj/commonlibrary/c_utils/base/utils__check.stamp
[OHOS INFO] [42/59] ACTION //drivers/hdf_core/adapter/uhdf2/platform:libhdf_platform__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [43/59] ACTION //third_party/bounds_checking_function:libsec_shared__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [44/59] STAMP obj/drivers/hdf_core/adapter/uhdf2/platform/libhdf_platform__check.stamp
[OHOS INFO] [45/59] STAMP obj/third_party/bounds_checking_function/libsec_shared__check.stamp
[OHOS INFO] [46/59] STAMP obj/base/hiviewdfx/hilog/frameworks/libhilog/libhilog_source_ohos.inputdeps.stamp
[OHOS INFO] [47/59] STAMP obj/base/startup/init/interfaces/innerkits/libbegetutil.inputdeps.stamp
[OHOS INFO] [48/59] STAMP obj/commonlibrary/c_utils/base/utils.inputdeps.stamp
[OHOS INFO] [49/59] STAMP obj/third_party/bounds_checking_function/libsec_shared.inputdeps.stamp
[OHOS INFO] [50/59] ACTION //vendor/hihope/rk3568/samples/b08_platform_device_uart/app:rk3568_uart_test__notice(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [51/59] STAMP obj/vendor/hihope/rk3568/samples/b08_platform_device_uart/app/rk3568_uart_test__notice.stamp
[OHOS INFO] [52/59] ACTION //drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [53/59] STAMP obj/drivers/hdf_core/adapter/uhdf2/utils/libhdf_utils__check.stamp
[OHOS INFO] [54/59] STAMP obj/drivers/hdf_core/adapter/uhdf2/platform/libhdf_platform.inputdeps.stamp
[OHOS INFO] [55/59] STAMP obj/drivers/hdf_core/adapter/uhdf2/utils/libhdf_utils.inputdeps.stamp
[OHOS INFO] [56/59] ACTION //vendor/hihope/rk3568/samples/b08_platform_device_uart/app:rk3568_uart_test__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] [56/59] ACTION //vendor/hihope/rk3568/samples/b08_platform_device_uart/app:rk3568_uart_test__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/vendor/hihope/rk3568/samples/b08_platform_device_uart/app/rk3568_uart_test__check.txt
[OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name product_rk3568 --subsystem-name product_rk3568 --target-path //vendor/hihope/rk3568/samples/b08_platform_device_uart/app:rk3568_uart_test --depfile gen/vendor/hihope/rk3568/samples/b08_platform_device_uart/app/rk3568_uart_test__check.d --output obj/vendor/hihope/rk3568/samples/b08_platform_device_uart/app/rk3568_uart_test__check.txt --compile-standard-allow-file ../preloader/rk3568/compile_standard_whitelist.json --skip-check-subsystem --deps //drivers/hdf_core/adapter/uhdf2/platform:libhdf_platform //drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils //base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/out/rk3568/../../build/templates/common/check_build_target.py", line 71, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/out/rk3568/../../build/templates/common/check_build_target.py", line 54, in main
[OHOS ERROR]     _depfile = check_deps_handler.check(args)
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/templates/common/check_deps_handler.py", line 175, in check
[OHOS ERROR]     check_part_deps(args, part_pattern, path_parts_info,compile_standard_allow_info, depfiles)
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/templates/common/check_deps_handler.py", line 150, in check_part_deps
[OHOS ERROR]     raise Exception(message)
[OHOS ERROR] Exception: deps validation part_name: 'product_rk3568', target: '//vendor/hihope/rk3568/samples/b08_platform_device_uart/app:rk3568_uart_test', dep: '//drivers/hdf_core/adapter/uhdf2/platform:libhdf_platform' failed!!!
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/services/ninja.py", line 49, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/util/system_util.py", line 63, in exec_command
[OHOS ERROR]     raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /root/openHarmony/openHarmony-4.0/out/rk3568/build.log
[OHOS ERROR]
[OHOS ERROR] During handling of the above exception, another exception occurred:
[OHOS ERROR]
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/root/openHarmony/openHarmony-4.0/build/hb/services/ninja.py", line 52, in _execute_ninja_cmd
[OHOS ERROR]     raise OHOSException('ninja phase failed', '4000')
[OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Code:      4000
[OHOS ERROR]
[OHOS ERROR] Reason:    ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Solution:  Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs.
[OHOS ERROR]                 Or you can try the following steps to solve this problem:
[OHOS ERROR]                   1. cd to OHOS root path
[OHOS ERROR]                   2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
[OHOS ERROR]                   3. repo sync
[OHOS ERROR]                   4. repo forall -c 'git lfs pull'
[OHOS ERROR]                   5. bash build/prebuilts_download.sh
[OHOS ERROR]                   6. rebuild your product or component
[OHOS ERROR]
[OHOS ERROR]                 If you still cannot solve this problem, you could post this problem on:
[OHOS ERROR]                   https://gitee.com/openharmony/build/issues
[OHOS ERROR]
[/md]
作者: 深开鸿_王石    时间: 2024-3-25 15:41
标题: openharmony4.0release 编译k3568_uart_test程序报错
[md]你改了啥东西吧?这个报错的意思是检查编译对象依赖的时候发现错了,建议看看这个文章:[OH编译构建分析 - 依赖关系检查 - 文章 OpenHarmony开发者论坛](https://forums.openharmony.cn/fo ... tid=1864&extra=),

![image.png](https://forums-obs.openharmony.c ... 68m67p839y7hyd3.png "image.png")
[/md]




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