Need Help: upgrade to the latest LAMMPS, Compiling Errors

Hello all,
Today I upgrade LAMMPS by svn to the latest version “13 Feb 2014”, And When I compile it, there apears an error as follows:

(
I just type:
make purge && make package-update && make clean-all && make g++,

And my platform is as list:
OS: CentOS 6.5 x86_64
MPICH: 3.0.3
FFTW: 3.3.3
OpenKIM: 1.3.1
C: gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
C++: gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
Fortran: gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
)

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

It seems there is sth wrong with MPICH, But I reinstall it, thie error appears, too. Anyone who can help me?

Hello all,

[...]

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

It seems there is sth wrong with MPICH, But I reinstall it, thie error
appears, too. Anyone who can help me?

well, since this is not at all a LAMMPS issue you should have asked on
the MPICH mailing list for help. have you tried compiling a small MPI
test program? does it produce the same error? from the name of the
missing symbols i would guess that you need to link a library called
libaio.so or libaio.a, so try adding -laio after -lmpich in your
makefile.

axel.

Thanks for your reply, I notice what you said, So I compile LAMMPS on Debian and Ubuntu, too. For Debian 7 and Ubuntu 14.04, I do clean installation.
On Debian and Ubuntu, all needed is as listed:
OS: x86_64
MPICH: 3.0.3
(
./configure --with-device=ch3:nemesis --enable-sharedlibs=gcc --with-pm=hydra:gforker --enable-fast=O3 CFLAGS=’-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64’
make
make install
)
FFTW: 3.3.3
(
./configure
make
make install
)
VORO++: 0.4.6
(
make
make install
)
OpenKIM: 1.3.1
(
make
)

When I compile version “13 Feb 2014”, errors appear. But under the same conditions, I compile version “13 Jan 2014”, there is no error.
So I think whether is there some sources files’ changes causing this.

Thanks for your reply, I notice what you said, So I compile LAMMPS on Debian
and Ubuntu, too. For Debian 7 and Ubuntu 14.04, I do clean installation.
On Debian and Ubuntu, all needed is as listed:
OS: x86_64
MPICH: 3.0.3
(
./configure --with-device=ch3:nemesis --enable-sharedlibs=gcc
--with-pm=hydra:gforker --enable-fast=O3 CFLAGS='-D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64'
make
make install
)
FFTW: 3.3.3
(
./configure
make
make install
)
VORO++: 0.4.6
(
make
make install
)
OpenKIM: 1.3.1
(
make
)

When I compile version "13 Feb 2014", errors appear. But under the same
conditions, I compile version "13 Jan 2014", there is no error.
So I think whether is there some sources files' changes causing this.

since i am not a psychic and you don't provide the error messages, i
cannot comment on that. the error that you posted in your previous
e-mail has *definitely* nothing to do with LAMMPS. if there is some
other error, don't know. i compile the current version of LAMMPS
regularly for CentOS 6.x, Fedora 17/18/19/20, OpenSuSE 12.3/13.1 and
windows. both in 64-bit and 32-bit mode with OpenMPI and MPICH (where
available as precompiled package) and i don't see any problems.

axel.