Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv32-esp-elf-gdb requires libpython2.7 (OCD-411) #181

Closed
jeancf opened this issue Oct 1, 2021 · 2 comments
Closed

riscv32-esp-elf-gdb requires libpython2.7 (OCD-411) #181

jeancf opened this issue Oct 1, 2021 · 2 comments

Comments

@jeancf
Copy link

jeancf commented Oct 1, 2021

Environment

  • chipset: esp32-c3
  • Operating System: linux
  • ESP-IDF version: master

Problem Description

Steps to reproduce the behavior:

  1. Install idf master branch on a system that does not have python 2.7 installed
  2. execute idf.py gdb in a console and notice:
Executing action: gdb
riscv32-esp-elf-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

This dependency is not documented.

Expected behavior

Since python 2 reached End-of-life on Jan 1 2020 and is no longer supported, I did not expect a dependency on it. I would prefer not to have to install it on my system just to run gdb.
I see that a similar issue (espressif/esp-idf#5284) has already been reported for extensa.
Can libpython2.7 be included in the gdb package maybe?

thanks.

@github-actions github-actions bot changed the title riscv32-esp-elf-gdb requires libpython2.7 riscv32-esp-elf-gdb requires libpython2.7 (OCD-411) Oct 1, 2021
@gerekon
Copy link
Collaborator

gerekon commented Oct 1, 2021

Hi @jeancf,

Yes, this is a bit bgger issue. In general GDB Python support requires not only libraries but also packages for Python with respective version. We plan to solve this problem maybe by providing several GDB binaries built for all supported Python versions. Minor Python versions are not compatible too, so we will ned to have GDB binaries for every 3.x Pythons to cover all possible user setups.
arm-none-eabi- toolchain suggests similar approach https://xpack.github.io/arm-none-eabi-gcc/python/.

@igrr
Copy link
Member

igrr commented Oct 1, 2021

This issue is currently tracked in espressif/esp-idf#6334 (although the title is about xtensa-esp32-elf-gdb, it's the same problem).
@jeancf I'm going to close this issue as duplicate; please click "subscribe" button in the linked issue to get notified when the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants