OpenHarmony开发者论坛
标题:
OpenHarmony 4.1 release rk3568 hb build方式编译构建失败,求大神指导
[打印本页]
作者:
cf981378640
时间:
2024-9-19 15:47
标题:
OpenHarmony 4.1 release rk3568 hb build方式编译构建失败,求大神指导
【问题描述】
OpenHarmony 4.1 release rk3568 hb build方式编译构建失败,求大神知道
(, 下载次数: 4)
上传
点击文件名下载附件
下面是错误日志
[2024-09-19 15:18:27] [OHOS INFO] [17183/23021] AR obj/base/update/updater/services/flashd/libflashd_deamon.a
[2024-09-19 15:18:27]
[2024-09-19 15:18:27] [OHOS ERROR] [17178/23021] ACTION //third_party/typescript:build_typescript(//build/toolchain/ohos:ohos_clang_arm)
[2024-09-19 15:18:27] [OHOS ERROR] FAILED: obj/third_party/typescript/build_typescript.stamp
[2024-09-19 15:18:27] [OHOS ERROR] /usr/bin/env ../../third_party/typescript/compile_typescript.py /home/mini/lonbon_work/work_OpenHarmony/third_party/typescript/
[2024-09-19 15:18:27] [OHOS ERROR] Traceback (most recent call last):
[2024-09-19 15:18:27] [OHOS ERROR] File "../../third_party/typescript/compile_typescript.py", line 43, in <module>
[2024-09-19 15:18:27] [OHOS ERROR] main(sys.argv[1:])
[2024-09-19 15:18:27] [OHOS ERROR] File "../../third_party/typescript/compile_typescript.py", line 39, in main
[2024-09-19 15:18:27] [OHOS ERROR] run_pack(source_path)
[2024-09-19 15:18:27] [OHOS ERROR] File "../../third_party/typescript/compile_typescript.py", line 34, in run_pack
[2024-09-19 15:18:27] [OHOS ERROR] run_cmd(["npm", "pack"], execution_path)
[2024-09-19 15:18:27] [OHOS ERROR] File "../../third_party/typescript/compile_typescript.py", line 23, in run_cmd
[2024-09-19 15:18:27] [OHOS ERROR] proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
[2024-09-19 15:18:27] [OHOS ERROR] File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
[2024-09-19 15:18:27] [OHOS ERROR] self._execute_child(args, executable, preexec_fn, close_fds,
[2024-09-19 15:18:27] [OHOS ERROR] File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
[2024-09-19 15:18:27] [OHOS ERROR] raise child_exception_type(errno_num, err_msg, err_filename)
[2024-09-19 15:18:27] [OHOS ERROR] FileNotFoundError: [Errno 2] No such file or directory: 'npm'
[2024-09-19 15:18:27]
[2024-09-19 15:18:27] [OHOS ERROR] Traceback (most recent call last):
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/containers/status.py", line 47, in wrapper
[2024-09-19 15:18:27] [OHOS ERROR] return func(*args, **kwargs)
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/modules/ohos_build_module.py", line 67, in run
[2024-09-19 15:18:27] [OHOS ERROR] raise exception
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/modules/ohos_build_module.py", line 65, in run
[2024-09-19 15:18:27] [OHOS ERROR] super().run()
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 72, in run
[2024-09-19 15:18:27] [OHOS ERROR] raise exception
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 70, in run
[2024-09-19 15:18:27] [OHOS ERROR] self._target_compilation()
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[2024-09-19 15:18:27] [OHOS ERROR] self.target_compiler.run()
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/services/ninja.py", line 38, in run
[2024-09-19 15:18:27] [OHOS ERROR] self._execute_ninja_cmd()
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[2024-09-19 15:18:27] [OHOS ERROR] SystemUtil.exec_command(
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/util/system_util.py", line 64, in exec_command
[2024-09-19 15:18:27] [OHOS ERROR] LogUtil.get_failed_log(log_path)
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/util/log_util.py", line 193, in get_failed_log
[2024-09-19 15:18:27] [OHOS ERROR] LogUtil.get_compiler_failed_log(log_path)
[2024-09-19 15:18:27] [OHOS ERROR] File "/home/mini/lonbon_work/work_OpenHarmony/build/hb/util/log_util.py", line 180, in get_compiler_failed_log
[2024-09-19 15:18:27] [OHOS ERROR] raise OHOSException(
[2024-09-19 15:18:27] [OHOS ERROR] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/mini/lonbon_work/work_OpenHarmony/out/rk3568/error.log, and for more build information in /home/mini/lonbon_work/work_OpenHarmony/out/rk3568/build.log
[2024-09-19 15:18:27] [OHOS ERROR]
[2024-09-19 15:18:27]
[2024-09-19 15:18:27] [OHOS ERROR] Code: 4000
[2024-09-19 15:18:27] [OHOS ERROR]
[2024-09-19 15:18:27] [OHOS ERROR] Reason: COMPILE Failed! Please check error in /home/mini/lonbon_work/work_OpenHarmony/out/rk3568/error.log, and for more build information in /home/mini/lonbon_work/work_OpenHarmony/out/rk3568/build.log
[2024-09-19 15:18:27] [OHOS ERROR]
[2024-09-19 15:18:27] [OHOS ERROR] Error Type: Ninja build error
[2024-09-19 15:18:27] [OHOS ERROR]
[2024-09-19 15:18:27] [OHOS ERROR] Description: An unknown error occurred while executing 'ninja -C'.
[2024-09-19 15:18:27] [OHOS ERROR]
[2024-09-19 15:18:27] [OHOS ERROR] Solution: no solution
[2024-09-19 15:18:27] [OHOS ERROR]
[2024-09-19 15:18:27] mini@mini-pc:~/lonbon_work/work_OpenHarmony$
mini@mini-pc:~/lonbon_work/work_OpenHarmony$
mini@mini-pc:~/lonbon_work/work_OpenHarmony$
[2024-09-19 15:24:05] mini@mini-pc:~/lonbon_work/work_OpenHarmony$
[2024-09-19 15:24:05] mini@mini-pc:~/lonbon_work/work_OpenHarmony$ hb env
[2024-09-19 15:24:08] [OHOS INFO] Necessary package: bison, ccache, default-jdk, flex, gcc-arm-none-eabi, genext2fs, libssl-dev, libtinfo5, mtd-utils, mtools, ruby, scons, u-boot-tools, zip
[2024-09-19 15:24:09] [OHOS INFO] Installed package: bison, ccache, default-jdk, flex, gcc-arm-none-eabi, genext2fs, libssl-dev, libtinfo5, mtd-utils, mtools, ruby, scons, u-boot-tools, zip
[2024-09-19 15:24:09] [OHOS INFO] Uninstalled package:
[2024-09-19 15:24:09] [OHOS INFO] root path: /home/mini/lonbon_work/work_OpenHarmony
[2024-09-19 15:24:09] [OHOS INFO] board: rk3568
[2024-09-19 15:24:09] [OHOS INFO] kernel: None
[2024-09-19 15:24:09] [OHOS INFO] product: rk3568
[2024-09-19 15:24:09] [OHOS INFO] product path: /home/mini/lonbon_work/work_OpenHarmony/vendor/hihope/rk3568
[2024-09-19 15:24:09] [OHOS INFO] device path: /home/mini/lonbon_work/work_OpenHarmony/device/board/rockchip/rk3568
[2024-09-19 15:24:09] [OHOS INFO] device company: rockchip
[2024-09-19 15:24:09] mini@mini-pc:~/lonbon_work/work_OpenHarmony$ ls
[2024-09-19 15:24:44] applications base build.py commonlibrary device domains foundation interface napi_generator prebuilts qemu-run third_party
[2024-09-19 15:24:44] arkcompiler build build.sh developtools docs drivers ide kernel out productdefine test vendor
【运行环境】
硬件:
rk3568
ROM版本:
openharmony 4 release
DevEvoStudio版本:
DevEco Studio 4 release
SDK版本:
API 11
作者:
cf981378640
时间:
2024-9-19 16:56
刚刚使用hb clean命令清理后重新build还是报出同样的错误
作者:
ohbrn
时间:
2024-10-30 21:53
回复
cf981378640
: 检查下是不是环境的问题,我参考了北京迅为的南向视频教程从新配置环境后正常了
作者:
shixiaocheng
时间:
2024-10-31 10:49
[2024-09-19 15:18:27] [OHOS ERROR] FileNotFoundError: [Errno 2] No such file or directory: 'npm'
npm重装下试试
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5