OpenOCD's PKGBUILD is missing two features (build flags) to support Raspberry Pi's and generic GPIOs. These are bcm2835gpio and sysfsgpio. I've verified that the package with added features builds on a Raspberry Pi and that OpenOCD works afterwards, even tried JTAG with an actual device.
The PKGBUILD is also missing ARM architecture(s) and doesn't want to build as-is. I don't know if that's a common occurence in ALARM, but thought it was worth mentioning. If you manually build it, the arch line has to be corrected as well.
"diff":
$this->bbcode_second_pass_code('', '_features=(amtjtagaccel armjtagew buspirate ftdi gw16012 jlink oocd_trace opendous osbdm
parport presto_libftdi remote-bitbang rlink stlink ti-icdi ulink usbprog vsllink
aice cmsis-dap dummy jtag_vpi openjtag_ftdi usb-blaster-2 usb_blaster_libftdi bcm2835gpio sysfsgpio)
pkgrel=3
arch=('x86_64' 'armv7h' 'aarch64')')