make fails when building GCC

Zack Weinberg zack@wolery.cumb.org
Wed Feb 16 21:07:00 GMT 2000


On Thu, Feb 17, 2000 at 03:26:54PM +1100, Allan Blair wrote:
> I don't know if this is a problem with "make" or with the "gcc" package, but
> when I try to build GCC, "make" always aborts on the same file with this
> error:
> .
> .
> .
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L4949/C35(#39):    1: Array subscript
> out of range.
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L4981/C25(#39):    1: Array subscript
> out of range.
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L5206/C6(#39):     1: Array subscript
> out of range.
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L5208/C23(#39):    1: Array subscript
> out of range.
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L5332/C31(#39):    1: Array subscript
> out of range.
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L5390/C9(#39):     1: Array subscript
> out of range.
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L5391/C19(#39):    1: Array subscript
> out of range.
> w "/tmp/gcc-2.95.2/gcc/genattrtab.c",L5462/C18(#39):    1: Array subscript
> out of range.
> 1 user error   192 warnings   
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Somewhere in the output from the compiler there was a message other
than "array subscript out of range".  We need to see that error
message.  It was probably close to the beginning.

Are you perchance using an old, pre-C-standard compiler to bootstrap?
Odds are this is something legal in standard C which wasn't in K+R C.

zw


More information about the Gcc-bugs mailing list