@Haelwenn /элвэн/ :triskell: That's a good point. For autotools there's no chance for it to ever get solved, as it's a stable and "finished' system. Nobody's gonna change this - even though it'd be quite feasible to always record the failed command and display it, even in autotools' m4 based design.
meson I had issues debugging as well in context of mpv's use of it. It's nice that it actually does decide to log the error, but sadly meson has other serious issues, such as having no useful --help that lists all configurable options of a project (so I have to dig into build sources etc. for that, as meson configure --help doesn't list them, unlike ./configure --help).
Of course, meson shares this issue with basically all modern build systems, and yet this is something so elementary that lots of end users of a project need. cmake may have ccmake but it often doesn't show even half the options a project defines...
In my opinion the issue of all those build systems is that they're intended for the small team of project developers, and they totally ignore the much larger group of users who just need to run the build system to compile a project by someone else. These users should not need to learn about the build system. They should be able to get all they need from --help and man pages.