This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.3.0 compilation error
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Jim Wilson <wilson at tuliptree dot org>, Wirawan Purwanto <wirawan0 at gmail dot com>, gcc at gcc dot gnu dot org, Wirawan Purwanto <wxpurw at wm dot edu>
- Date: Tue, 8 Apr 2008 17:10:58 -0700
- Subject: Re: GCC 4.3.0 compilation error
- References: <44bfab7e0803291952t1bca5417la0b8fca2b27504@mail.gmail.com> <47F112C2.2060302@tuliptree.org> <47FC03C8.5050905@codesourcery.com>
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.