To follow up on our brief exchange on IRC, I can compile the current version on my Ubuntu on Windows Subsystem for Unix following the guide at
https://www.rockbox.org/wiki/Windows10CrossCompiler.
I was wrong that I compiled mine last in winter, it was actually in june 2021.
The only thing I did to make it compile was edit apps/plugins/SUBDIRS to remove midi/mikmod/lua/lua_scripts. It is quite possible some of these can be made to compile, but I did not need them.
My Ubuntu is a bit old now though, it is 20.04 (outdated too, last updated june 2021). mingw-w64 claims to be 7.0.0-2, with i686-w64-mingw32-gcc 9.3-win32.
With those 4 plugins removed, it compiles quickly and without errors.