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

gdb version too old - needs python2.7 #1353

Open
anm opened this issue Apr 11, 2024 · 8 comments
Open

gdb version too old - needs python2.7 #1353

anm opened this issue Apr 11, 2024 · 8 comments

Comments

@anm
Copy link

anm commented Apr 11, 2024

I can't run esp32 gdb because python2.7 is too old for my OS.
Installing the latest version direct from espressif works.

I've seen other people encountering this problem on platformio forums too.

@Jason2866
Copy link
Contributor

I have nowhere an issue not using python v2.7 with GDB

@calint
Copy link

calint commented May 10, 2024

Same problem in Ubuntu 24.04.

@arduhe
Copy link

arduhe commented May 29, 2024

I would really appreciate if this could be fixed soon. This ancient version of python2 - support for Python 2 ended Jan. 1, 2020 see announcement on python.org - may be a security risk.

@Jason2866
Copy link
Contributor

What is the exact issue? What command is not working without Python2?

@arduhe
Copy link

arduhe commented May 29, 2024

ldd xtensa-esp32-elf-gdb
        linux-vdso.so.1 (0x00007ffc70f64000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f4d1d2f2000)
        **libpython2.7.so.1.0** => /usr/lib64/libpython2.7.so.1.0 (0x00007f4d1d0a7000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4d1d083000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007f4d1d07f000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f4d1cf33000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f4d1ccec000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4d1ccc8000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4d1cad1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4d1d339000)

gdb is linked dynamically against V2 of libpython. Several distros do no longer offer V2 - so you have either to install it manuallly - as I did longer ago (and forgot that fact until today 😉) - or you get an error message due to the missing lib.

I saw in the meantime that @valeros has upgraded the python version in CI to 3.9 - so I am little bit optimistic
that the next release fixes this isuue

@Jason2866
Copy link
Contributor

Ahh, you are using the old version

@arduhe
Copy link

arduhe commented May 29, 2024

Not voluntary 😆

@calint
Copy link

calint commented May 29, 2024

I am using the latest PlatformIO (6.1.15) and have the same issue.

The Python 2 library that is no longer available in Ubuntu 24.04.

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

4 participants