Hi,
libpython2.7.so is not packaged anymore by recent distributions.
xtensa-esp32-elf-gdb should be compiled with python3.X.
Test case :
.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gdb --version
returns the following error :
.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
The arduino ide2 installs
.arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/11.2_20220823/bin/xtensa-esp32-elf-gdb
which seems to be ok with python3.X?
Is there a way to tell platformIO to use this version as a workaround?
Xavier