Can’t run ARM’s gdb (Python problem?)
I didn’t find an SBo for a recent aarch64-binutils etc. so I’ve downloaded ARM’s precompiled utils for Aarch64 cross-development on Linux-x86_64.
Binutils and gcc run fine, but gdb exits immediately: Code:
Could not find platform independent libraries <prefix> Is there some way to convince gdb to use the installed Python? Setting $PYTHONHOME didn’t help. |
https://www.gnu.org/software/gdb/
Quote:
Code:
whereis python Looks like gdb depend on: glibc ncurses libncursesw.so=6-64 gcc-libs expat xz mpfr source-highlight gdb-common=xx readline libreadline.so=xx guile python libelf What is the entire error when trying to run gdb? Quote:
You need to give a lot more info. The basic fix for this is to use your pacakge manager to install software. So that all depends will be resolved. If gdb is not in your repo, then you may need to build it against your machines libraries, then install it with your package manager. It's not clear what you are doing though. |
Ah, sorry I was so unclear -- I didn't have internet access on my laptop, so I posted the question from my phone.
Quote:
Quote:
Quote:
Code:
$ aarch64-none-elf-gdb Quote:
arm-binutils 2.35 arm-gcc 10.2.0 arm-gdb 10.1. (ie. older versions, generating code for arm32). The Arm GNU toolchain (https://developer.arm.com/downloads/...hain-downloads) (12.2.Rel1 from 22.12.2022) has aarch64-none-elf-as 2.39 aarch64-none-elf-gcc 12.2.1 aarch64-none-elf-gdb 12 I wanted to avoid building the entire GNU toolchain, as I seem to remember it being fairly involved. I just read the Release Notes: Quote:
|
Couple of thoughts.
Can your machine find python and friends? Does python run from the terminal? Code:
python Does python give you python 2 or 3? Slack still uses python2. Also, you have a valid python path specified? Is that where gdb is looking for it? Code:
python --version Code:
python -c "import sys; print('\n'.join(sys.path))" Code:
>>> import sys |
Thanks for the help, teckk.
I've just downloaded and installed python-3.8.16 (from python.org). Now, aarch64-none-elf-gdb runs ok. Seems excessive to have to have every version of python installed though... |
All times are GMT -5. The time now is 09:41 AM. |