UPDATE: Sorry for the broken tabs/spaces in the Makefile above. I don't know how to fix this here, you'll have to fix it in the editor of your choice.
I was not able to compile any recent adb for arm on a Raspberry Pi so far, even after upgrading to Raspbian 10/buster which offers gcc 8.3.0
.
It also comes with adb v1.0.39, 1:8.1.0+r23-5
.
And to my surprise, Raspbian 11/bullseye
actually includes adb v1.0.41, 28.0.2-debian
Even better, bullseye is also available for arm64 now!