Need Help: upgrade to the latest LAMMPS, Compiling Errors

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.

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.

yes, but those errors are not LAMMPS errors, but MPICH errors. LAMMPS
apparently compiles fine and the undefined references are originating
in the MPICH library not anywhere in LAMMPS.

But if I compile the old one, there is no error.

well, did you make the change to the makefile that i suggested
previously? that *should* solved the problem.
.
[...]

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.

there are constantly new features added to LAMMPS, it could well be
that one of those features triggers a dependency in the MPICH library
that wasn't there before.

I will try to compile, too. My machine is different from yours, so I try to
solve it by myself, first. Thanks again.

this is irrelevant. the components you are using are not OS version or
Linux flavor dependent.

axel.