Occasional "ninja: error: opening build log: Permission denied" when building project
Posted: Fri Feb 21, 2020 10:02 am
Hi,
this is my setup:
I don't understand why this happens. Moreover, it's almost impossible for me to reproduce the error because it's happening sporadically when I'm building multiple times the same project.
I understand that the issue is related to Ninja but I have no clue about how to solve it. I noticed that when I restart the PC the problem disappears.
this is my setup:
- OS: Windows 10 Pro Inisider Preview, Build 19569
- xtensa-esp32-elf: esp-2019r2-8.2.0
- esp32ulp-elf: 2.28.51.20170517
- cmake: 3.13.4
- openocd-esp32: v0.10.0-esp32-20190313
- mconf: v4.6.0.0-idf-20190628
- ninja: 1.9.0
- idf-exe: 1.0.1
- ccache: 3.7
- python: py3.7
- ESP-IDF: V4.0
Code: Select all
C:\development\app>idf.py build flash monitor
Checking Python dependencies...
Python requirements from C:\development\esp\requirements.txt are satisfied.
Executing action: all (aliases: build)
Running ninja in directory c:\development\app\build
Executing "ninja all"...
ninja: error: opening build log: Permission denied
ninja failed with exit code 1
C:\development\app>
I understand that the issue is related to Ninja but I have no clue about how to solve it. I noticed that when I restart the PC the problem disappears.