sparc64-pld-linux-gcc == 32-bit sparc crosscompiler for sparc64 target. during building native 64-bit compiler I get: (...) sparc64-pld-linux-gcc -c -O2 -mcpu=ultrasparc -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include \ ../../gcc/config/host-linux.c ../../gcc/config/host-linux.c: In function 'linux_gt_pch_use_address': ../../gcc/config/host-linux.c:202: error: 'SSIZE_MAX' undeclared (first use in this function) ../../gcc/config/host-linux.c:202: error: (Each undeclared identifier is reported only once ../../gcc/config/host-linux.c:202: error: for each function it appears in.) make[1]: *** [host-linux.o] Error 1 quick fix for gcc-4.0-20050514: --- gcc-4.0-snap/gcc/config/host-linux.c 2005-02-17 22:41:33.000000000 +0000 +++ gcc-4.0-snap/gcc/config/host-linux.c 2005-05-21 20:49:06.000000000 +0000 @@ -24,6 +24,7 @@ #include <sys/mman.h> #include "hosthooks.h" #include "hosthooks-def.h" +#include <bits/posix1_lim.h>
-- Summary: failure during building 64-bit native compiler by crosscompiler. Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: sparc64 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21704