This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gfortran 4.3.2 running out of memory on a file (with attached reproducer)


I've got a situation where gfortran is running out of memory, and I am wondering if there are any guidelines that would help me change my source file to get it compiling. I am working with code produced by source code generators, Babel http://www.llnl.gov/CASC/components/ and Forthon. I am attaching a reproducer.

$ sh compile
This one fails
gfortran -nostdinc --verbose -c bbb_Mod_Impl.F90
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /export/src/gcc-4.3.2/configure --prefix=/nfs/apps/gcc/4.3.2 --with-gmp=/nfs/apps/gmp/4.2.4 --with-mpfr=/nfs/apps/mpfr/2.3.2
Thread model: posix
gcc version 4.3.2 (GCC)
COLLECT_GCC_OPTIONS='-nostdinc' '-v' '-c' '-mtune=generic'
/nfs/apps/gcc/4.3.2/libexec/gcc/i686-pc-linux-gnu/4.3.2/cc1 -E -lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -nostdinc -v bbb_Mod_Impl.F90 -mtune=generic -o /tmp/ccVrSveN.f95
#include "..." search starts here:
#include <...> search starts here:
End of search list.
COLLECT_GCC_OPTIONS='-nostdinc' '-v' '-c' '-mtune=generic'
/nfs/apps/gcc/4.3.2/libexec/gcc/i686-pc-linux-gnu/4.3.2/f951 /tmp/ccVrSveN.f95 -ffree-form -quiet -dumpbase bbb_Mod_Impl.F90 -mtune=generic -auxbase bbb_Mod_Impl -version -fpreprocessed -o /tmp/ccECnGNt.s
GNU F95 (GCC) version 4.3.2 (i686-pc-linux-gnu)
compiled by GNU C version 4.3.2, GMP version 4.2.4, MPFR version 2.3.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072


f951: out of memory allocating 1352 bytes after a total of 2766893056 bytes

$ gfortran --version
GNU Fortran (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
$ uname -a
Linux machine.llnl.gov 2.6.9-78.0.5.ELsmp #1 SMP Wed Sep 24 05:41:12 EDT 2008 i686 i686 i386 GNU/Linux


Thanks,

Tom Epperly

Attachment: gfortran_memory.tar.gz
Description: GNU Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]