GCC 4.3.0 compilation error

Mark Mitchell mark@codesourcery.com
Tue Apr 8 23:46:00 GMT 2008


Jim Wilson wrote:
> Wirawan Purwanto wrote:
>> I tried to compile GCC 4.3.0 on a Red Hat Linux 9.0 box, it stopped at 
>> stage 1:
> 
> Compiling new gcc versions on old linux versions may not always work, 
> and is unlikely to be fixed.  You are probably on your own here if you 
> run into a non-trivial problem.

However, I think we should accept patches for such problems, if they're 
otherwise good.  (I'm not suggesting that you, Jim, are saying 
otherwise; I'm just expandng.)

In this case, for example, the fix might be to add something like:

#ifndef SSIZE_MAX
#define SSIZE_MAX LONG_MAX
#endif

to host-linux.c.  Or some autoconf check that determines whether 
SSIZE_MAX is available and defines it if it is not, based on the size of 
  size_t.  Or something.  (I don't know Linux well enough to how 
consistent these things are across targets.)

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc mailing list