I installed the stable version of LAMMPS on Ubunutu Linux virtual box. It was installed perfectly but when i tried to “make mpi” for parralel runs. It generated this error:
Makefile:109: recipe for target ‘lammps.o’ failed
make[1]: *** [lammps.o] Error 4
make[1]: Leaving directory ‘/home/sahardiaa/Desktop/Software/lammps-29Sep2021/src/Obj_mpi’
Makefile:373: recipe for target ‘mpi’ failed
make: *** [mpi] Error 2
There is not enough information here to make any suggestion. You are not showing the actual error.
make[1]: Entering directory ‘/home/sahardiaa/Desktop/Software/lammps-29Sep2021/src/Obj_mpi’
mpicxx -g -O3 -std=c++11 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/lammps.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Makefile:109: recipe for target ‘lammps.o’ failed
make[1]: *** [lammps.o] Error 4
make[1]: Leaving directory ‘/home/sahardiaa/Desktop/Software/lammps-29Sep2021/src/Obj_mpi’
Makefile:373: recipe for target ‘mpi’ failed
this is all what it is showing
An internal compiler error is by definition a bug in the compiler, not a bug in LAMMPS.
You should check if there is an updated version available and update the compiler if possible.
Or whether there is a different C++ compiler (version) available that you can use.