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

Unable to run arm-none-eabi-gdb #24

Open
bmaupin opened this issue Jun 3, 2022 · 0 comments
Open

Unable to run arm-none-eabi-gdb #24

bmaupin opened this issue Jun 3, 2022 · 0 comments

Comments

@bmaupin
Copy link

bmaupin commented Jun 3, 2022

I'm unable to run arm-none-eabi-gdb using the devkitpro/devkitarm image. It appears there are a couple issues:

  1. /opt/devkitpro/devkitARM/bin isn't in the path

    $ docker run -it --rm -v "$PWD:/build" devkitpro/devkitarm
    
    # arm-none-eabi-gdb
    bash: arm-none-eabi-gdb: command not found
    
    # find / -name arm-none-eabi-gdb
    /opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb
    
  2. Dependencies are missing:

    # /opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb
    /opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
    
    # apt install libtinfo5
    ...
    
    # /opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb
    /opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
    
    # apt -y install libpython2.7
    ...
    
    # /opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb
    (gdb) 
    

Here's my one-liner workaround for anyone running into this:

docker run -it --rm -v "$PWD:/build" devkitpro/devkitarm sh -c "PATH=/opt/devkitpro/devkitARM/bin:"$PATH"; apt -y install libtinfo5 libpython2.7; arm-none-eabi-gdb"

or:

docker run -it --rm -v "$PWD:/build" devkitpro/devkitarm sh -c "PATH=/opt/devkitpro/devkitARM/bin:"$PATH"; apt -y install libtinfo5 libpython2.7; bash"
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

1 participant