Problem in Building Lammps

Hi!

I am trying to build lammps in single node.

So after installing the package I typed " make serial"

But getting following error

make[1]: Entering directory /home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial' Makefile.package.settings:6: ../../lib/qmmm/Makefile.lammps: No such file or directory Makefile.package.settings:8: ../../lib/h5md/Makefile.lammps: No such file or directory Makefile.package.settings:10: ../../lib/colvars/Makefile.lammps: No such file or directory Makefile.package.settings:11: ../../lib/awpmd/Makefile.lammps: No such file or directory Makefile.package.settings:14: ../../lib/reax/Makefile.lammps: No such file or directory Makefile.package.settings:16: ../../lib/poems/Makefile.lammps: No such file or directory Makefile.package.settings:17: ../../lib/meam/Makefile.lammps: No such file or directory make[1]: *** No rule to make target …/…/lib/meam/Makefile.lammps’. Stop.
make[1]: Leaving directory `/home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial’
make: *** [serial] Error 2

any suggestion regarding this error!!

Can you check that those Makefile.lammps files do in fact

exist? They are part of the distribution.

Steve

Hi!
I am trying to build lammps in single node.
So after installing the package I typed " make serial"
But getting following error

make[1]: Entering directory
`/home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial'
Makefile.package.settings:6: ../../lib/qmmm/Makefile.lammps: No such file or
directory
Makefile.package.settings:8: ../../lib/h5md/Makefile.lammps: No such file or
directory
Makefile.package.settings:10: ../../lib/colvars/Makefile.lammps: No such
file or directory
Makefile.package.settings:11: ../../lib/awpmd/Makefile.lammps: No such file
or directory
Makefile.package.settings:14: ../../lib/reax/Makefile.lammps: No such file
or directory
Makefile.package.settings:16: ../../lib/poems/Makefile.lammps: No such file
or directory
Makefile.package.settings:17: ../../lib/meam/Makefile.lammps: No such file
or directory
make[1]: *** No rule to make target `../../lib/meam/Makefile.lammps'. Stop.
make[1]: Leaving directory
`/home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial'
make: *** [serial] Error 2

any suggestion regarding this error!!

this means that you installed several packages which depend on
libraries that are either bundled with LAMMPS or have to be
configured. this all has to happen in the subdirectories of the lib
directory.

please note, that not all packages are compatible with compiling in serial mode.

it is usually a better idea to first do:
make no-all
and try to compile a minimal version and then add the packages that
you specifically need for your work.

axel.

well. I uninstalled the packages.
Then trying to build lammps by typing “make serial”.
But I get the error
make[1]: Entering directory /home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial' g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../pair_tri_lj.cpp > pair_tri_lj.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../pair_resquared.cpp > pair_resquared.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../pair_line_lj.cpp > pair_line_lj.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../pair_gayberne.cpp > pair_gayberne.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../modify.cpp > modify.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../lammps.cpp > lammps.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../force.cpp > force.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_nvt_asphere.cpp > fix_nvt_asphere.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_nve_tri.cpp > fix_nve_tri.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_nve_line.cpp > fix_nve_line.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_nve_asphere_noforce.cpp > fix_nve_asphere_noforce.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_nve_asphere.cpp > fix_nve_asphere.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_npt_asphere.cpp > fix_npt_asphere.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_nph_asphere.cpp > fix_nph_asphere.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../fix_nh_asphere.cpp > fix_nh_asphere.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../compute_temp_asphere.cpp > compute_temp_asphere.d g++ -g -O3 -DLAMMPS_GZIP -I../STUBS -M ../compute_erotate_asphere.cpp > compute_erotate_asphere.d make[1]: Leaving directory /home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial’
make[1]: Entering directory /home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial' make[1]: *** No rule to make target …/kokkos_type.h’, needed by angle.o'. Stop. make[1]: Leaving directory /home/kiit/software/LAMMPS-gcc/lammps-7Dec15/src/Obj_serial
make: *** [serial] Error 2

Do a make clean-all. Then build from scratch

with your desired packages installed.

That should not include KOKKOS (the error in your message).

Steve

Thanks. It’s working now.