Ah, sorry I was so unclear -- I didn't have internet access on my laptop, so I posted the question from my phone.
Quote:
You put ARM executables onto a x86_64 machine?
|
The GNU programs (e.g. aarch64-none-elf-as, aarch64-none-elf-gdb etc.) are for cross-development; they
run on x86_64 but
generate code for bare-metal Aarch64.
Quote:
Your python executable is in /libx64?
|
Oops. No. The executable is in /usr/bin. Python's libraries (or modules, whatever they're called) are in /usr/lib64/python3.9.
Quote:
What is the entire error when trying to run gdb?
|
Code:
$ aarch64-none-elf-gdb
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.executable = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f22b466ec00 (most recent call first):
<no Python frame>
I have a fresh install of Slackware 15.0. I then just removed the kde stuff (with 'slackpkg remove kde').
Quote:
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.
|
Yes, I'd have preferred to install using sbopkg. SBo only contains:
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:
These toolchains are built on
and for RHEL7 on x86_64, and
will likely also be useable on
OS versions:
- RHEL8
- Ubuntu 18.04 or later
...
Known Dependencies
GDB's Python support on Linux hosts requires installation of Python3.8, Python3.8-dev or libpython3.8.
|
I was hoping it would be something trivial. If it's not, I'll try compiling everything myself. Python 3.9 isn't good enough if it wants Python 3.8 ?