St_W wrote:unfortunately I cannot remember the reason why MSYS2 didn't work there back then either. For manual builds on other machines I'm using MSYS2 nowadays and it works just fine.
mingw-org (the first one, 32-bit) has very good support for long command lines on windows. You can see what the limits are by checking output from 'xargs --show-limits'.
mingw-w64 (32/64 bit) simply uses windows CreateProcess() function, and the command line length limits are much shorter. Previously I would have used mingw-w64 build tools, and 'make' from mingw-org. Now, in fbc-1.07.0 I changed some of the techniques used in fbc's makefile for some build systems to handle the shorter command line lines. For example, using xargs, or wildcard filter instead of trying to pass the very long list of filenames to the child processes.
Normally, I just run 'make ...' from cmd.exe for most development tasks. And almost never use msys, msys2, sh, bash, etc.