Building LAMMPS on IBM AIX Power 7

Hi All,

I am new to LAMMPS, but I was asked to build LAMMPS on our new IBM Power 7, AIX. I noticed that there are lot of changes since power5, and I got following error when I try to make makefile.power5.

> make power5
diff: illegal option – -
Usage: diff [-bitw] [[-C Lines|-D String|-e|-f|-n|-U Lines|-c|-u]|[-h]] File1 File2
diff [-bilrstw] [[-C Lines|-e|-f|-n|-U Lines|-c|-u]|[-h]] [-S File] Directory1 Directory2
diff: illegal option – -

“”, line 0: make: Cannot open
make: Fatal errors encountered – cannot continue.
make: The error code from the last command is 2.

Stop.

Seems that the current “diff” behaves differently form its previous version.

I am pretty sure there are other changes required for the makefile of Power7, but unexpected “diff” error has prevent me from investigating what change are needed. I think people have more experience on LAMMPS and may have solved this problem already.

Has anyone successfully built LAMMPS on this architecture ? Can you share the makefile with me?

Thanks a lot

Regards
Dominic

Dominic Chien, PhD
Senior Software Analyst
A*STAR Computational Resource Centre
1 Fusionopolis Way, #17-20 Connexis
Singapore 138632

Web: http://www.acrc.a-star.edu.sg
Email: chiensh@…2848…
DID: (65) 6419 1323
Fax: (65) 6463 8149

Hi All,
I am new to LAMMPS, but I was asked to build LAMMPS on our new IBM Power 7,
AIX. I noticed that there are lot of changes since power5, and I got
following error when I try to make makefile.power5.

make power5

diff: illegal option -- -
Usage: diff [-bitw] [[-C Lines|-D String|-e|-f|-n|-U Lines|-c|-u]|[-h]]
File1 File2
diff [-bilrstw] [[-C Lines|-e|-f|-n|-U Lines|-c|-u]|[-h]] [-S File]
Directory1 Directory2
diff: illegal option -- -
...
"", line 0: make: Cannot open
make: Fatal errors encountered -- cannot continue.
make: The error code from the last command is 2.

Stop.

Seems that the current "diff" behaves differently form its previous version.
I am pretty sure there are other changes required for the makefile of
Power7, but unexpected "diff" error has prevent me from investigating what
change are needed. I think people have more experience on LAMMPS and may
have solved this problem already.
Has anyone successfully built LAMMPS on this architecture ? Can you share
the makefile with me?

the problem is not so much with the makefile, but with its build
requirements and syntax.

the normal LAMMPS build procedure requires you to first install
and then use GNU make instead of the make program that AIX
provides. in a similar vein, the build scripts use a feature, that is
not present in the AIX diff program. so that installing the GNU
core utilities is recommended as well. please talk to a local system
administrator or unix expert about how to do this.

depending on what kind of potentials/styles you want to use when
running LAMMPS, you may run into some other problems cause
by the ignorance of IBM software engineers, but before you get to
this, you should sort out the essentials.

axel.

axel