积分12 / 贡献0

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

【求助】【OpenHarmony4.1-Release编译小熊派报错,用的docker_oh_small:3.2 环境,麻烦哪位大佬帮我看看,感激不尽】

canghaiwolong666 显示全部楼层 发表于 2024-5-9 16:59:38

[OHOS INFO] loader args:['platforms_config_file="/home/openharmony/out/preloader/bearpi_hm_micro/platforms.build"', 'subsystem_config_file="/home/openharmony/out/preloader/bearpi_hm_micro/subsystem_config.json"', 'example_subsystem_file=""', 'exclusion_modules_config_file="/home/openharmony/out/preloader/bearpi_hm_micro/exclusion_modules.json"', 'source_root_dir="/home/openharmony/"', 'gn_root_out_dir="out/bearpi_hm_micro/bearpi_hm_micro"', 'build_platform_name=phone', 'build_xts=False', 'load_test_config=True', 'target_os=ohos', 'target_cpu=arm', 'os_level=small', "ignore_api_check=['xts', 'common', 'testfwk']", 'scalable_build=False', 'skip_partlist_check=False'] [OHOS INFO] Checking parts config... [OHOS INFO] generated subsystem build config to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/subsystem_info/subsystem_build_config.json' [OHOS INFO] generated src subsystem info to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/subsystem_info/src_subsystem_info.json' [OHOS INFO] generated no src subsystem info to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/subsystem_info/no_src_subsystem_info.json' [OHOS INFO] generate target platform parts to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/target_platforms_parts.json' [OHOS INFO] generated system capabilities to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/phone_system_capabilities.json' [OHOS INFO] generated platforms parts by src to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/platforms_parts_by_src.json' [OHOS INFO] generate required parts targets to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/required_parts_targets.json' [OHOS INFO] generate build targets list file to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/required_parts_targets_list.json' [OHOS INFO] generated parts src flag to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/subsystem_info/parts_src_flag.json' [OHOS INFO] generate auto install part to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/auto_install_parts.json' [OHOS INFO] generate platforms list to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/platforms_list.gni' [OHOS INFO] generate part different info to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/parts_different_info.json' [OHOS INFO] generate infos for testfwk to '/home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build_configs/infos_for_testfwk.json' [OHOS INFO] Checking all product features... [OHOS INFO] generate syscap info file to '/home/openharmony/out/preloader/bearpi_hm_micro/system/etc/SystemCapability.json' [OHOS INFO] generate syscap info with part name list to '/home/openharmony/out/preloader/bearpi_hm_micro/system/etc/syscap.json' [OHOS INFO] generate target syscap for init list to '/home/openharmony/out/preloader/bearpi_hm_micro/system/etc/param/syscap.para'

[OHOS INFO] Excuting gn command: /home/openharmony/prebuilts/build-tools/linux-x86/bin/gn gen --args="product_name=\"bearpi_hm_micro\" product_path=\"/home/openharmony/vendor/bearpi/bearpi_hm_micro\" product_config_path=\"/home/openharmony/vendor/bearpi/bearpi_hm_micro\" device_name=\"bearpi_hm_micro\" device_path=\"/home/openharmony/device/board/bearpi/bearpi_hm_micro/liteos_a\" device_company=\"bearpi\" device_config_path=\"/home/openharmony/device/board/bearpi/bearpi_hm_micro/liteos_a\" is_small_system=true ohos_kernel_type=\"liteos_a\" ohos_build_compiler_specified=\"clang\" ohos_build_time=1715226173692 ohos_build_datetime=\"2024-05-09 09:42:53\" enable_ohos_appexecfwk_feature_ability=true huks_config_file=\"hks_config_small.h\" enable_ohos_graphic_utils_product_config=true enable_ohos_startup_init_feature_begetctl_liteos=true enable_ohos_ace_engine_lite_product_config=true enable_graphic_font=true enable_video_component=false enable_screensaver=true ohos_build_compiler_dir=\"//prebuilts/clang/ohos/linux-x86_64/llvm\" ohos_build_enable_ccache=true ohos_build_type=\"debug\" device_type=\"default\" build_variant=\"root\" root_perf_main=\"main\" runtime_mode=\"release\"" --args=product_name="bearpi_hm_micro" product_path="/home/openharmony/vendor/bearpi/bearpi_hm_micro" product_config_path="/home/openharmony/vendor/bearpi/bearpi_hm_micro" device_name="bearpi_hm_micro" device_path="/home/openharmony/device/board/bearpi/bearpi_hm_micro/liteos_a" device_company="bearpi" device_config_path="/home/openharmony/device/board/bearpi/bearpi_hm_micro/liteos_a" is_small_system=true ohos_kernel_type="liteos_a" ohos_build_compiler_specified="clang" ohos_build_time=1715226173692 ohos_build_datetime="2024-05-09 09:42:53" enable_ohos_appexecfwk_feature_ability=true huks_config_file="hks_config_small.h" enable_ohos_graphic_utils_product_config=true enable_ohos_startup_init_feature_begetctl_liteos=true enable_ohos_ace_engine_lite_product_config=true enable_graphic_font=true enable_video_component=false enable_screensaver=true ohos_build_compiler_dir="//prebuilts/clang/ohos/linux-x86_64/llvm" ohos_build_enable_ccache=true ohos_build_type="debug" device_type="default" build_variant="root" root_perf_main="main" runtime_mode="release" /home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro --script-executable=/home/openharmony/prebuilts/python/linux-x86/3.10.2/bin/python3 [OHOS INFO] root_out_dir=//out/bearpi_hm_micro/bearpi_hm_micro [OHOS INFO] root_build_dir=//out/bearpi_hm_micro/bearpi_hm_micro [OHOS INFO] root_gen_dir=//out/bearpi_hm_micro/bearpi_hm_micro/gen [OHOS INFO] current_toolchain=//build/lite/toolchain:linux_x86_64_ohos_clang [OHOS INFO] host_toolchain=//build/toolchain/linux:clang_x64 [OHOS INFO] ohos_build_compiler: clang [OHOS INFO] ohos_kernel_type: liteos_a [OHOS INFO] liteos_config_file: /home/openharmony/vendor/bearpi/bearpi_hm_micro/kernel_configs/debug.config [OHOS INFO] wpa_vendor_gni = [OHOS INFO] wpa_supplicant_vendor_ext = false [OHOS INFO] ERROR at //third_party/wpa_supplicant/wpa_supplicant-2.9_standard/BUILD.gn:136:1: Unknown function. [OHOS INFO] ohos_shared_library("wpa_client") { [OHOS INFO] ^------------------ [OHOS INFO] See //build/ohos/ohos_part.gni:25:16: which caused the file to be included. [OHOS INFO] _deps += [ get_label_info(module_label, "label_with_toolchain") ] [OHOS INFO] ^-------------------------------------------------- [OHOS INFO] ["--haptobin", "../../../developtools/packing_tool/adapter/ohos", "--haptobinOutput", "obj/developtools/packing_tool/jar/haptobin_tool.jar", "--unpackOutput", "obj/developtools/packing_tool/jar/app_unpacking_tool.jar", "--packOutput", "obj/developtools/packing_tool/jar/app_packing_tool.jar", "--outpath", "obj/developtools/packing_tool/jar", "--checkOutput", "obj/developtools/packing_tool/jar/app_check_tool.jar", "--toolchain", "//build/lite/toolchain:linux_x86_64_ohos_clang", "--compileTarget", "image"]

