Unix Technical Forum

building gdb6.7 on AIX 5.3 64bit machine

This is a discussion on building gdb6.7 on AIX 5.3 64bit machine within the AIX Operating System forums, part of the Unix Operating Systems category; --> CC = xlc CFLAGS = -q64 OBJECT_MODE = 64 while building it gave me an error message in bfd. ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:53 AM
ravi
 
Posts: n/a
Default 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:53 AM
ravi
 
Posts: n/a
Default Re: building gdb6.7 on AIX 5.3 64bit machine

On Oct 31, 2:01 pm, ravi <gototh...@gmail.com> 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com