The MPI examples are not actively maintained at the moment, and see Error while instal G4mpi library for the limitations on MPI implementation this implies. Also, the G4mpi example was never designed to work with the the Geant4 GNUmake system, which isn’t MPI aware. It would be necessary to use CMake in this case, or modify Linux-g++.gmk
to be MPI aware.