gdb/4: Attempt to initialize Variable Array

egbert@efficient.com egbert@efficient.com
Wed Nov 1 18:08:00 GMT 2000


>Number:         4
>Category:       gdb
>Synopsis:       Attempt to initialize Variable Array
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 01 18:08:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Steve Egbert
>Release:        5.0-7
>Organization:
>Environment:
Freshly installed RedHat 7.0 on a i686 platform.
>Description:
Unable to compile GDB-5.0-7.
[root@egbert-linux gdb]# make
make[1]: Entering directory `/opt/development/7.0/gdb/libiberty'
make[2]: Entering directory `/opt/development/7.0/gdb/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/development/7.0/gdb/libiberty/testsuite'
make[1]: Leaving directory `/opt/development/7.0/gdb/libiberty'
make[1]: Entering directory `/opt/development/7.0/gdb/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/development/7.0/gdb/intl'
make[1]: Entering directory `/opt/development/7.0/gdb/bfd'
make  all-recursive
make[2]: Entering directory `/opt/development/7.0/gdb/bfd'
Making all in doc
make[3]: Entering directory `/opt/development/7.0/gdb/bfd/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/development/7.0/gdb/bfd/doc'
Making all in po
make[3]: Entering directory `/opt/development/7.0/gdb/bfd/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/development/7.0/gdb/bfd/po'
make[3]: Entering directory `/opt/development/7.0/gdb/bfd'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/opt/development/7.0/gdb/bfd'
make[2]: Leaving directory `/opt/development/7.0/gdb/bfd'
make[1]: Leaving directory `/opt/development/7.0/gdb/bfd'
make[1]: Entering directory `/opt/development/7.0/gdb/opcodes'
make  all-recursive
make[2]: Entering directory `/opt/development/7.0/gdb/opcodes'
Making all in po
make[3]: Entering directory `/opt/development/7.0/gdb/opcodes/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/development/7.0/gdb/opcodes/po'
make[3]: Entering directory `/opt/development/7.0/gdb/opcodes'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/opt/development/7.0/gdb/opcodes'
make[2]: Leaving directory `/opt/development/7.0/gdb/opcodes'
make[1]: Leaving directory `/opt/development/7.0/gdb/opcodes'
make[1]: Entering directory `/opt/development/7.0/gdb/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/development/7.0/gdb/etc'
make[1]: Entering directory `/opt/development/7.0/gdb/mmalloc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/development/7.0/gdb/mmalloc'
make[1]: Entering directory `/opt/development/7.0/gdb/readline'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/development/7.0/gdb/readline'
make[1]: Entering directory `/opt/development/7.0/gdb/sim'
make[2]: Entering directory `/opt/development/7.0/gdb/sim/common'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/opt/development/7.0/gdb/sim/common'
make[2]: Entering directory `/opt/development/7.0/gdb/sim/ppc'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/opt/development/7.0/gdb/sim/ppc'
make[1]: Leaving directory `/opt/development/7.0/gdb/sim'
make[1]: Entering directory `/opt/development/7.0/gdb/gdb'
gcc -c -g -O2    -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl -I./../intl  -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized  dink32-rom.c
dink32-rom.c:125: variable-size type declared outside of any function
dink32-rom.c:125: variable-sized object may not be initialized
dink32-rom.c:127: warning: excess elements in array initializer
dink32-rom.c:127: warning: (near initialization for `dink32_regnames')
dink32-rom.c:127: warning: excess elements in array initializer
dink32-rom.c:127: warning: (near initialization for `dink32_regnames')
dink32-rom.c:127: warning: excess elements in array initializer
dink32-rom.c:127: warning: (near initialization for `dink32_regnames')
dink32-rom.c:127: warning: excess elements in array initializer
dink32-rom.c:127: warning: (near initialization for `dink32_regnames')
dink32-rom.c:127: warning: excess elements in array initializer
dink32-rom.c:127: warning: (near initialization for `dink32_regnames')
dink32-rom.c:127: warning: excess elements in array initializer
dink32-rom.c:127: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:128: warning: excess elements in array initializer
dink32-rom.c:128: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:129: warning: excess elements in array initializer
dink32-rom.c:129: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:130: warning: excess elements in array initializer
dink32-rom.c:130: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:132: warning: excess elements in array initializer
dink32-rom.c:132: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:133: warning: excess elements in array initializer
dink32-rom.c:133: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:134: warning: excess elements in array initializer
dink32-rom.c:134: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:135: warning: excess elements in array initializer
dink32-rom.c:135: warning: (near initialization for `dink32_regnames')
dink32-rom.c:137: warning: excess elements in array initializer
dink32-rom.c:137: warning: (near initialization for `dink32_regnames')
dink32-rom.c:137: warning: excess elements in array initializer
dink32-rom.c:137: warning: (near initialization for `dink32_regnames')
dink32-rom.c:137: warning: excess elements in array initializer
dink32-rom.c:137: warning: (near initialization for `dink32_regnames')
dink32-rom.c:137: warning: excess elements in array initializer
dink32-rom.c:137: warning: (near initialization for `dink32_regnames')
dink32-rom.c:137: warning: excess elements in array initializer
dink32-rom.c:137: warning: (near initialization for `dink32_regnames')
dink32-rom.c:137: warning: excess elements in array initializer
dink32-rom.c:137: warning: (near initialization for `dink32_regnames')
dink32-rom.c:138: warning: excess elements in array initializer
dink32-rom.c:138: warning: (near initialization for `dink32_regnames')
make[1]: *** [dink32-rom.o] Error 1
make[1]: Leaving directory `/opt/development/7.0/gdb/gdb'
make: *** [all-gdb] Error 2
[root@egbert-linux gdb]# 

>How-To-Repeat:
tar xfz gdb-5.0-7 (from RedHat mirror site)
sh ./configure --host=i386-pc-linux-gnu --target=powerpc-motorola-eabi
make
>Fix:
Unknown.  Bad coding... May have to relocate array declaraction and its initialization values to an initialization function.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gdb-prs mailing list