Bug 40197 - [4.5 Regression] Spu fortran does not build
Summary: [4.5 Regression] Spu fortran does not build
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.5.0
: P4 normal
Target Milestone: 4.5.0
Assignee: Not yet assigned to anyone
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: build, patch
Depends on:
Blocks:
 
Reported: 2009-05-19 12:32 UTC by Michael Meissner
Modified: 2009-05-27 17:56 UTC (History)
1 user (show)

See Also:
Host: powerpc64-unknown-linux-gnu
Target: spu-elf
Build: powerpc64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2009-05-19 14:36:54


Attachments
Define PTRDIFF_TYPE, SIZE_TYPE. (338 bytes, patch)
2009-05-19 12:35 UTC, Michael Meissner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meissner 2009-05-19 12:32:40 UTC
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
Comment 1 Michael Meissner 2009-05-19 12:35:58 UTC
Created attachment 17892 [details]
Define PTRDIFF_TYPE, SIZE_TYPE.
Comment 2 Andrew Pinski 2009-05-19 14:36:54 UTC
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.
Comment 3 Hans-Peter Nilsson 2009-05-27 17:56:47 UTC
The referred patch was committed as r147712, so I presume this is now fixed.