Project

General

Profile

Debug problem

Added by Dmitry Gorulko over 12 years ago

Hello!
I am trying to establish debug session in accordance with wiki's Debugging ARM Apps with Eclipse.
As it said, I have got a library error message "/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory" when I am starting debugger.
I have been trying to add a link to libtinfo.so.5 (which is in /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib and points to libtinfo.so.5.7 in the same dir) in /lib and /usr/lib as well, but still have the same error.
So I wonder, what must be exact path to that library?

If it is helpful, ldd command output:

mitydsp@mitydsp-dev:/usr/local/angstrom/arm/bin$ ldd ./arm-angstrom-linux-gnueabi-gdb
linux-gate.so.1 => (0x0081e000)
libncurses.so.5 => /lib/libncurses.so.5 (0x00a84000)
libtinfo.so.5 => not found
libz.so.1 => /lib/libz.so.1 (0x0053d000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0040f000)
libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00552000)
libexpat.so.1 => /lib/libexpat.so.1 (0x00baa000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00110000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00e13000)
/lib/ld-linux.so.2 (0x0029f000)
libssl.so.0.9.8 => /lib/i686/cmov/libssl.so.0.9.8 (0x00d8a000)
libcrypto.so.0.9.8 => /lib/i686/cmov/libcrypto.so.0.9.8 (0x002bc000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00bf3000)
libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0x0026a000)

Thanx!


Replies (2)

RE: Debug problem - Added by Michael Williamson over 12 years ago

Hi,

Which version of the toolchain / VM are you using?

Did you install on your own linux build machine or are you using a VM provided by Critical Link?

-Mike

RE: Debug problem - Added by Dmitry Gorulko over 12 years ago

Hello Mike!
I am using a VM from the Critical Link's DVD (MDK 2011/03/31, arm-angstrom-linux ver. 2010.7-test-20101118)
My problem is solved by adding links as in wiki's "GDB dependency hassles", but like this:
sudo ln -s /usr/lib/libncurses.so /usr/lib/libtinfo.so.5
sudo ln -s /usr/lib/libtinfo.so.5 /usr/lib/libtinfo.so
There was no libncurses.so.5, but libncurses.so link in my /user/lib/
Thanx!

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)