OpenHarmony开发者论坛

标题: 编译报错 ileExistsError: [Errno 17] File exists: 'toybox' -> 'bin/chmod' [打印本页]

作者: xuxiyang    时间: 2023-12-25 17:26
标题: 编译报错 ileExistsError: [Errno 17] File exists: 'toybox' -> 'bin/chmod'
[md][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
[/md]
作者: 马迪    时间: 2023-12-26 20:07
建议写清楚这是编译什么版本,编译什么内容(轻量,小型,标准),才好有人回复

而且上面有报错信息和报错文件和行数,是不是可以先自己看看呢
作者: xuxiyang    时间: 2023-12-27 10:19
回复 马迪: 我是根据海思的hispark_taurus_linux 小型系统自建的board
作者: 润开鸿_梁开祝    时间: 2024-1-2 09:48
最简单的解决办法,可以删掉 out/AX650N_Demo/ 再重新编译。




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