SciDB 15.7 build issue with MPI



I am having issues building SciDB 15.7 with both MPICH and OpenMPI. The MPI commands, e.g. mpic++, mpif77, etc are in my path, but it is looking for these commands in the wrong place:

./ setup

– Local MPICH2 path: /opt/scidb/15.7/3rdparty/mpich2
– ****************** BEGIN src/mpi/CMakeLists.txt ******************
– WARNING-- using locally installed MPICH2
– DEBUG-- MPI_INCLUDE=-I /opt/scidb/15.7/3rdparty/mpich2/include/mpich2
– DEBUG-- LOCAL_MPI_PATH=/opt/scidb/15.7/3rdparty/mpich2
– Debug: MPI_LIBRARIES is /opt/scidb/15.7/3rdparty/mpich2/lib/libmpichf90.a
– Debug: MPI_INCLUDE is -I /opt/scidb/15.7/3rdparty/mpich2/include/mpich2
– Debug: MPI_Fortran_COMPILER is /opt/scidb/15.7/3rdparty/mpich2/bin/mpif77

CMake Error: File /opt/scidb/15.7/3rdparty/mpich2/bin/mpic++ does not exist.
CMake Error at src/mpi/slaving/CMakeLists.txt:42 (configure_file):
configure_file Problem configuring file

But it then finds the correct installation path for MPI:

– ****************** END src/mpi/CMakeLists.txt ******************
– *****BEGIN dense_linear_algebra/CMakeLists.txt ***********************
– Found MPI_C: /usr/lib64/openmpi/lib/
– Found MPI_CXX: /usr/lib64/openmpi/lib/;/usr/lib64/openmpi/lib/
– Found MPI_Fortran: /usr/lib64/openmpi/lib/;/usr/lib64/openmpi/lib/;/usr/lib64/openmpi/lib/
– MPI_Fortran_COMPILER=/usr/lib64/openmpi/bin/mpif77
– Debug: BLAS_LIBRARIES is /usr/lib64/
– Debug: LAPACK_LIBRARIES is /usr/lib64/;/usr/lib64/
– Debug: MPI_LIBRARIES is /usr/lib64/openmpi/lib/;/usr/lib64/openmpi/lib/
[ … ] ERROR: Command setup failed: Abnormal return code: 1 on command [‘cmake’, ‘-DCMAKE_BUILD_TYPE=Debug’, ‘-DCMAKE_INSTALL_PREFIX=/opt/scidb-15.7’, ‘/root/scidb-’]

In the installation instructions, I cannot find anything on how to tell cmake where to find MPI. Any help will be greatly appreciated.

Thanks in advance,


I have managed to resolve this by installing MPICH in /opt/scidb/15.7/3rdparty/mpich2 as this path seems to be hard coded in somewhere buried in some cmake file.