On Tue, Apr 08, 2008 at 04:46:16PM -0700, Mark Mitchell wrote: > 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.)
Something like this might be worthwhile if enough patches could be put together to get a given older Linux distro to boot. But this might be only the first error for Red Hat 9. I don't have anything around of sufficient age to test on, though we still have RHEL 3 machines around here.