编译报错 ileExistsError: [Errno 17] File exists: 'toybox' -> 'bin/chmod'

xuxiyang 显示全部楼层 发表于 2023-12-25 17:26:57

[OHOS INFO] histreamer plugin: codec_adapter = false [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", "--toolchain", "//build/lite/toolchain:linux_x86_64_ohos_clang", "--compileTarget", "image"] [OHOS INFO] hks_config_small.h [OHOS INFO] histreamer audio encoder plugin only supports standard system [OHOS INFO] histreamer audio encoder plugin only supports standard system [OHOS INFO] histreamer video decoder plugin only supports standard system [OHOS INFO] histreamer video encoder plugin only supports standard system [OHOS INFO] histreamer ffmpeg muxer plugin only supports standard system [OHOS INFO] ERROR at //third_party/toybox/BUILD.gn:451:5: Script returned non-zero exit code. [OHOS INFO] exec_script("install.py", [OHOS INFO] ^---------- [OHOS INFO] Current dir: /home/young/ax_OpenHarmony/out/AX650N_Demo/AX650N_Demo/ [OHOS INFO] Command: /home/young/ax_OpenHarmony/prebuilts/python/linux-x86/current//bin/python3 /home/young/ax_OpenHarmony/third_party/toybox/install.py --long_path bin/chmod --out_dir /home/young/ax_OpenHarmony/out/AX650N_Demo/AX650N_Demo [OHOS INFO] Returned 1. [OHOS INFO] stderr: [OHOS INFO] [OHOS INFO] Traceback (most recent call last): [OHOS INFO] File "/home/young/ax_OpenHarmony/third_party/toybox/install.py", line 52, in <module> [OHOS INFO] sys.exit(main()) [OHOS INFO] File "/home/young/ax_OpenHarmony/third_party/toybox/install.py", line 46, in main [OHOS INFO] os.symlink("toybox", target_link) [OHOS INFO] FileExistsError: [Errno 17] File exists: 'toybox' -> 'bin/chmod' [OHOS INFO] [OHOS INFO] See //base/startup/init/services/init/lite/BUILD.gn:96:7: which caused the file to be included. [OHOS INFO] "//third_party/toybox", [OHOS INFO] ^--------------------- [OHOS INFO] openssl detecting os now... [OHOS INFO] current_cpu = arm [OHOS INFO] current_os = ohos [OHOS INFO] host_os = linux [OHOS INFO] is_mingw = false [OHOS INFO] openssl selected linux-armv4 [OHOS INFO] openssl detecting os done. openssl_selected_platform = linux-armv4 [OHOS INFO] Install OpenEuler Curl

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

精彩评论3

马迪

沙发 发表于 2023-12-26 20:07:55
建议写清楚这是编译什么版本,编译什么内容(轻量,小型,标准),才好有人回复

而且上面有报错信息和报错文件和行数,是不是可以先自己看看呢

xuxiyang

发表于 2023-12-27 10:19  IP属地: 江苏省扬州市

回复 马迪: 我是根据海思的hispark_taurus_linux 小型系统自建的board

【1 条回复】

润开鸿_梁开祝

板凳 发表于 2024-1-2 09:48:56
最简单的解决办法,可以删掉 out/AX650N_Demo/ 再重新编译。

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

返回顶部