LATTE installation problem

Hi,

I have been trying to compile LAMMPS with LATTE on one of the university’s clusters. I have become stuck in last step, and would like to ask whether this error has also occurred to anybody else, and if so, how they got around to complete the installation.

After installing PROGRESS, BML, METIS and LATTE, the tests for LATTE all yield correct results. However, when I try to compile LAMMPS following the instructions, the installation fails when trying to link with LATTE. This is an example of the message I get for multiple different functions:

sp2progress.f90:(.text+0xbd): undefined reference to `_gfortran_compare_string’

It is unclear to me why this happens, since LATTE has already been compiled at this stage.

Notes:
1) The three required symbolic links have been created
2) I am using “make g++_openmpi” as my compiling option.
3) The cluster runs on Intel Westmere processors.

Thank you

Fernando

Hi,

I have been trying to compile LAMMPS with LATTE on one of the university’s
clusters. I have become stuck in last step, and would like to ask whether
this error has also occurred to anybody else, and if so, how they got
around to complete the installation.

After installing PROGRESS, BML, METIS and LATTE, the tests for LATTE all
yield correct results. However, when I try to compile LAMMPS following the
instructions, the installation fails when trying to link with LATTE. This
is an example of the message I get for multiple different functions:

sp2progress.f90:(.text+0xbd): undefined reference to
`_gfortran_compare_string’

It is unclear to me why this happens, since LATTE has already been
compiled at this stage.

​it happens, because you compiled LATTE with gfortran, but do not link to
libgfortran when linking LAMMPS.​

​have you tried the "automatic" build tool? i.e. using (in the src folder):

​make lib-latte args="-b -m gfortran"

​otherwise, you may need to edit ​lib/latte/Makefile.lammps as needed to
satisfy all dependencies (BLAS/LAPACK/OpenMP) of LATTE.

​axel.​

​p.s.: please note, that LATTE support in LAMMPS currently only works when
using only 1 MPI rank.​

Thank you very much Axel. I was overlooking the need to link to the gfortran library.

Now it has compiled correctly. I really appreciate your help.

Best,

Fernando