Hi,
I am currently building OpenOCD in a fairly standard debian docker container. I am building the latest master rather than using 0.12.0 to get various bug fixes and updates.
It was all working fine a couple of days ago (20th December 13:12 UTC).
However, the next build after that (22nd December 02:49 UTC) had the following:
> [stage-0 21/28] RUN ./bootstrap && ./configure && make && make install:
src/.libs/libopenocd.a(libocdjtagdrivers_la-dummy.o): in function `dummy_init':
/openocd/openocd/src/jtag/drivers/dummy.c:112: undefined reference to `bitbang_interface'
/usr/bin/ld: src/.libs/libopenocd.a(libocdjtagdrivers_la-dummy.o):(.data.rel+0x98): undefined reference to `bitbang_execute_queue'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:3219: src/openocd] Error 1
make[2]: Leaving directory '/openocd/openocd'
make[1]: *** [Makefile:4980: all-recursive] Error 1
make[1]: Leaving directory '/openocd/openocd'
make: *** [Makefile:2135: all] Error 2
I'm not sure if something has changed in openocd in between those times ?
I also hit this last night after pulling latest master.
I am building on Apple Silicon aarch64 and got a linker error that the bitbang methods were undefined for ARM64. I worked around it by enabling the broadcom (PI) bitbanger in configure to force inclusion of the bitbang source. I am a newbie to Open OCD and I didn't look further but suspect a dependancy issue in the bitbang source file configuring.
Fixed with....
./configure --enable-bcm2835gpio
Thanks for the ticket.
Please check https://review.openocd.org/c/openocd/+/8682
Our autobuild failed to detect the issue because other drivers requiring bitbang code were included, hiding the broken dependency of 'dummy' adapter.