Skip to content

OpenMPI may pick up an old version of mpi.mod from an existing installation for building #7253

@marmistrz

Description

@marmistrz

Background information

What version of Open MPI are you using? (e.g., v1.10.3, v2.1.0, git branch name and hash, etc.)

8b424c3

Please describe the system on which you are running

  • Operating system/version: Ubuntu 18.04
  • GCC/GFortran: 7.4.0

Details of the problem

OpenMPI was configured as follows:

./autogen.pl
./configure --enable-hwloc-pci --with-verbs --with-ucx

Then the compilation fails with:

  PPFC     cancel_f08.lo
  PPFC     cart_coords_f08.lo
  PPFC     cart_create_f08.lo
  PPFC     cartdim_get_f08.lo
cart_create_f08.F90:12:21:

    use :: mpi, only : PMPI_Cart_create
                     1
Error: Symbol ‘pmpi_cart_create’ referenced at (1) not found in module ‘mpi’
Makefile:4362: recipe for target 'cart_create_f08.lo' failed
make[2]: *** [cart_create_f08.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/marcin/build/openmpi/ompi/mpi/fortran/use-mpi-f08'
Makefile:3496: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/marcin/build/openmpi/ompi'
Makefile:1843: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

the configuration details printed by configure:

This happened because there was still a leftover from the previous installation, /usr/local/include/mpi.mod. It was picked up by make and used for the build of the new version. This is probably a bug, after purging this file the compilation succeeded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions