@Baldnerd I was getting frustrated like you and spent long time trying to compile and getting the same error.
/usr/bin/ar: bin/static/libheimdal_roken_getprogname_h.a: No such file or directory
make[1]: *** [Makefile:15190: bin/static/libheimdal_roken_getprogname_h.a] Error 1
After banging my head on the keyboard for a while, the fix was shockingly super simple – In the Samba/source/bin/ folder I had to create the directory ‘static’
After I did that the compile got much farther, I think it still errored and failed on something else, but in the bin folder it generated the wmic binary I needed 🙂
And I can confirm this wmic is working on Windows 20H2!
Hope this helps someone out!