当遇到编译的时候报如下错误的时候
OHOS INFO] Returned 1.
[OHOS INFO] stderr:
[OHOS INFO]
[OHOS INFO] Traceback (most recent call last):
[OHOS INFO] File "/home/gavin/OpenHarmony/third_party/toybox/install.py", line 52, in
[OHOS INFO] sys.exit(main())
[OHOS INFO] File "/home/gavin/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'
【解决办法】
首先重新安装编译工具
./build/build_scripts/env_setup.sh
然后删除out目录重新编译即可解决问题