The regular version runs and works well. However, when trying to install the mpi version from the manual, an error appears.
Output after the command
./build.sh -mpi true
is:
(base) anisus@MacBook-Pro cmake % ./build.sh -mpi true
Building rb-mpi
Generating version numbers in GitVersion.cpp
Running './regenerate.sh /Users/anisus/revbayes/projects/cmake/build-mpi
Making build directory '/Users/anisus/revbayes/projects/cmake/build-mpi'
Generating src/generated_include_dirs.cmake
Generating src/libs/CMakeLists.txt
Generating src/core/CMakeLists.txt
Generating src/revlanguage/CMakeLists.txt
Generating src/help2yml/CMakeLists.txt
Generating src/cmd/CMakeLists.txt
Note these environment variables:
Running 'cmake ../../../src -DRB_EXEC_NAME=rb-mpi -DMPI=ON ' in /Users/anisus/revbayes/projects/cmake/build-mpi
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS)
CMake Error at /opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/FindMPI.cmake:1830 (find_package_handle_standard_args)
CMakeLists.txt:62 (find_package)
-- Configuring incomplete, errors occurred!
See also "/Users/anisus/revbayes/projects/cmake/build-mpi/CMakeFiles/CMakeOutput.log".
See also "/Users/anisus/revbayes/projects/cmake/build-mpi/CMakeFiles/CMakeError.log".
________________________
I use MacBook with Apple M1 and MacOS Monterey 12.3
CMake version is 3.23
Has anyone faced a similar problem?
Googling gives out several similar problems with other programs, but the proposed solutions do not work for me.
Thank you in advance and I apologize if the question has an obvious solution.
mpicc for MPICH version 3.3.2
Yes, I installed open-mpi (4.1.4) with homebrew before trying to compile RevBayes
--
You received this message because you are subscribed to a topic in the Google Groups "revbayes-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/revbayes-users/lTm__L2jp34/unsubscribe.
To unsubscribe from this group and all its topics, send an email to revbayes-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/revbayes-users/579aa917-7589-fb06-b1be-76d8945abe52%40gmail.com.
So, mpich and open-mpi are two ALTERNATIVE mpi implementations.
You installed open-mpi 4.1.4, but mpicc is finding mpich 3.3.2,
which is different. Any idea how you got two different mpi
versions installed?
I suspect that cmake is finding mpi, but its attempts to USE it are failing.
-BenRI