This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

gdb & gdbserver

Guru 20755 points

Hi,

I am trying to use gdbserver and I quite struglle with this issue for a while...

It should have been simple:

1. for the host I'm using the arm-arago-linux-gnueabi-gdb which is part of the SDK cross-compiler toolchain.

2. for the target, the filesystem (which is also part of SDK),  contain gdbsever

I'm using Ubuntu 14.04 64-bits.

On the first try I got the following error:

$./arm-arago-linux-gnueabi-gdb

./arm-arago-linux-gnueabi-gdb: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

I than installed phyton 2.6 using the "software center" as suggested in

http://e2e.ti.com/support/arm/sitara_arm/f/791/p/205822/1210425.aspx#1210425

But then I got new error:

ubuntu@ubuntu-VirtualBox:/usr/lib$ arm-arago-linux-gnueabi-gdb
arm-arago-linux-gnueabi-gdb: error while loading shared libraries: libpython2.6.so.1.0: wrong ELF class: ELFCLASS64
ubuntu@ubuntu-VirtualBox:/usr/lib$

I wander if there is a way to resolve this or does it mean I must move to the old 10.4 32-bit in my 64-bit laptop  ?

  • Hi,

    $./arm-arago-linux-gnueabi-gdb

    ./arm-arago-linux-gnueabi-gdb: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

    Are you able to execute "arm-arago-linux-gnueabi-gcc"  in your host machine?

    Try "sudo apt-get update" on your host ubuntu machine.

    Please refer the below TI wiki.

    http://processors.wiki.ti.com/index.php/Debugging_remotely_on_DaVinci_using_gdb

  • Hi,

    arm-arago-linux-gnueabi-gcc works.

    sudo apt-get updtae I also did (several times actually).

    The problem is only with 

    $./arm-arago-linux-gnueabi-gdb

    The wiki link does not help with that neither.

  • Hi,

    I'm using Ubuntu 14.04 64-bits.

    1. for the host I'm using the arm-arago-linux-gnueabi-gdb which is part of the SDK cross-compiler toolchain.

    Yes, You are right but It is only for ubuntu 10.4 or 12.04 only,

    I hope ubuntu 14.04 is not recommended.

    Also I hope you installed "ia32l-ibs" to support 32 bit binaries on 64 bit machine.

    Please try the following command and refer the link.

    sudo apt-get install libpython2.7:i386

    http://processors.wiki.ti.com/index.php/Linux_Host_Support#Ubuntu_14.04_64-bit_.28incomplete....29.

    Also, Do some google search to fix the issue (broken libs)

    It is bit tough to know the exact problem since it is ubuntu 14.04 with 64 bit

    I hope you can understand, Try ubuntu 12.04 32 bit and also it is recommend & tested.

  • Hi Titusrathinaraj,

    Should it be 10.4 32-bit ?

    Please try the following command and refer the link.

    sudo apt-get install libpython2.7:i386

    Do you mean libpython2.7 or libpython2.6 ? (the error refers to libpython2.6)

    I did google search on this issue, but it did not help. I probably need 10.4 32-bit  instead.

    Thanks,

    Ran

     

  • Hi,

    Should it be 10.4 32-bit ?

    I did google search on this issue, but it did not help. I probably need 10.4 32-bit  instead.


    Typically, We will release SDKs and packages for especially for 32 bit host machines for ubuntu 12.04 32 bit LTS.

    Linux host ubuntu 12.04 is also strongly recommended.

    sudo apt-get install libpython2.7:i386

    or

    sudo apt-get install libpython2.6:i386

    Here, We are mentioning the packages should be in 32 bit format. thats it..

    Log:


    titus@titus-desktop:~/workdir/ti-e2e/src$

    titus@titus-desktop:~/workdir/ti-e2e/src$
    titus@titus-desktop:~/workdir/ti-e2e/src$ arm-arago-linux-gnueabi-gdb
    GNU gdb (GDB) 7.2
    Copyright (C) 2010 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=i686-linux --target=arm-arago-linux-gnueabi".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    (gdb)
    (gdb)
    (gdb) quit
    titus@titus-desktop:~/workdir/ti-e2e/src$
    titus@titus-desktop:~/workdir/ti-e2e/src$ uname -a
    Linux titus-desktop 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
    titus@titus-desktop:~/workdir/ti-e2e/src$
    titus@titus-desktop:~/workdir/ti-e2e/src$
    titus@titus-desktop:~/workdir/ti-e2e/src$ cat /etc/lsb-
    lsb-base/            lsb-base-logging.sh  lsb-release          
    titus@titus-desktop:~/workdir/ti-e2e/src$ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=12.04
    DISTRIB_CODENAME=precise
    DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
    titus@titus-desktop:~/workdir/ti-e2e/src$
    titus@titus-desktop:~/workdir/ti-e2e/src$
    titus@titus-desktop:~/workdir/ti-e2e/src$

  • I installed 12.04, and now it works.

    Thanks,

    Ran

  • Hi,

    I'm glad that you were able to fix it..

    Thanks for your update.