ccache: error: Failed to ctreate temporary file for esp-idf/..../pwhash_scryptsalsa208sha256_nosse.c.obj: No Such file or directory

参考:

https://blog.csdn.net/zhangjingxun12/article/details/117095349

查看出问题的路径:

F:programespcomponentslibsodiumlibsodiumsrclibsodiumcrypto_pwhashscryptsalsa208sha256sse

总共有98个字符,超过了路径最大为90的规定。

更改方法1:

编译时加参数 --no-ccache

eg:

idf.py --no-ccache build

idf.py --no-ccache -p COM6 flash

更改方法2:

修改文件安装路径,减少路径长度。

原文地址:https://www.cnblogs.com/rohens-hbg/p/15494267.html