This seems to be the reason. Move the project to C:\, no error happened.3. path to the project is longer than 90 characters.
Tried a newer version CCache, v4.3, no error happened. Seems it's a bug of CCache. We need to upgrade the version of CCache if needed.This seems to be a bug in an older version of CCache in ESP-IDF.