build/2218: bfd/elf.c requires C99 compiler
Mon Jan 15 06:38:00 GMT 2007

>Number:         2218
>Category:       build
>Synopsis:       bfd/elf.c requires C99 compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 15 06:38:01 GMT 2007
>Release:        gdb-6.6
% uname -a
SunOS hikaru 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V240
% cc -V
cc: Sun C 5.8 Patch 121015-03 2006/10/18
Building gdb-6.6 with the Sun C compiler generates the following error:
 cc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -mr -Qn -xstrconst -xO2 -xtarget=ultra2 -xarch=v8plusa -c elf.c -o elf.o
"elf.c", line 827: non-constant initializer: op "?"
"elf.c", line 830: non-constant initializer: op "?"
"elf.c", line 835: non-constant initializer: op "?"

C89 does not allow a non-constant initializer. Does gdb-6.6 now require a C99 compiler to build?



More information about the Gdb-prs mailing list