Eclipse 2021-06 remote debugging on BBB

Hi all,
I did a search on this site but did not find anything relevant.
I’m trying to remote debug an app on Beaglebone Black using eclipse 2021-06 (4.20.0) on Ubuntu 20.04
Beaglebone Black: Linux beaglebone 5.4.106-ti-rt-r31
First it complained about not finding libncurses.so.5 libtinfo.so.5 during the launch of the debugger, so I created symlinks from X.so.6 to X.so.5, this helps for the moment.
Then the eclipse debugger complained about not finding libpython2.7.so.1.0, “python --version” responds with python3.
Has anyone found a way to remote debug on Ubuntu 20.04 with eclipse 2021-06 to Beaglebone Black?

I have had Ubuntu 18.04 with an older Eclipse working, but don’t want to down grade unless I have to.

How do you have your cross compile config set-up?

Also, what language are you trying to cross compile to run on the BB?

Jon

Hi Jon,
Will be cross compiling, debugging a C program and LVGL. for now it is just a hello world C app to get things setup.
Will attempt to provide some images, lets hope it works.

For cross compiling, prefix and path were set, as shown
properties-settings

On Debug Configurations, Connection and Remote Absolute File Paht must be set
Debug-configurations

Connection was set as shown here. The rsa key was added to the BBB, so I don’t need a password to log in
connection

Debugger tab: give full path to arm-linux-gnueabihf-gdb
Debug-cnfigurations-debugger

This is the last of the 3 errors that I get.
Could not determine GDB version using command: /home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb --version
/home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

After a little more research,
solved it by installing libpython2.7:i386 (note the :i386 suffix)

still have to use symlinks for libncurses.so.5 and libtinfo.so.5

I ended up installing the following to get it to work:

sudo apt-get install build-essential libncurses5 libncurses5-dev

sudo apt-get install libpython2.7

./arm-linux-gnueabihf-gdb
GNU gdb (Linaro_GDB-2019.12) 8.3.1.20191204-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “–host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type “help”.
Type “apropos word” to search for commands related to “word”.
(gdb)

I’m guessing they still have a Python 2.7 dependency with the 7.5 toolchain.

Cheers,

Jon

jomoengineer
August 1

I ended up installing the following to get it to work:

sudo apt-get install build-essential libncurses5 libncurses5-dev

installing libncurses5 and -dev did not fix the issue when trying to debug on the BBB
Could not determine GDB version using command: /home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb --version
/home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
I still need symlink for libncuses.so.6 to .so.5, also for libtinfo.so.5

whereis libncurses.so.5
libncurses.so: /usr/lib/x86_64-linux-gnu/libncurses.so /usr/lib/x86_64-linux-gnu/libncurses.so.6
This is what I get, so it does not look like apt install of libncurses5 and -dev install .so.5 version

This is what I get:

$ /home/jomotest/develop/bbuild/toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb --version
GNU gdb (Linaro_GDB-2019.12) 8.3.1.20191204-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ sudo find / -name libncurses.so.5
/snap/core/11316/lib/x86_64-linux-gnu/libncurses.so.5
/snap/core/11420/lib/x86_64-linux-gnu/libncurses.so.5
/snap/core18/2074/lib/x86_64-linux-gnu/libncurses.so.5
/snap/core18/2066/lib/x86_64-linux-gnu/libncurses.so.5
/usr/lib/x86_64-linux-gnu/libncurses.so.5

$ ls -lt /usr/lib/x86_64-linux-gnu/libncurses.so.5
lrwxrwxrwx 1 root root 17 Feb 25 2020 /usr/lib/x86_64-linux-gnu/libncurses.so.5 → libncurses.so.5.9

$ ls -lt /usr/lib/x86_64-linux-gnu/libncurses.so.5.9
-rw-r–r-- 1 root root 149736 Feb 25 2020 /usr/lib/x86_64-linux-gnu/libncurses.so.5.9

I did not have to link anything. Also, I did install libncurses5 after libncurses5-dev so I am not sure if that makes a diff.

Cheers,

Jon