meson build ninja permission error

ninja install 
[...] 
6 files changed, 231 insertions(+), 55 deletions(-)
[1/17] Generating src/siril_resource_c with a custom command
ninja: build stopped: Error writing to deps log: Permission denied.

If I run:

sudo ninja install

it works fine.
Could you tell me where to look for the deps log so I can check permissions?
TIA
Ubuntu 24.04.1

I don’t know how you build Siril, but I recommend to do it in a _build directory.

meson setup _build --buildtype=debug for debug or replace debug by release if not.
Then
ninja -C _build

It should ask you for your password, but should be fine.