Xtensa-esp32-elf-gdb should not depend on obsolete libpython2.7.so.1.0

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

I have the same issue. I wonder if someone found a solution…

Check

Any solutions to this? Same issue here with Ubuntu:
undefined/home/peter/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/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