OpenHarmony开发者论坛

标题: 基于鸿蒙4.1南向开发编译出现问题 [打印本页]

作者: SunllCodeW    时间: 2025-4-18 14:05
标题: 基于鸿蒙4.1南向开发编译出现问题
[md]### 【问题描述】

[OHOS ERROR] [43/63] ACTION //device/soc/hisilicon/hi3861v100/sdk_liteos:run_wifiiot_scons(//build/lite/toolchain:riscv32-unknown-elf)
[OHOS ERROR] FAILED: obj/device/soc/hisilicon/hi3861v100/sdk_liteos/run_wifiiot_scons_build_ext_components.txt
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/build_ext_components.py --path=../../../device/soc/hisilicon/hi3861v100/sdk_liteos --command=sh\ hm_build.sh\ /home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/out/hispark_pegasus/wifiiot_hispark_pegasus\ linux --target_dir=/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/out/hispark_pegasus/wifiiot_hispark_pegasus/obj/device/soc/hisilicon/hi3861v100/sdk_liteos/build.log --out_dir=/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/out/hispark_pegasus/wifiiot_hispark_pegasus/error.log

[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/student/Documents/test4/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/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/system_util.py", line 64, in exec_command
[OHOS ERROR]     LogUtil.get_failed_log(log_path)
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/log_util.py", line 193, in get_failed_log
[OHOS ERROR]     LogUtil.get_compiler_failed_log(log_path)
[OHOS ERROR]   File "/home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/log_util.py", line 180, in get_compiler_failed_log
[OHOS ERROR]     raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/out/hispark_pegasus/wifiiot_hispark_pegasus/error.log, and for more build information in /home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/out/hispark_pegasus/wifiiot_hispark_pegasus/build.log
[OHOS ERROR]

[OHOS ERROR] Code:        4000
[OHOS ERROR]
[OHOS ERROR] Reason:      COMPILE Failed! Please check error in /home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/out/hispark_pegasus/wifiiot_hispark_pegasus/error.log, and for more build information in /home/student/Documents/test4/OpenHarmony-v4.1-Release/OpenHarmony/out/hispark_pegasus/wifiiot_hispark_pegasus/build.log
[OHOS ERROR]
[OHOS ERROR] Error Type:  Ninja build error
[OHOS ERROR]
[OHOS ERROR] Description: An unknown error occurred while executing 'ninja -C'.
[OHOS ERROR]
[OHOS ERROR] Solution:    no solution
[OHOS ERROR]
scons: *** [out/hispark_pegasus/wifiiot_hispark_pegasus/Hi3861_wifiiot_app.out] Error -1

### 【运行环境】

硬件:
ROM版本:hi3861
[/md]




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