public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compilation problems with gcc 3.3 on mips-sgi-irix6.5
@ 2003-05-18  0:05 Alexander W. Janssen
  0 siblings, 0 replies; only message in thread
From: Alexander W. Janssen @ 2003-05-18  0:05 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 1798 bytes --]

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.


[-- Attachment #2: Type: application/pgp-signature, Size: 248 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-18  0:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-18  0:05 Compilation problems with gcc 3.3 on mips-sgi-irix6.5 Alexander W. Janssen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).