I had delayed upgrading my Ubuntu virtual machines from WSL (Windows Subsystem for Linux) version 1 to version 2 due to issues with clock drift during building. Last night I decided to upgrade WSL to latest version as it promised better support for direct access to graphics cards.
I had no problems during the build itself, but when packaging the binaries, the build script just kept reading and reading the directory without giving any descriptive error message... After searching for possible causes, I stumbled upon old bug report that said on some configurations, it's possible that the destination file cause a change in the filesystem that triggers restart of the packaging because the application thinks the build process hasn't finished yet. I obviously tried to change to another directory before starting the packaging application and after that, the application didn't try to restart anymore and running it was a lot faster process.