I am sorry that I make you not understand.
In one word, I upgrade LAMMPS to the latest version, then I compile, Then errors appear.
But if I compile the old one, there is no error.
These errors are as listed:
write_restart.o xdr_compat.o -lreax -lpoems -lmeam -lmpich -lmpl -lpthread -lfftw3 -ljpeg -lvoro++ -lgfortran -lgfortran -o …/lmp_g++
/usr/local/lib/libmpich.a(ad_iwrite.o): In function ADIOI_GEN_aio_wait_fn': ad_iwrite.c:(.text+0x12a): undefined reference to
aio_suspend64’
ad_iwrite.c:(.text+0x1d8): undefined reference to aio_error64' ad_iwrite.c:(.text+0x1f1): undefined reference to
aio_return64’
/usr/local/lib/libmpich.a(ad_iwrite.o): In function ADIOI_GEN_aio_poll_fn': ad_iwrite.c:(.text+0x2de): undefined reference to
aio_error64’
ad_iwrite.c:(.text+0x30d): undefined reference to aio_return64' /usr/local/lib/libmpich.a(ad_iwrite.o): In function
ADIOI_GEN_aio’:
ad_iwrite.c:(.text+0x494): undefined reference to aio_write64' ad_iwrite.c:(.text+0x501): undefined reference to
aio_read64’
collect2: ld returned 1 exit status
make[1]: *** […/lmp_g++] Error 1
make[1]: Leaving directory `/home/qi/lammps/src/Obj_g++’
make: *** [g++] Error 2
In fact, this message has nothing to do with LAMMPS, But I do not understand that under the same condition, I compile the old one, there is no error, then new one, errors come.
I will try to compile, too. My machine is different from yours, so I try to solve it by myself, first. Thanks again.