Compilation problems with gcc 3.3 on mips-sgi-irix6.5

Alexander W. Janssen yalla@hackers-r-us.org
Sun May 18 00:05:00 GMT 2003


Hello all,

my first post to this list and starting with a weird problem. I try to build
3.3 on the mips-sgi-irix6.5 target which is a indigo2/power zx (r8k) running
vanilla irix 6.5.

I use the native irix ld and as, as suggested. I untarred the sources, created
a build directory and ran configure with "--prefix=/usr/local/gnu \
--with-languages=c,c++". I use GNU make 3.76.1 and gcc 3.0.4 for building 3.3.
I started the build process with a plain "gmake bootstrap".

However, it aborted with an error:

stage1/xgcc -Bstage1/ -B/usr/local/gnu/mips-sgi-irix6.5/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config -I../../gcc-3.3/gcc/../include ../../gcc-3.3/gcc/cpplex.c -o cpplex.o
../../gcc-3.3/gcc/cpplex.c:2020:4: #error BUFF_SIZE_UPPER_BOUND must be at least as large as MIN_BUFF_SIZE!
gmake[2]: *** [cpplex.o] Error 1

Looking into $src/gcc/cpplex.c in line 2020 i found:

#define MIN_BUFF_SIZE 8000
#define BUFF_SIZE_UPPER_BOUND(MIN_SIZE) (MIN_BUFF_SIZE + (MIN_SIZE) * 3 / 2)

and

#if MIN_BUFF_SIZE > BUFF_SIZE_UPPER_BOUND (0)
  #error BUFF_SIZE_UPPER_BOUND must be at least as large as MIN_BUFF_SIZE!
#endif

Digging out my limited c-knowledge, the macro BUFF_SIZE_UPPER_BOUND(0) expands
to 8000+0*3/2 == 8000. So the check MIN_BUFF_SIZE > BUFF_SIZE_UPPER_BOUND (0)
happens to be 8000 > 8000 which should be false and not trigger the error
condition. But it does!

So i think that the xgcc build for the first stage has a problem.

Does anyone know what the problem could be?

I can provide a full dump of everything, if someone wants to dig out the
problem.

Thanks for any hint in advance,
Cheers, Alex.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20030518/16ba5605/attachment.sig>


More information about the Gcc-help mailing list