This is the mail archive of the
mailing list for the GCC project.
RFC: cross-compile failure in gcc/config/host-linux.c
- From: "Peter S. Mazinger" <ps dot m at gmx dot net>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 26 Jan 2007 11:27:01 +0100 (CET)
- Subject: RFC: cross-compile failure in gcc/config/host-linux.c
I compiled gcc on i486-pc-linux-gnu for i386-unknown-linux-uclibc and
with the latter I cross-compiled gcc to be run on the target.
For some reason __USE_POSIX is not defined and bits/posix1_lim.h does not
get included by limits.h, not defining SSIZE_MAX used in host-linux.c.
What is the correct approach?
One possibility would be to add
#ifndef SSIZE_MAX /* as done in posix1_lim.h */
#define SSIZE_MAX LONG_MAX
An other option would be to use LONG_MAX instead of SSIZE_MAX.
The uclibc support is a backport from trunk.
Tested 3.4.6/4.1.1, but trunk is also affected probably.
Please CC to me, not on list.
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2