I ran into difficulties getting SWD working on my RPi5, so I decided to try this on my RPi4 (bullseye):
I d/l and ran the install script:All seemed to be going well at first; much of the output concerned 'openocd'; see partial listing below:
And so it appears that 'openocd' failed to build on my system due to "undefined reference(s) to various functions in '/home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c". I really cannot imagine what is the cause of that - ALTHOUGH I did d/l & build the 2.1 version of 'libgpiod' on this sytem a couple of weeks ago, but did not install it.
Any ideas what is gumming up the works for me on this system??
I d/l and ran the install script:
Code:
./pico_setup.sh
Code:
...=== configuring in jimtcl (/home/pi/pico/openocd/jimtcl)...make[3]: Leaving directory '/home/pi/pico/openocd' ...libtool: link: gcc -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Wpointer-arith -Wundef -Werror -g -O2 -o src/openocd src/main.o src/.libs/libopenocd.a -lftdi /usr/lib/arm-linux-gnueabihf/lib/libgpiod.so -lusb-1.0 -lm ./jimtcl/libjim.a -lutil -ldl -Wl,-rpath -Wl,/usr/lib/arm-linux-gnueabihf/lib -Wl,-rpath -Wl,/usr/lib/arm-linux-gnueabihf/lib/usr/bin/ld: src/.libs/libopenocd.a(libocdjtagdrivers_la-linuxgpiod.o): in function `linuxgpiod_reset':/home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:221: undefined reference to `gpiod_line_set_value'/usr/bin/ld: /home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:227: undefined reference to `gpiod_line_set_value'/usr/bin/ld: /home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:227: undefined reference to `gpiod_line_set_value'/usr/bin/ld: src/.libs/libopenocd.a(libocdjtagdrivers_la-linuxgpiod.o): in function `linuxgpiod_swd_write':/home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:163: undefined reference to `gpiod_line_set_value'.../home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:285: undefined reference to `gpiod_chip_open_by_number'/usr/bin/ld: /home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:292: undefined reference to `gpiod_chip_get_line'/usr/bin/ld: /home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:356: undefined reference to `gpiod_line_request'/usr/bin/ld: /home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:341: undefined reference to `gpiod_version_string'/usr/bin/ld: /home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:333: undefined reference to `gpiod_version_string'/usr/bin/ld: src/.libs/libopenocd.a(libocdjtagdrivers_la-linuxgpiod.o): in function `linuxgpiod_blink':/home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c:190: undefined reference to `gpiod_line_set_value'collect2: error: ld returned 1 exit statusmake[2]: *** [Makefile:3188: src/openocd] Error 1make[2]: Leaving directory '/home/pi/pico/openocd'make[1]: *** [Makefile:5013: all-recursive] Error 1make[1]: Leaving directory '/home/pi/pico/openocd'make: *** [Makefile:2113: all] Error 2
And so it appears that 'openocd' failed to build on my system due to "undefined reference(s) to various functions in '/home/pi/pico/openocd/src/jtag/drivers/linuxgpiod.c". I really cannot imagine what is the cause of that - ALTHOUGH I did d/l & build the 2.1 version of 'libgpiod' on this sytem a couple of weeks ago, but did not install it.
Any ideas what is gumming up the works for me on this system??
Statistics: Posted by irishmonk-57 — Mon Jan 22, 2024 8:55 am