I don't know where it got broken for arm but it is quite some time ago - years -. Better to ask the maintainers of BGRA* to fix the regression than to install an old and un-maintained Lazarus....
Note it is possible to compile just the modbus units for console I believe, and those units all compile (but I did not test them). It is pure the BGRA libraries that fail.