building gdb6.7 on AIX 5.3 64bit machine - Aix

This is a discussion on building gdb6.7 on AIX 5.3 64bit machine - Aix ; CC = xlc CFLAGS = -q64 OBJECT_MODE = 64 while building it gave me an error message in bfd. gmake[2]: Entering directory `/home/tools/ravit/gdb6.7/bfd' /bin/sh ./libtool --tag=CC --mode=compile /usr/vac/bin/xlc - DHAVE_CONFIG_H -I. -I.././bfd -I. -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE - DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I.././bfd ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: building gdb6.7 on AIX 5.3 64bit machine

  1. building gdb6.7 on AIX 5.3 64bit machine

    CC = xlc
    CFLAGS = -q64
    OBJECT_MODE = 64

    while building it gave me an error message in bfd.

    gmake[2]: Entering directory `/home/tools/ravit/gdb6.7/bfd'
    /bin/sh ./libtool --tag=CC --mode=compile /usr/vac/bin/xlc -
    DHAVE_CONFIG_H -I. -I.././bfd -I. -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -
    DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I.././bfd -I.././bfd/../
    include -q64 -c -o rs6000-core.lo rs6000-core.c
    libtool: compile: /usr/vac/bin/xlc -DHAVE_CONFIG_H -I. -I.././bfd -I.
    -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -
    I.././bfd -I.././bfd/../include -q64 -c rs6000-core.c -o rs6000-core.o
    "rs6000-core.c", line 114.10: 1506-007 (S) "struct core_dump" is
    undefined.
    "rs6000-core.c", line 127.10: 1506-007 (S) "struct vm_info" is
    undefined.
    "rs6000-core.c", line 275.10: 1506-285 (S) The indirection operator
    cannot be applied to a pointer to an incomplete struct or union.
    "rs6000-core.c", line 275.10: 1506-285 (S) The indirection operator
    cannot be applied to a pointer to an incomplete struct or union.
    "rs6000-core.c", line 284.11: 1506-285 (S) The indirection operator
    cannot be applied to a pointer to an incomplete struct or union.
    "rs6000-core.c", line 284.11: 1506-285 (S) The indirection operator
    cannot be applied to a pointer to an incomplete struct or union.
    "rs6000-core.c", line 285.37: 1506-285 (S) The indirection operator
    cannot be applied to a pointer to an incomplete struct or union.
    "rs6000-core.c", line 285.37: 1506-285 (S) The indirection operator
    cannot be applied to a pointer to an incomplete struct or union.
    gmake[2]: *** [rs6000-core.lo] Error 1
    gmake[2]: Leaving directory `/home/tools/ravit/gdb6.7/bfd'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/home/tools/ravit/gdb6.7/bfd'



    Can some body help me out. Thanks in advance.


    --
    Regards,
    Ravi.T


  2. Re: building gdb6.7 on AIX 5.3 64bit machine

    On Oct 31, 2:01 pm, ravi wrote:
    > CC = xlc
    > CFLAGS = -q64
    > OBJECT_MODE = 64
    >
    > while building it gave me an error message in bfd.
    >
    > gmake[2]: Entering directory `/home/tools/ravit/gdb6.7/bfd'
    > /bin/sh ./libtool --tag=CC --mode=compile /usr/vac/bin/xlc -
    > DHAVE_CONFIG_H -I. -I.././bfd -I. -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -
    > DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I.././bfd -I.././bfd/../
    > include -q64 -c -o rs6000-core.lo rs6000-core.c
    > libtool: compile: /usr/vac/bin/xlc -DHAVE_CONFIG_H -I. -I.././bfd -I.
    > -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -
    > I.././bfd -I.././bfd/../include -q64 -c rs6000-core.c -o rs6000-core.o
    > "rs6000-core.c", line 114.10: 1506-007 (S) "struct core_dump" is
    > undefined.
    > "rs6000-core.c", line 127.10: 1506-007 (S) "struct vm_info" is
    > undefined.
    > "rs6000-core.c", line 275.10: 1506-285 (S) The indirection operator
    > cannot be applied to a pointer to an incomplete struct or union.
    > "rs6000-core.c", line 275.10: 1506-285 (S) The indirection operator
    > cannot be applied to a pointer to an incomplete struct or union.
    > "rs6000-core.c", line 284.11: 1506-285 (S) The indirection operator
    > cannot be applied to a pointer to an incomplete struct or union.
    > "rs6000-core.c", line 284.11: 1506-285 (S) The indirection operator
    > cannot be applied to a pointer to an incomplete struct or union.
    > "rs6000-core.c", line 285.37: 1506-285 (S) The indirection operator
    > cannot be applied to a pointer to an incomplete struct or union.
    > "rs6000-core.c", line 285.37: 1506-285 (S) The indirection operator
    > cannot be applied to a pointer to an incomplete struct or union.
    > gmake[2]: *** [rs6000-core.lo] Error 1
    > gmake[2]: Leaving directory `/home/tools/ravit/gdb6.7/bfd'
    > gmake[1]: *** [all-recursive] Error 1
    > gmake[1]: Leaving directory `/home/tools/ravit/gdb6.7/bfd'
    >
    > Can some body help me out. Thanks in advance.
    >
    > --
    > Regards,
    > Ravi.T


    I am able to compiler successfully gdb-6.7.1.
    And it works well for 64 bit executables generated by gcc

    But it is giving error for 64 bit executables generated by xlc.
    $>gdb
    GNU gdb 6.7.1
    Copyright (C) 2007 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 "powerpc-ibm-aix5.3.0.0".
    (gdb) file a.out
    Reading symbols from /home/tools/ravit/a.out...done.
    (gdb) b main
    Breakpoint 1 at 0x5b4
    (gdb) r
    Starting program: /home/tools/ravit/a.out
    Warning:
    Cannot insert breakpoint 1.
    Error accessing memory address 0x5b4: I/O error.

    What might be the reason and solution , if some body knows.

    How to make my gdb able to debug xlc generated executables?

    --
    Regards,
    Ravi.T




    But


+ Reply to Thread