154 Star 692 Fork 537

OpenHarmony / kernel_liteos_m

 / 详情

liteos.gni:40:1: Script returned non-zero exit code

已拒绝
任务
创建于  
2022-07-10 19:08

【任务描述】
板子使用的是润和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

请问如何解决这样的问题,谢谢

评论 (1)

Liuziqi 创建了任务
Liuziqi 修改了描述
Liuziqi 任务类型任务 修改为需求
xuxinyu 任务状态待办的 修改为设计中
xuxinyu 任务状态设计中 修改为待办的
Hongjin Li 任务类型需求 修改为任务
Hongjin Li 任务状态待办的 修改为进行中
展开全部操作日志

这个issue请提到相关的device仓下, 不归内核这边负责

Hongjin Li 任务状态进行中 修改为已拒绝

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
9980766 liuziqi 21374129 1639489615
C
1
https://gitee.com/openharmony/kernel_liteos_m.git
git@gitee.com:openharmony/kernel_liteos_m.git
openharmony
kernel_liteos_m
kernel_liteos_m

搜索帮助