Duet 2 firmware compilation broken on Debian 11

As I ran into the same issue yesterday, I would like to emphasize my wish for getting this fixed.
The current MainsailOS (downloaded yesterday) already uses Bullseye as @zettabomb already forecasted.
To be quite honest, I’m not sure how we could find a suitable dev willing to put work into this. @Knackwurst would also have a spare Duet 2 Wifi for diagnostic purposes.

For sake of completeness: