Unable to compile latest version of LAMMPS (24th April 2013)

Dear LAMMPS-Users,

I am having trouble compiling the latest version of LAMMPS on a cluster with RHEL 4. I issued the commands:

make yes-standard yes-USER-MISC yes-USER-PHONON no-GPU no-REAX no-POEMS no-MEAM no-KIM no-VORONOI

make linux

and it immediately throws an error:

make[1]: *** No rule to make target angle_charmm.o', needed by …/lmp_linux’. Stop.

I have attached the makefile that I used. I have tested this makefile to be functioning before as I always compile with this makefile. Additionally, I tried installing the latest version of LAMMPS on my local PC using Cygwin and similarly it threw an error:

make[1]: *** No rule to make target irregular.o', needed by …/lmp_cygwin’. Stop.

It would be greatly appreciated if someone can advise on whether some changes have been made, such that my method of compiling needs to changed as well?

Best Regards,
Jingjie Yeo
Ph.D. Student
School of Mechanical and Aerospace Engineering
Nanyang Technological University, Singapore

Makefile.linux (2.37 KB)

Dear LAMMPS-Users,

I am having trouble compiling the latest version of LAMMPS on a cluster with
RHEL 4. I issued the commands:

make yes-standard yes-USER-MISC yes-USER-PHONON no-GPU no-REAX no-POEMS
no-MEAM no-KIM no-VORONOI

make linux

and it immediately throws an error:

make[1]: *** No rule to make target `angle_charmm.o', needed by
`../lmp_linux'. Stop.

I have attached the makefile that I used. I have tested this makefile to be
functioning before as I always compile with this makefile. Additionally, I
tried installing the latest version of LAMMPS on my local PC using Cygwin
and similarly it threw an error:

make[1]: *** No rule to make target `irregular.o', needed by
`../lmp_cygwin'. Stop.

It would be greatly appreciated if someone can advise on whether some
changes have been made, such that my method of compiling needs to changed as
well?

please always read http://lammps.sandia.gov/bug.html

indeed, custom makefiles need to be changed to include two "vpath"
statements as of 2 April 2013 version

axel

Dear Dr. Axel,

Thank you so much for pointing it out, everything works fine now.

Best Regards,
Jingjie Yeo
Ph.D. Student
School of Mechanical and Aerospace Engineering
Nanyang Technological University, Singapore