Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination



On 2007-10-30, Steven G. Kargl <kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Did you compile 0pen MPI with gcc and gfortran 4.1.2 as bundled
with Ubuntu, and now you're trying to use gfortran 4.3.0?

We did not compile OpenMPI ourselves. We are using the Kubuntu
package:

bartv@kortrijk:~$ dpkg --list | grep openmpi
ii openmpi-bin 1.1-2.3 high performance message passing library
ii openmpi-common 1.1-2.3 high performance message passing library
ii openmpi-dev 1.1-2.3 high performance message passing library
ii openmpi-libs0 1.1-2.3 high performance message passing library

The gfortran version we're using is however *NOT* the one from the
Kubuntu distribution, but rather one we installed manually, namely:

bartv@kortrijk:~$ gfortran --version | head -1
GNU Fortran (GCC) 4.3.0 20071002 (experimental) [trunk revision 128946]

This suggests that you may be using a module compiled with
gfortran 4.1.2 with gfortran 4.3.0 (or vice-versa). What does

mpif90 --version show?

bartv@kortrijk:~$ mpif90 --version
GNU Fortran (GCC) 4.3.0 20071002 (experimental) [trunk revision 128946]
Copyright (C) 2007 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

what are the top 2 lines of /usr/lib/mpi.mod?

bartv@kortrijk:~$ head -2 /usr/lib/mpi.mod
GFORTRAN module created from mpi.f90 on Fri Jan 26 16:06:27 2007
If you edit this, you'll get what you deserve.


Could it be that this is causing our troubles?

Probably it would be better to use the (older) gfortran version from
the Kubuntu package in our distribution, right?

If that is the probable solution, I'll ask our sysadmins to downgrade
our gfortran to the version in the Kubuntu package and remove our manually
installed version.

Regards,
Bart

--
"Share what you know. Learn what you don't."
.



Relevant Pages

  • Re: gfortran on osX
    ... download the compiler from? ... What is the version of gfortran you're trying ... GNU Fortran comes with NO WARRANTY, to the extent permitted by law. ... Apple Computer, Inc. version cctools-576.obj~23, GNU assembler version ...
    (comp.lang.fortran)
  • Re: f77 GONE! HELP
    ... Somebody has deleted these instructions. ... GNU Fortran comes with NO WARRANTY, to the extent permitted by law. ... You should have an operational gfortran by now. ... gcc version 4.0.1 ...
    (comp.lang.fortran)
  • Re: gfortran 2007 annual report
    ... any luck with gfortran for anything other than the simplest programs. ... using GNU Fortran 4.2.0 (prerelease) since December 2005 and the new AROME/HARMONIE one in operational mode using GNU Fortran 4.3.0 - since half a year. ...
    (comp.lang.fortran)
  • Re: g77-3.4, ubuntu 7.10
    ... Even here on Feisty the gfortran packages are available: ... gfortran-4.1 - The GNU Fortran 95 compiler ... gfortran-4.1-doc - Documentation for the GNU Fortran compiler (gfortran) ...
    (Ubuntu)
  • Re: Profiling Fortran 77 using gprof on linux
    ... gfortran is available only from gcc 4.0 onwards. ... Fortran is preferable to an updated gnu fortran? ... I did not know that the OP was using old Sun Fortran. ...
    (comp.lang.fortran)