Open MP directives in conjunction with LAM MPI calls is causing compiler to fail:
(bash) niwot.pts/3% export LAMHF77=/z/stoch/home/rlnaff/usr/local/bin/gfortran4.3.2 (bash) niwot.pts/3% mpif77 -g -fopenmp -c reorder_parent.f90 reorder_parent.f90:470: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (bash) niwot.pts/3% mpif77 -v -save-temps -g -fopenmp -c reorder_parent.f90 Using built-in specs. Target: i686-pc-linux-gnu Configured with: /z/stoch/home/rlnaff/gcc_source/gcc-4.3.2//configure --prefix=/z/stoch/home/rlnaff/usr/local --program-suffix=4.3.2 -with-local-prefix=/z/stoch/home/rlnaff/usr/local --with-gnu-as --with-gnu-ld --enable-threads --with-cpu-32=cpu --enable-languages=all --with-gmp --with-mpfr Thread model: posix gcc version 4.3.2 (GCC) COLLECT_GCC_OPTIONS='-I/usr/local/include' '-pthread' '-v' '-save-temps' '-g' '-fopenmp' '-c' '-mtune=generic' '-pthread' /a/stoch/home/rlnaff/usr/local/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.2/f951 reorder_parent.f90 -quiet -dumpbase reorder_parent.f90 -mtune=generic -auxbase reorder_parent -g -version -fopenmp -I/usr/local/include -fintrinsic-modules-path /a/stoch/home/rlnaff/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/finclude -o reorder_parent.s GNU F95 (GCC) version 4.3.2 (i686-pc-linux-gnu) compiled by GNU C version 4.3.2, GMP version 4.2.2, MPFR version 2.3.1. GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129368 reorder_parent.f90:470: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: compiler Segmentation fault Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rlnaff at usgs dot gov GCC build triplet: see description below GCC host triplet: see description below GCC target triplet: see description below http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37644