http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61099
Bug ID: 61099 Summary: Mac 2GB file limit error Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: barry.j.mcinnes at noaa dot gov ifort has this fixed in versions >11.0 gfortran 4.8 on linux compiles On Mac intel any gfortran version above 4.5 gives errors [mac27:~] bmcinnes% gfortran-mp-4.5 -c -m64 dave.f90 [mac27:~] bmcinnes% gfortran-mp-4.7 -c -m64 dave.f90 /var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccgHcRj2.s:71:zerofill size (2304000000.) <0! Ignored. /var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccgHcRj2.s:71:Rest of line ignored. 1st junk character valued 44 (,). [mac27:~] bmcinnes% gfortran-mp-4.8 -c -m64 dave.f90 /var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccSh0IQg.s:60:zerofill size (2304000000.) <0! Ignored. /var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccSh0IQg.s:60:Rest of line ignored. 1st junk character valued 44 (,). [mac27:~] bmcinnes% gfortran-mp-4.9 -c -m64 dave.f90 /var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccIqDBDn.s:60:zerofill size (2304000000.) <0! Ignored. /var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccIqDBDn.s:60:Rest of line ignored. 1st junk character valued 44 (,). [mac27:~] bmcinnes% cat dave.f90 ! Works for d = 23000, fails at 24000. ! Threshold appears to be the 2 Gb limit for total array size ! with 4-byte integers. integer, parameter :: d = 24000 integer x(d,d) print *, size (x) end [mac27:~/info] bmcinnes% gfortran-mp-4.9 -v Using built-in specs. COLLECT_GCC=gfortran-mp-4.9 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin13/4.9.0/lto-wrapper Target: x86_64-apple-darwin13 Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc49/gcc49/work/gcc-4.9-20140416/configure --prefix=/opt/local --build=x86_64-apple-darwin13 --enable-languages=c,c++,objc,obj-c++,fortran,java --libdir=/opt/local/lib/gcc49 --includedir=/opt/local/include/gcc49 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.9 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.9 --with-gxx-include-dir=/opt/local/include/gcc49/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts gcc49 4.9-20140416_0' Thread model: posix gcc version 4.9.0 20140416 (prerelease) (MacPorts gcc49 4.9-20140416_0) [mac27:~/info] bmcinnes%