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: Mark Mitchell <mark at codesourcery dot com>
- To: Jim Wilson <wilson at tuliptree dot org>
- Cc: Wirawan Purwanto <wirawan0 at gmail dot com>, gcc at gcc dot gnu dot org, Wirawan Purwanto <wxpurw at wm dot edu>
- Date: Tue, 08 Apr 2008 16:46:16 -0700
- Subject: Re: GCC 4.3.0 compilation error
- References: <44bfab7e0803291952t1bca5417la0b8fca2b27504@mail.gmail.com> <47F112C2.2060302@tuliptree.org>
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