Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Wed, 31 Oct 2007 15:37:36 +0000 (UTC)
In article <FZZVi.183090$2D1.8873131@xxxxxxxxxxxxxxxxxxxxx>,
Bart Vandewoestyne <MyFirstName.MyLastName@xxxxxxxxxx> writes:
On 2007-10-30, Steven G. Kargl <kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
[...]
Yes. This could be the problem. Gfortran 4.3.0 20071002 will
write an MD5 value for the module in the first two lines, and
your mpi.mod is missing the MD5 signature.
OK. We have downgraded our gfortran compiler. We are now using
the packages of our Kubuntu installation (7.10 - Gutsy Gibbon) for
both OpenMPI and gfortran:
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
(snip)
I get undefined reference errors when I simply compile with mpif90 without
any additional flags:
bartv@kortrijk:~/mpi_test$ mpif90 test_mpi.f90
/tmp/ccNMqzGg.o: In function `MAIN__':
test_mpi.f90:(.text+0x9c): undefined reference to `mpi_init_'
test_mpi.f90:(.text+0x11e): undefined reference to `mpi_comm_rank_'
test_mpi.f90:(.text+0x210): undefined reference to `mpi_finalize_'
collect2: ld returned 1 exit status
So I therefore add the -fsecond-underscore flag and things seem to compile
fine:
If you need to add this option, then you're going to need to find
out what compiler options were used when the Open MPI package was
created. In particularly, this suggests that the -ff2c option
was used. This option is typically undesirable and only needed
when dealing with g77 compiled libraries that can't be rebuilt
with gfortran. It is also possible that some odd non-default
options were set in CFLAGS, which may affect the ABI.
--
Steve
http://troutmask.apl.washington.edu/~kargl/
.
- Follow-Ups:
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Bart Vandewoestyne
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- References:
- OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Koen Poppe
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Steven G. Kargl
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Bart Vandewoestyne
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Steven G. Kargl
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Bart Vandewoestyne
- OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- Prev by Date: Re: opening char variable data file
- Next by Date: Re: memory leak after calling a fortran function
- Previous by thread: Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- Next by thread: Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- Index(es):
Relevant Pages
|
|