• Lv0
    粉丝0

积分7 / 贡献0

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

OpenHarmony 4.1编译报错,求求帮忙看一下

lyjxueqianru 显示全部楼层 发表于 2024-11-3 19:46:55

【问题描述】openharmony4.1编译报错求帮忙看一看

1 warning generated. [4020/20366] CC obj/base/startup/init/services/utils/libinit_utils/init_utils.o ../../base/startup/init/services/utils/init_utils.c:771:40: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if ((strDict == NULL) || (dictSize < sizeof(const char *)) || (target == NULL) || (target[0] == '\0')) {

1 warning generated.
[4021/20366] STAMP obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos.inputdeps.stamp
[4022/20366] CC obj/base/startup/init/services/param/manager/param_client/param_manager.o
[4023/20366] CXX clang_x64/obj/third_party/protobuf/src/google/protobuf/protobuf_static/generated_message_reflection.o
[4024/20366] CXX obj/foundation/arkui/ace_engine/frameworks/base/resource/ace_resource/data_provider_manager.o
[4025/20366] CXX obj/foundation/arkui/ace_engine/frameworks/base/resource/ace_resource/internal_resource.o
[4026/20366] CXX clang_x64/obj/third_party/protobuf/src/google/protobuf/protobuf_static/descriptor.pb.o
[4027/20366] CXX obj/foundation/arkui/ace_engine/frameworks/base/resource/ace_resource/shared_image_manager.o
[4028/20366] CXX obj/foundation/arkui/ace_engine/frameworks/base/resource/ace_resource/ace_res_key_parser.o
[4029/20366] CXX clang_x64/obj/third_party/protobuf/src/google/protobuf/protobuf_static/descriptor.o
[4030/20366] STAMP obj/foundation/arkui/ace_engine/frameworks/bridge/codec/data_codec.inputdeps.stamp
[4031/20366] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/codec/data_codec/byte_buffer_operator.o
[4032/20366] CXX obj/foundation/arkui/ace_engine/frameworks/base/resource/ace_resource/ace_res_config.o
[4033/20366] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/codec/data_codec/standard_function_codec.o
[4034/20366] STAMP obj/foundation/arkui/ace_engine/frameworks/bridge/common/bridge_common_ng_ohos_ng.inputdeps.stamp
[4035/20366] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/codec/data_codec/standard_codec_buffer_operator.o
[4036/20366] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ng_ohos_ng/dom_type.o
[4037/20366] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/manifest/bridge_common_ng_ohos_ng/manifest_parser.o
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/lyj/hm/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/lyj/hm/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/lyj/hm/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/home/lyj/hm/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/home/lyj/hm/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/home/lyj/hm/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/home/lyj/hm/build/hb/util/system_util.py", line 64, in exec_command
[OHOS ERROR]     LogUtil.get_failed_log(log_path)
[OHOS ERROR]   File "/home/lyj/hm/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/lyj/hm/build/hb/util/log_util.py", line 179, in get_compiler_failed_log
[OHOS ERROR]     return_status_code = LogUtil.analyze_build_error(error_log, '4')
[OHOS ERROR]   File "/home/lyj/hm/build/hb/util/log_util.py", line 93, in analyze_build_error
[OHOS ERROR]     with open(error_log, 'rt', encoding='utf-8') as log_file:
[OHOS ERROR] FileNotFoundError: [Errno 2] No such file or directory: '/home/lyj/hm/out/xhd100/error.log'
[OHOS ERROR]
[OHOS ERROR] Code:        0000
[OHOS ERROR]
[OHOS ERROR] Reason:      [Errno 2] No such file or directory: '/home/lyj/hm/out/xhd100/error.log'
[OHOS ERROR]
[OHOS ERROR] Error Type:  UNKNOWN ERROR TYPE
[OHOS ERROR]
[OHOS ERROR] Description: NO DESCRIPTION
[OHOS ERROR]
[OHOS ERROR] Solution:    NO SOLUTION
[OHOS ERROR]

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

精彩评论2

深开鸿_王石

沙发 发表于 2024-11-4 14:05:01
你这个log没贴全,没错误信息,要不你上传下贴全,要不你看看环境少装啥了不

lyjxueqianru

发表于 2024-11-13 17:49  IP属地: 陕西省西安市

回复 深开鸿_王石: 已经解决了,谢谢大佬

【1 条回复】

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

返回顶部