Error when compiling (ewald_const.h: No such file or directory)

Hello,
I am tried to compile 7 Feb 24 version with the following commands.

cmake -D BUILD_MPI=yes -D PKG_DIPOLE=yes -D PKG_BROWNIAN=yes -D PKG_EXTRA-FIX=yes  ../cmake/
cmake --build . -j12

and I get this error

[ 90%] Building CXX object CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/angle_dipole.cpp.o
[ 90%] Building CXX object CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/atom_vec_dipole.cpp.o
[ 90%] Building CXX object CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_cut_dipole_cut.cpp.o
[ 90%] Building CXX object CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_cut_dipole_long.cpp.o
[ 91%] Building CXX object CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_long_dipole_long.cpp.o
[ 91%] Building CXX object CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_sf_dipole_sf.cpp.o
[ 91%] Building CXX object CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/EXTRA-FIX/fix_addtorque.cpp.o
/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_cut_dipole_long.cpp:20:10: fatal error: ewald_const.h: No such file or directory
   20 | #include "ewald_const.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/lammps.dir/build.make:5200: CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_cut_dipole_long.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_long_dipole_long.cpp:24:10: fatal error: ewald_const.h: No such file or directory
   24 | #include "ewald_const.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/lammps.dir/build.make:5214: CMakeFiles/lammps.dir/Data/ias-2/hamzeh/lammps-7Feb2024/src/DIPOLE/pair_lj_long_dipole_long.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:172: CMakeFiles/lammps.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

I can successfully compile 2 Aug 23 version with the same commands.

Thanks

You can either add -D PKG_KSPACE=yes to your CMake command line or move the file ewald_const.h from the src/KSPACE folder to the src folder and compilation should complete.

Thank you, I don’t need the new version now, but it will be helpful in the future. I am just reporting it.

There is an Update to the 7 February 2024 release posted on GitHub now. Release Update 1 for Feature release 7 February 2024 · lammps/lammps · GitHub

1 Like