Spu.h needs to define PTRDIFF_TYPE, since fortran now uses this in compiling trans-types. SIZE_TYPE probably should also be defined. gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -I. -Ifortran -I/home/meissner/fsf-src/trunk/gcc -I/home/meissner/fsf-src/trunk/gcc/fortran -I/home/meissner/fsf-src/trunk/gcc/../include -I/home/meissner/fsf-src/trunk/gcc/../libcpp/include -I/home/meissner/fsf-install-ppc64/gmp-4.2.2/include -I/home/meissner/fsf-install-ppc64/mpfr-2.4.0/include -I/home/meissner/fsf-src/trunk/gcc/../libdecnumber -I/home/meissner/fsf-src/trunk/gcc/../libdecnumber/dpd -I../libdecnumber /home/meissner/fsf-src/trunk/gcc/fortran/trans-types.c -o fortran/trans-types.o In file included from /home/meissner/fsf-src/trunk/gcc/fortran/trans-types.c:335: /home/meissner/fsf-src/trunk/gcc/fortran/iso-c-binding.def: In function ‘init_c_interop_kinds’: /home/meissner/fsf-src/trunk/gcc/fortran/iso-c-binding.def:58: error: ‘PTRDIFF_TYPE’ undeclared (first use in this function) /home/meissner/fsf-src/trunk/gcc/fortran/iso-c-binding.def:58: error: (Each undeclared identifier is reported only once /home/meissner/fsf-src/trunk/gcc/fortran/iso-c-binding.def:58: error: for each function it appears in.) make[2]: *** [fortran/trans-types.o] Error 1
Created attachment 17892 [details] Define PTRDIFF_TYPE, SIZE_TYPE.
Actually http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01181.html is a better patch since PTRDIFF_TYPE and SIZE_TYPE are documented to have defaults.
The referred patch was committed as r147712, so I presume this is now fixed.