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
esp32: Undocumented dependency of libpython2 #39212
Comments
Adding -DPYTHON=${PYTHON_EXECUTABLE} before here zephyr/boards/xtensa/esp32/CMakeLists.txt Line 21 in 4dedae5
There is no real dependency on Python2. It perfectly works with Python3. |
That's a bit strange, maybe you need something like this somewhere else? |
Hi @sylvioalves, the error occurs on both cases (west build and executing If you look at binary, it's linked against libpython2.7.so.1, so I'm guessing your machine has at least libpython2 installed. Here's the ldd output:
|
I have the same env as you (no python 2.7 related tools): sylvio@pc:~/projects/espressif/zephyr/zephyr$ ldd ~/.espressif/tools/zephyr/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb
linux-vdso.so.1 (0x00007ffcba97a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe55b621000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe55b5fe000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fe55b5f9000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe55b4aa000)
libpython2.7.so.1.0 => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe55b2b8000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe55b647000) but no issues when building. So I am wondering what would be the diff right now. Editing: |
Thanks!
|
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
The following error message is seen when building esp32 on a system without python2 installed:
/home/alfredoj/.espressif/tools/zephyr/xtensa-esp32-elf/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
I think it's undocumented dependency, but depends on python3 instead would be nice, if possible.
Fix/workaround: sudo apt install libpython2.7
To Reproduce
Expected behavior
Run without errors. The gdb console should appear when executing /home/alfredoj/.espressif/tools/zephyr/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb
Impact
gdb debugger not working.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: