Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

SDK • Can no longer build OpenOCD under Trixie

$
0
0
Pi 3B (non-plus), Raspberry Pi OS Desktop, Trixie 64-bit, X-11

Code:

sudo apt install gdb-multiarch automake autoconf build-essential texinfo libtool \                 libftdi-dev libusb-1.0-0-dev libjim-dev pkg-config libgpiod-devgit clone https://github.com/raspberrypi/openocd.git --branch rp2040-v0.12.0 --depth=1 --no-single-branchcd openocd./bootstrap./configure --disable-werror \            --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio --enable-linuxgpiodmake
I am sure that configuration worked under Bookworm 32-bit, matches what is included in 'pico-setup.sh', but it fails under Trixie 64-bit with all sorts of 'gpiod' errors, first being -

Code:

src/jtag/drivers/linuxgpiod.c:51:18:   error: implicit declaration of function 'gpiod_line_get_value';   did you mean 'gpiod_line_request_get_value'? [-Wimplicit-function-declaration]   51 |         retval = gpiod_line_get_value(gpiod_line[ADAPTER_GPIO_IDX_TDO]);      |                  ^~~~~~~~~~~~~~~~~~~~      |                  gpiod_line_request_get_value
I presume this comes down to 'libgpiod', which was 1.6.3 for Bookworm, seems to be 2.2.1 for Trixie ...

Code:

pi@Pi4B:~ $ uname -aLinux Pi4B 6.12.34+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1~bookworm (2025-06-26) aarch64 GNU/Linuxpi@Pi4B:~ $ gpioget --versiongpioget (libgpiod) v1.6.3Copyright (C) 2017-2018 Bartosz GolaszewskiLicense: LGPLv2.1

Code:

pi@Pi3B:~/pico/openocd $ uname -aLinux Pi3B 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1 (2025-09-16) aarch64 GNU/Linuxpi@Pi3B:~/pico/openocd $ gpioget --versiongpioget (libgpiod) v2.2.1Copyright (C) 2017-2023 Bartosz GolaszewskiLicense: GPL-2.0-or-later
It's intriguing that the licence seems to have become more restrictive, but that's an aside.

How do I get OpenOCD to build or is that something Raspberry Pi will have to fix ?

Statistics: Posted by hippy — Wed Oct 08, 2025 11:36 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles