This is a Debian bug, not a pitivi or meson bug. Here's how you reproduce it:
--- $ export MAKE="ninja -v" $ echo "int main(void) { return 0; }" > test.c $ cc test.c -o test -flto=auto ninja: error: /tmp/ccCz1Mkh.mk:1: lexing error lto-wrapper: fatal error: ninja returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status --- So there's some linker / lto script that uses $MAKE and expects it to actually be a make implementation. Which is a reasonable expectation, but debian/rules is setting MAKE to ninja for Meson recipes. I can reproduce the same issue on Fedora, so it's not a Debian-specific linker / lto script.