For those who might face the same issue, I took the master branch of Blender and compiling failed because of Audaspace missing min and max functions in std:: so it looked like there was a missing include directive somewhere as mentioned on Stackoverflow.
In your local blender git repo:
open ./extern/audaspace/src/respec/ChannelMapperReader.cpp
add #include where other includes are at the top of the file
I did a fresh install by cloning the master branch of Blender yesterday. Maybe I’m missing something obvious and you’re right, that commit should have solved it.