RAK811-Trackerboard with mbed & Arduino frameworks

Thats the example I have used.

You should write an issue on their github page.

If you want to fix it yourself.
You can compile with lora.phy = 0 and save the result in one directory then compile with lora.phy=2 and see what defines are missing.
Its probably something easy to fix.