[Mvapich-discuss] catastrophic error: cannot open source file "src/pm/hydra/include/hydra_config.h"

Long, James W jlong1s at illinois.edu
Tue Jun 15 13:15:37 EDT 2021


Trying to build mvapich2 version 2.3.6 with a fairly straight forward configure / make
sequence including "—with-pm=mpirun" results in hydra_config.h not being created
during the configure, which in turn leads to a compilation error during the make.


./configure CC=icc CXX=icpc F77=ifort FC=ifort --with-pm=mpirun --enable-f77 --enable-fc --enable-cxx --prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test

+ ./configure CC=icc CXX=icpc F77=ifort FC=ifort --with-pm=mpirun --enable-f77 --enable-fc --enable-cxx --prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test
Configuring MVAPICH2 version 2.3.6 with  'CC=icc' 'CXX=icpc' 'F77=ifort' 'FC=ifort' '--with-pm=mpirun' '--enable-f77' '--enable-fc' '--enable-cxx' '--prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test'
Running on system: Linux iforge082 3.10.0-1160.25.1.el7.x86_64 #1 SMP Tue Apr 13 18:55:45 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux

.
.
.

make

.
.
.

 CC       src/mpid/ch3/channels/mrail/src/rdma/lib_libmpi_la-ch3_abort.lo
src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c(17): catastrophic error: cannot open source file "src/pm/hydra/include/hydra_config.h"
 #include "src/pm/hydra/include/hydra_config.h"
                                               ^

compilation aborted for src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c (code 4)
make[2]: *** [src/mpid/ch3/channels/mrail/src/rdma/lib_libmpi_la-ch3_abort.lo] Error 1
make[2]: Leaving directory `/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test/build/mvapich2-2.3.6’



If the “—with-pm=mpirun” argument is omitted, the configure / make sequence completes without an error and I see the
following lines in the output of the configure command -

configure: creating ./config.status
config.status: creating tools/topo/hwloc/hwloc/Makefile
config.status: creating tools/topo/hwloc/hwloc/include/Makefile
config.status: creating tools/topo/hwloc/hwloc/src/Makefile
config.status: creating Makefile
config.status: creating tools/bootstrap/src/bsci_init.c
config.status: creating hydra-doxygen.cfg
config.status: creating include/hydra_config.h


If I then go back and rerun the original configure command, with the “—with-pm=mpirun” argument in place, and 
the hydra_config.h file pre-existing from the previous configure command,
the configure / make sequence proceeds without error.

I tried this with version 2.3.5 and got the same result.

Jim Long
NCSA


More information about the Mvapich-discuss mailing list