Bug 8745

Summary: AIX 5.1 xlc compilation problems
Product: gdb Reporter: stuart_kemp
Component: buildAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WORKSFORME    
Severity: enhancement CC: brobecker, gdb-prs, pedro, tromey
Priority: P2    
Version: 6.1   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description stuart_kemp 2004-05-11 14:48:00 UTC
[Converted from Gnats 1640]

Compilation-errors:

xlc -c -DHAVE_CONFIG_H -g -I. -I./../include   ./regex.c -o regex.o
"./regex.c", line 29.3: 1506-224 (I) Incorrect pragma ignored.
"./config.h", line 368.9: 1506-213 (S) Macro name inline cannot be redefined.
"./config.h", line 368.9: 1506-358 (I) "inline" is defined on line 177 of ./../include/ansidecl.h.

xlc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I. -I./../include -I./../intl -I../intl -g -c bfd.c
"elf-bfd.h", line 281.3: 1506-009 (S) Bit-field cie must be of type signed int, unsigned int or int.
"elf-bfd.h", line 282.3: 1506-009 (S) Bit-field removed must be of type signed int, unsigned int or int.
"elf-bfd.h", line 283.3: 1506-009 (S) Bit-field make_relative must be of type signed int, unsigned int or int.
"elf-bfd.h", line 284.3: 1506-009 (S) Bit-field make_lsda_relative must be of type signed int, unsigned int or int.
"elf-bfd.h", line 285.3: 1506-009 (S) Bit-field per_encoding_relative must be of type signed int, unsigned int or int.


xlc -c -g    -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\""
-DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DTUI=1 gdb.c
"/usr/include/sys/time.h": 1506-213 (S) Macro name alloca cannot be redefined.
"/usr/include/sys/time.h": 1506-358 (I) "alloca" is defined on line 315 of ./../include/libiberty.h.

Release:
gdb-6.1

Environment:
AIX 5.1
xlC.cpp 5.0.2.0   C  F   C for AIX Preprocessor
./configure  --disable-nls
Comment 1 Tom Tromey 2011-11-18 15:56:55 UTC
Is this still a problem with the latest release?
Comment 2 stuart_kemp 2011-11-18 21:07:07 UTC
I have no idea ... easiest would be for you to try compiling the code ...
Surely someone must have tried this in the 7+ years since I reported this issue!!!

> From: sourceware-bugzilla@sourceware.org
> To: stuart_kemp@hotmail.com
> Subject: [Bug build/8745] AIX 5.1 xlc compilation problems
> Date: Fri, 18 Nov 2011 15:56:55 +0000
> 
> http://sourceware.org/bugzilla/show_bug.cgi?id=8745
> 
> Tom Tromey <tromey at redhat dot com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|ASSIGNED                    |WAITING
>                  CC|                            |tromey at redhat dot com
> 
> --- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-11-18 15:56:55 UTC ---
> Is this still a problem with the latest release?
> 
> -- 
> Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
Comment 3 Tom Tromey 2011-11-18 21:27:53 UTC
(In reply to comment #2)
> I have no idea ... easiest would be for you to try compiling the code ...
> Surely someone must have tried this in the 7+ years since I reported this
> issue!!!

Maybe, but I have no way to know.
I also don't have access to the compiler or system involved, so I can't
try it myself.
If you can't or don't want to bother with this, I can close it.
Comment 4 Joel Brobecker 2012-10-18 16:16:16 UTC
Looking at the files involved, it looks like it should be redispatched to gcc (libiberty) and bfd, no?

Stuart: There aren't many people with access to an AIX system, and even those who do may not have access to xlc. All I know is that I am able to build GDB on AIX when using GCC as the compiler. Can you try using GCC instead?
Comment 5 Pedro Alves 2012-10-18 16:32:38 UTC
> Looking at the files involved, it looks like it should be redispatched to gcc
> (libiberty) and bfd, no?

Yeah.  I think we should just close this.  Keeping it open all these years hasn't done any good, and it's not likely to do any good now either.
Comment 6 stuart_kemp 2012-10-18 20:19:41 UTC
This is from such a looooong time ago ... maybe it is fixed/addressed, maybe not.
Possibly it did compile with gcc at the time, but I think I was trying xlc because the gcc-built gdb binary just did not work.

Close it, and will resubmit if need be in the future.

-Stuart


> Stuart: There aren't many people with access to an AIX system, and even those
> 
> who do may not have access to xlc. All I know is that I am able to build GDB on
> 
> AIX when using GCC as the compiler. Can you try using GCC instead?
> 
> 
> 
> -- 
> 
> Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
> 
> ------- You are receiving this mail because: -------
> 
> You reported the bug.
Comment 7 Joel Brobecker 2012-10-18 20:28:20 UTC
To be reopened if issue still exists.
Comment 8 Jackie Rosen 2014-02-16 19:31:30 UTC Comment hidden (spam)