[OHOS ERROR] ERROR at //third_party/wpa_supplicant/wpa_supplicant-2.9_standard/BUILD.gn:136:1: Unknown function.

[OHOS ERROR] ohos_shared_library("wpa_client") {

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

[OHOS ERROR] See //build/ohos/ohos_part.gni:25:16: which caused the file to be included.

[OHOS ERROR] _deps += [ get_label_info(module_label, "label_with_toolchain") ]

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

[OHOS ERROR] ["--haptobin", "../../../developtools/packing_tool/adapter/ohos", "--haptobinOutput", "obj/developtools/packing_tool/jar/haptobin_tool.jar", "--unpackOutput", "obj/developtools/packing_tool/jar/app_unpacking_tool.jar", "--packOutput", "obj/developtools/packing_tool/jar/app_packing_tool.jar", "--outpath", "obj/developtools/packing_tool/jar", "--checkOutput", "obj/developtools/packing_tool/jar/app_check_tool.jar", "--toolchain", "//build/lite/toolchain:linux_x86_64_ohos_clang", "--compileTarget", "image"]

[OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/openharmony/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] return func(*args, **kwargs) [OHOS ERROR] File "/home/openharmony/build/hb/services/gn.py", line 197, in _execute_gn_gen_cmd [OHOS ERROR] SystemUtil.exec_command(gn_gen_cmd, self.config.log_path) [OHOS ERROR] File "/home/openharmony/build/hb/util/system_util.py", line 64, in exec_command [OHOS ERROR] LogUtil.get_failed_log(log_path) [OHOS ERROR] File "/home/openharmony/build/hb/util/log_util.py", line 191, in get_failed_log [OHOS ERROR] LogUtil.get_gn_failed_log(log_path) [OHOS ERROR] File "/home/openharmony/build/hb/util/log_util.py", line 137, in get_gn_failed_log [OHOS ERROR] raise OHOSException( [OHOS ERROR] exceptions.ohos_exception.OHOSException: GN Failed! Please check error in /home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/error.log, and for more build information in /home/openharmony/out/bearpi_hm_micro/bearpi_hm_micro/build.log [OHOS ERROR]

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

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

精彩评论5

深开鸿_王石

沙发 发表于 2024-5-13 13:48:07
4.1没人维护了,3.2能用

canghaiwolong666

发表于 2024-5-17 13:58  IP属地: 广东省广州市

回复 深开鸿_王石: 非常感谢,哪个分支有没有维护 从哪能获取到消息?

【1 条回复】

润开鸿_梁开祝

板凳 发表于 2024-5-13 16:00:53
[OHOS INFO] ERROR at //third_party/wpa_supplicant/wpa_supplicant-2.9_standard/BUILD.gn:136:1: Unknown function.
[OHOS INFO] ohos_shared_library("wpa_client") {


你这是 liteos_a 内核的小型系统,不应该去编译 //third_party/wpa_supplicant/wpa_supplicant-2.9_standard 里的东西,而是编译 //third_party/wpa_supplicant/wpa_supplicant-2.9 目录下的,可以去排查一下。

canghaiwolong666

发表于 2024-5-17 13:57  IP属地: 广东省广州市

回复 润开鸿_梁开祝: 好的,感谢

【1 条回复】

xiao_zhou

地板 发表于 2024-9-6 16:05:57
哥,你小熊派4.1怎么编译的可以分享一下吗?
共5 条回复,点击查看

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

返回顶部