openmpi needs to be rebuilt with gfortran 4.9.1

Bug #1390198 reported by Adam Rall
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
MPIch
New
Undecided
Unassigned
hdf5 (Ubuntu)
Confirmed
Undecided
Unassigned
openmpi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Using:
Ubuntu 14.10
Packages (openmpi-bin, libopenmpi-dev, libopenmpi1.6, etc.) from source openmpi 1.6.5-8
gfortran 4.9.1.

When attempting to compile fortran programs--such as the attached test program--using the default openmpi-bin and libopenmpi-dev, the following error message shows up:

use mpi
       1
Fatal Error: Cannot read module file 'mpi.mod' opened at (1), because it was created by a different version of GNU Fortran.

The openmpi packages should be recompiled with the default gfortran 4.9.1.

Revision history for this message
Adam Rall (arall) wrote :
Revision history for this message
Adam Rall (arall) wrote :

Note that this also seems to affect mpich: see https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/1389291.

Revision history for this message
Pierre Navaro (navaro) wrote :

Same bug with hdf5

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hdf5 (Ubuntu):
status: New → Confirmed
Changed in openmpi (Ubuntu):
status: New → Confirmed
Revision history for this message
Pierre Navaro (navaro) wrote :

Release: 14.10

$ cat test_hdf5.F90
program write_hdf5_data

use hdf5

implicit none
integer(hid_t) :: file_id, error

!Initialize FORTRAN interface.
CALL h5open_f (error)
!Create a new file using default properties.
call H5Fcreate_f("test.h5", H5F_ACC_TRUNC_F, file_id, error);

!Terminate access to the file.
CALL h5fclose_f(file_id, error)

!Close FORTRAN interface.
CALL h5close_f(error)

end program

$ h5fc test_hdf5.F90
test_hdf5.F90:3.4:

use hdf5
    1
Fatal Error: Cannot read module file 'hdf5.mod' opened at (1), because it was created by a different version of GNU Fortran

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openmpi - 1.10.2-7ubuntu2

---------------
openmpi (1.10.2-7ubuntu2) xenial; urgency=medium

  * Debug build for powerpc (-O0 instead of -Og).

 -- Matthias Klose <email address hidden> Fri, 12 Feb 2016 11:46:13 +0100

Changed in openmpi (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.