Build OpenFoam with MPICH
Hello,
I have been trying to install OpenFoam from source by using MPICH instead of OpenMPI, I am using a Linux machine and I already installed MPICH from "sudo apt-get install mpich" but when I try to build OpenFoam using the command Allwmake I got an error like this:
Compile OpenFOAM libraries
ln: OpenFOAM/lnInclude
ln: OSspecific/POSIX/lnInclude
wmake libo (POSIX)
wmake dummy (mpi=SYSTEMOPENMPI)
wmake dummy
wmake mpi (mpi=SYSTEMOPENMPI:sys-openmpi)
wmake mpi
gcc: error: unrecognized command-line option '--showme:compile'
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds -Wno-deprecated-declarations -fpermissive -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude -fPIC -c PstreamGlobals.C -o /opt/openfoam/OpenFOAM-v2206/build/linux64GccDPInt32OptSYSTEMOPENMPI/src/Pstream/mpi/PstreamGlobals.o
In file included from PstreamGlobals.C:28:
PstreamGlobals.H:42:10: fatal error: mpi.h: No such file or directory
42 | #include <mpi.h>
| ^~~~~~~
compilation terminated.
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/rules/General/transform:35: /opt/openfoam/OpenFOAM-v2206/build/linux64GccDPInt32OptSYSTEMOPENMPI/src/Pstream/mpi/PstreamGlobals.o] Error 1
I do not know what I am doing wrong, I want to know if I need to change something inside the configuration files.
Thank you
Edited by Sebastian Gutierrez