代码拉取完成,页面将自动刷新
【任务描述】
板子使用的是润和Neptune开发板,编译无法通过
OHOS Which product do you need? neptune_iotlink_demo
crition@crition-VirtualBox:~/openharmony/code/Hihope-W800$ hb build -f
The target_cpu needs to be specified, default target_cpu=arm
[OHOS INFO] Set cache size limit to 100.0 GB
[OHOS INFO] root_out_dir=//out/neptune100/neptune_iotlink_demo
[OHOS INFO] root_build_dir=//out/neptune100/neptune_iotlink_demo
[OHOS INFO] root_gen_dir=//out/neptune100/neptune_iotlink_demo/gen
[OHOS INFO] current_toolchain=//build/lite/toolchain:csky-elfabiv2-gcc
[OHOS INFO] host_toolchain=//build/toolchain/linux:clang_x64
[OHOS INFO]
[OHOS INFO] args: Namespace(platforms_config_file='/home/crition/openharmony/code/Hihope-W800/out/preloader/neptune_iotlink_demo/platforms.build', subsystem_config_file='/home/crition/openharmony/code/Hihope-W800/out/preloader/neptune_iotlink_demo/subsystem_config.json', example_subsystem_file=None, source_root_dir='/home/crition/openharmony/code/Hihope-W800/', gn_root_out_dir='/home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo', build_platform_name='phone', build_xts=False, target_os='ohos', target_cpu='arm', os_level='mini', ignore_api_check=['xts', 'common', 'developertest'], scalable_build=False)
[OHOS INFO]
[OHOS INFO] build configs generation is complete.
[OHOS INFO] ohos_build_compiler: gcc
[OHOS INFO] ohos_kernel_type: liteos_m
[OHOS INFO] liteos_config_file: /home/crition/openharmony/code/Hihope-W800/vendor/hihope/neptune_iotlink_demo/kernel_configs/debug.config
[OHOS INFO] ERROR at //kernel/liteos_m/liteos.gni:40:1: Script returned non-zero exit code.
[OHOS INFO] exec_script("//build/lite/run_shell_cmd.py",
[OHOS INFO] ^----------
[OHOS INFO] Current dir: /home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo/
[OHOS INFO] Command: /usr/bin/python3 /home/crition/openharmony/code/Hihope-W800/build/lite/run_shell_cmd.py env CONFIG_=LOSCFG_ KCONFIG_CONFIG_HEADER='y=true' KCONFIG_CONFIG=/home/crition/openharmony/code/Hihope-W800/vendor/hihope/neptune_iotlink_demo/kernel_configs/debug.config BOARD_COMPANY=hihope DEVICE_PATH=/home/crition/openharmony/code/Hihope-W800/device/board/hihope/neptune100/liteos_m srctree=/home/crition/openharmony/code/Hihope-W800/kernel/liteos_m genconfig --header-path /home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo/config.h --file-list kconfig_files.txt --env-list kconfig_env.txt --config-out config.gni
[OHOS INFO] Returned 1.
[OHOS INFO] stderr:
[OHOS INFO]
[OHOS INFO] /home/crition/.local/bin/genconfig: drivers/Kconfig:7: '../../drivers/hdf_core/adapter/khdf/liteos_m/Kconfig' not found (in 'source "../../drivers/hdf_core/adapter/khdf/liteos_m/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is set to '/home/crition/openharmony/code/Hihope-W800/kernel/liteos_m'). Also note that unset environment variables expand to the empty string.
[OHOS INFO]
[OHOS INFO] See //kernel/liteos_m/BUILD.gn:39:1: whence it was imported.
[OHOS INFO] import("liteos.gni")
[OHOS INFO] ^------------------
[OHOS INFO] See //prebuilts/lite/sysroot/BUILD.gn:40:7: which caused the file to be included.
[OHOS INFO] "//kernel/liteos_m:public",
[OHOS INFO] ^-------------------------
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct) : 0
[OHOS INFO] cache hit (preprocessed) : 0
[OHOS INFO] cache miss : 0
[OHOS INFO] hit rate: 0.00%
[OHOS INFO] mis rate: 0.00%
[OHOS INFO] ---------------------------------------------
[OHOS INFO] file: /home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo/.ninja_log not exists
[OHOS INFO] parse file fail
[OHOS ERROR] Please check build log in /home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo/build.log
build.log
root_out_dir=//out/neptune100/neptune_iotlink_demo
root_build_dir=//out/neptune100/neptune_iotlink_demo
root_gen_dir=//out/neptune100/neptune_iotlink_demo/gen
current_toolchain=//build/lite/toolchain:csky-elfabiv2-gcc
host_toolchain=//build/toolchain/linux:clang_x64
args: Namespace(platforms_config_file='/home/crition/openharmony/code/Hihope-W800/out/preloader/neptune_iotlink_demo/platforms.build', subsystem_config_file='/home/crition/openharmony/code/Hihope-W800/out/preloader/neptune_iotlink_demo/subsystem_config.json', example_subsystem_file=None, source_root_dir='/home/crition/openharmony/code/Hihope-W800/', gn_root_out_dir='/home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo', build_platform_name='phone', build_xts=False, target_os='ohos', target_cpu='arm', os_level='mini', ignore_api_check=['xts', 'common', 'developertest'], scalable_build=False)
build configs generation is complete.
ohos_build_compiler: gcc
ohos_kernel_type: liteos_m
liteos_config_file: /home/crition/openharmony/code/Hihope-W800/vendor/hihope/neptune_iotlink_demo/kernel_configs/debug.config
ERROR at //kernel/liteos_m/liteos.gni:40:1: Script returned non-zero exit code.
exec_script("//build/lite/run_shell_cmd.py",
^----------
Current dir: /home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo/
Command: /usr/bin/python3 /home/crition/openharmony/code/Hihope-W800/build/lite/run_shell_cmd.py env CONFIG_=LOSCFG_ KCONFIG_CONFIG_HEADER='y=true' KCONFIG_CONFIG=/home/crition/openharmony/code/Hihope-W800/vendor/hihope/neptune_iotlink_demo/kernel_configs/debug.config BOARD_COMPANY=hihope DEVICE_PATH=/home/crition/openharmony/code/Hihope-W800/device/board/hihope/neptune100/liteos_m srctree=/home/crition/openharmony/code/Hihope-W800/kernel/liteos_m genconfig --header-path /home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo/config.h --file-list kconfig_files.txt --env-list kconfig_env.txt --config-out config.gni
Returned 1.
stderr:
/home/crition/.local/bin/genconfig: drivers/Kconfig:7: '../../drivers/hdf_core/adapter/khdf/liteos_m/Kconfig' not found (in 'source "../../drivers/hdf_core/adapter/khdf/liteos_m/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is set to '/home/crition/openharmony/code/Hihope-W800/kernel/liteos_m'). Also note that unset environment variables expand to the empty string.
See //kernel/liteos_m/BUILD.gn:39:1: whence it was imported.
import("liteos.gni")
^------------------
See //prebuilts/lite/sysroot/BUILD.gn:40:7: which caused the file to be included.
"//kernel/liteos_m:public",
^-------------------------
---------------------------------------------
ccache summary:
cache hit (direct) : 0
cache hit (preprocessed) : 0
cache miss : 0
hit rate: 0.00%
mis rate: 0.00%
---------------------------------------------
file: /home/crition/openharmony/code/Hihope-W800/out/neptune100/neptune_iotlink_demo/.ninja_log not exists
parse file fail
请问如何解决这样的问题,谢谢
这个issue请提到相关的device仓下, 不归内核这边负责
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论