idf-installer icon indicating copy to clipboard operation
idf-installer copied to clipboard

Build of source code fails if path to CCache contains space

Open georgik opened this issue 2 years ago • 1 comments

How to simulate:

  • set variable to the path with space
$env:CCACHE_DIR="C:\Users\User\Desktop\ccache with-space"
idf.py build

Failure by the end of the build:

xtensa-esp32-elf-gcc.exe: error: C:\Users\User\Desktop\ccache: No such file or directory
xtensa-esp32-elf-gcc.exe: error: with-space/tmp/cmd_args.GyJI3l: No such file or directory

Workaround: Set CCACHE_DIR env variable to path without spaces.

Suggested correction for the installer: configure CCACHE_DIR during installation process to point to C:\Espressif directory.

georgik avatar Mar 02 '22 09:03 georgik

Updates: New version of CCache is being tested, it should have support for spaces in the path

georgik avatar Sep 01 '22 12:09 georgik