OpenHarmony 移植出现如下错误请问如何解决

xuxiyang 显示全部楼层 发表于 2023-12-18 16:56:05

young@young-OptiPlex-5080:~/OpenHarmony$ ./build.sh --product-name AX650N_Demo ++++++++++++++++++++++++++++++++++++++++ The system shell is bash 5.0.17(1)-release ++++++++++++++++++++++++++++++++++++++++ 2023-12-18 16:47:16 --product-name AX650N_Demo Current Node.js version is v14.21.1 Node.js version check passed lockfile=false start set ohpm init ohpm npm WARN @ohos/ohpm@1.1.2 No description npm WARN @ohos/ohpm@1.1.2 No repository field.

up to date in 0.504s

10 packages are looking for funding run npm fund for details

ohpm version is 1.1.2 ohpm DEBUG: config set "registry" "https://repo.harmonyos.com/ohpm/" ohpm DEBUG: config set "strict_ssl" "false" ohpm DEBUG: config set "log_level" "debug" remove /home/young/.hvigor ~/.hvigor/wrapper/tools ~/OpenHarmony install pnpm npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN tools No description npm WARN tools No repository field. npm WARN tools No license field.

added 1 package in 0.535s

1 package is looking for funding run npm fund for details

~/OpenHarmony [OHOS INFO] Set cache size limit to 100.0 GB [OHOS WARNING] The target_cpu needs to be specified, default target_cpu=arm [OHOS INFO] generated build prop info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/build.prop [OHOS INFO] generated build config info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/build_config.json [OHOS INFO] generated product parts info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/parts.json [OHOS INFO] generated parts config info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/parts_config.json [OHOS INFO] generated build gnargs prop info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/build_gnargs.prop [OHOS INFO] generated features info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/features.json [OHOS INFO] generated syscap info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/syscap.json [OHOS INFO] generated exclusion modules info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/exclusion_modules.json [OHOS INFO] generated platforms build info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/platforms.build [OHOS INFO] generated subsystem config info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/subsystem_config.json [OHOS INFO] generated system capability info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/systemcapability.json [OHOS INFO] generated compile_standard_whitelist info to /home/young/OpenHarmony/out/preloader/AX650N_Demo/compile_standard_whitelist.json [OHOS INFO] Checking all build args... [OHOS INFO] subsytem config scan completed [OHOS INFO] subsytem config scan completed [OHOS INFO] generate all parts of platforms info to '/home/young/OpenHarmony/out/AX650N_Demo/AX650N_Demo/build_configs/platforms_info/all_parts.json' [OHOS INFO] generate toolchain to variant of platforms info to '/home/young/OpenHarmony/out/AX650N_Demo/AX650N_Demo/build_configs/platforms_info/toolchain_to_variant.json' warning: subsystem name config incorrect in '/home/young/OpenHarmony/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/bundle.json', build file subsystem name is wpa_supplicant-2.9,configured subsystem name is thirdparty. warning: subsystem name config incorrect in '/home/young/OpenHarmony/third_party/flutter/glfw/bundle.json', build file subsystem name is ,configured subsystem name is thirdparty. [OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] return func(*args, **kwargs) [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/modules/ohos_build_module.py", line 67, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/modules/ohos_build_module.py", line 65, in run [OHOS ERROR] super().run() [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 72, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 65, in run [OHOS ERROR] self._load() [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/modules/ohos_build_module.py", line 84, in _load [OHOS ERROR] self.loader.run() [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/services/interface/load_interface.py", line 45, in run [OHOS ERROR] self.post_init() [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/services/loader.py", line 120, in post_init [OHOS ERROR] self.parts_config_info = load_ohos_build.get_parts_info( [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 834, in get_parts_info [OHOS ERROR] _parts_variants = build_loader.parts_variants() [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 520, in parts_variants [OHOS ERROR] self.parse() [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 511, in parse [OHOS ERROR] subsystem_config, parts_path_dict = self._merge_build_config() [OHOS ERROR] File "/home/young/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 482, 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/young/OpenHarmony/device/board/axera/AX650N_Demo/ohos.build', build file subsystem name is AX650N_Demo,configured subsystem name is device_AX650N_Demo. [OHOS ERROR] [OHOS ERROR] Code: 2014 [OHOS ERROR] [OHOS ERROR] Reason: subsystem name config incorrect in '/home/young/OpenHarmony/device/board/axera/AX650N_Demo/ohos.build', build file subsystem name is AX650N_Demo,configured subsystem name is device_AX650N_Demo. [OHOS ERROR] [OHOS ERROR] Solution: UNKNOWN REASON [OHOS ERROR] =====build error===== young@young-OptiPlex-5080:~/OpenHarmony$ vi /home/young/OpenHarmony/device/board/axera/AX650N_Demo/ohos.build

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

精彩评论3

xuxiyang

沙发 发表于 2023-12-19 16:57:49
我需要知道小型系统的白名单是哪个文件?我看了一些资料说是要将ohos.build 加入到白名单

xuxiyang

板凳 发表于 2023-12-21 17:00:16
新建的board 的有些ohos.build module_list[] 是空的,如果不确定可以先删除 module_list,就可以了

石磊

地板 发表于 2023-12-28 19:52:50
build 系统会检查部件名称和子系统名称,把这两个名称统一就行
参考这里修改
https://gitee.com/openharmony/de ... a788c2d663ce9cda73d

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

返回顶部