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

sdk-0.13.1 - arm-zephyr-eabi-gdb depends on libpython3.8 #407

Closed
cmorganBE opened this issue Oct 15, 2021 · 3 comments
Closed

sdk-0.13.1 - arm-zephyr-eabi-gdb depends on libpython3.8 #407

cmorganBE opened this issue Oct 15, 2021 · 3 comments

Comments

@cmorganBE
Copy link

Ubuntu 21.04 here

/home/cmorgan/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb -ex 'target remote :3333' /home/cmorgan/projects/testproject/build/zephyr/zephyr.elf -ex load
/home/cmorgan/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or director

There aren't any libpython3.8 packages still available for 21.04.

A few people have tried some work arounds but none of these look particularly good:

Thoughts?

@stephanosio
Copy link
Member

If you do not need Python scripting capability in GDB, please use arm-zephyr-eabi-gdb-no-py.

If you do, you can install third-party Python 3.8 packages (search "ubuntu 21.04 python 3.8" on Google), or install from source.

@cmorganBE
Copy link
Author

@stephanosio this worked. I had to figure out to do that with west. Also saw this ticket, zephyrproject-rtos/zephyr#38749 which should make this easier. Maybe someone will support newer pythons at some point too. Anyway, with the below it works:

west debug --gdb ~/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb-no-py

@cmorganBE
Copy link
Author

@stephanosio thank you for responding!

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

2 participants