Jean-Marc Ottorini wrote:
While trying to build the gpc-20000719 / gcc-2.95.2 suite on top of Irix 6.5 (), the following command is issued by gmake:
gcc -c -DIN_GCC -DGPC -g -O2 \ -I. -I.. \ -I../../../gcc-2.95.2/gcc/p \ -I../../../gcc-2.95.2/gcc/p/.. \ -I../../../gcc-2.95.2/gcc/p/../config \ -I../../../gcc-2.95.2/gcc/p/../../include \ ../../../gcc-2.95.2/gcc/p/../stor-layout.c
This command results in a compiling error:
../../../gcc-2.95.2/gcc/p/../stor-layout.c:64: initializer element is not constant
Indeed, line 64 of stor-layout.c reads:
int set_words_big_endian = BYTES_BIG_ENDIAN; /* @@@ Needn't be a constant! */
Where is the truth ?
I've talked with Peter about this problem, and it turned out that this variable is not really used currently. Until he'll fix the problem, you can just replace BYTES_BIG_ENDIAN by 0.
Frank