Rasbee II: firmware flashing flashing not working, hardwar defect?

For the compilation error, you have perhaps something usefull here Make installation error.

Your jeedom machine is not on a virtual machine ? docker ?