PGI openmpi 4.0.0 libmpi_usempif08.so undefined reference

Hi all,

When I used PGI to compile the new openmpi 4.0.0, the build finished, but the resulted libmpi_usempif08.so has undefined reference.

mpif77 (pgf77) and mpif90 (pgf90) failed to compile fortran program.

[tetuser@saturn2-cw7 examples]$ mpif77 -o hello_mpifh hello_mpifh.f
/opt/scyld/openmpi/4.0.0/pgi/lib/libmpi_usempif08.so: undefined reference to ompi_mpifh_bindings_' [tetuser@saturn2-cw7 examples]$ mpif90 -o hello_mpifh hello_mpifh.f /opt/scyld/openmpi/4.0.0/pgi/lib/libmpi_usempif08.so: undefined reference to ompi_mpifh_bindings_’
[tetuser@saturn2-cw7 examples]$

Though mpicc (pgcc) works fine.

I do not have this problem with openmpi 3.1.3, etc.

I have tried older pgi version and the new 18.10 version, I have the same problem.

Any idea?

Thank you!

Limin