OpenHarmony开发者论坛

标题: 【求助】【OpenHarmony出现问题subsystem name config incorrect in ······】 [打印本页]

作者: Ashfud1e    时间: 2024-5-12 17:21
标题: 【求助】【OpenHarmony出现问题subsystem name config incorrect in ······】
[md][OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 65, in run
[OHOS ERROR]     self._load()
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 84, in _load
[OHOS ERROR]     self.loader.run()
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/services/interface/load_interface.py", line 45, in run
[OHOS ERROR]     self.__post_init__()
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/services/loader.py", line 117, in __post_init__
[OHOS ERROR]     self.parts_config_info = load_ohos_build.get_parts_info(
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 903, in get_parts_info
[OHOS ERROR]     _parts_variants = build_loader.parts_variants()
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 540, in parts_variants
[OHOS ERROR]     self.parse()
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 531, in parse
[OHOS ERROR]     subsystem_config, parts_path_dict = self._merge_build_config()
[OHOS ERROR]   File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 502, in _merge_build_config
[OHOS ERROR]     raise OHOSException("subsystem name config incorrect in '{}', build file subsystem name is {},"
[OHOS ERROR] exceptions.ohos_exception.OHOSException: subsystem name config incorrect in '/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/device/qemu/x86_64_virt/linux/ohos.build', build file subsystem name is device_x86_64_virt,configured subsystem name is device_qemu-x86_64-linux.
[OHOS ERROR]

[OHOS ERROR] Code:        2014
[OHOS ERROR]
[OHOS ERROR] Reason:      subsystem name config incorrect in '/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/device/qemu/x86_64_virt/linux/ohos.build', build file subsystem name is device_x86_64_virt,configured subsystem name is device_qemu-x86_64-linux.
[OHOS ERROR]
[OHOS ERROR] Error Type:  UNKNOWN ERROR TYPE
[OHOS ERROR]
[OHOS ERROR] Description: NO DESCRIPTION
[OHOS ERROR]
[OHOS ERROR] Solution:    UNKNOWN REASON
[OHOS ERROR]
=====build  error=====

之前出现subsystem name config incorrect in时按照https://blog.csdn.net/aa120515692/article/details/133806238改了一遍白名单,还是没用
[/md]
作者: 深开鸿_王石    时间: 2024-5-13 13:59
加子系统是要在build下改config文件的,参考 - https://gitee.com/openharmony/do ... -build-subsystem.md
作者: 润开鸿_梁开祝    时间: 2024-5-13 15:49
[OHOS ERROR] Reason: subsystem name config incorrect in '/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/device/qemu/x86_64_virt/linux/ohos.build', build file subsystem name is device_x86_64_virt,configured subsystem name is device_qemu-x86_64-linux.


你把 //device/qemu/x86_64_virt/linux/ohos.build 这个文件里的 subsystem 字段修改为  device_qemu-x86_64-linux 再试试看。
作者: lakewater    时间: 2024-5-24 11:03
我也遇到了这个问题,修改“ //device/qemu/x86_64_virt/linux/ohos.build 这个文件里的 subsystem 字段修改为  device_qemu-x86_64-linux”没有起作用, 请问解决了吗?




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