-lompstub error on installing

Hello,

I tried to install lammps with two different version on the new cluster.
One is 17June version that I already checked it works in another cluster and the other version is 7July one.
Both versions gave me the same error when I compiled them with openmpi and intel compilers like;

Hello,

I tried to install lammps with two different version on the new cluster.
One is 17June version that I already checked it works in another
cluster and the other version is 7July one.
Both versions gave me the same error when I compiled them with openmpi
and intel compilers like;

first off. if you don't need any of the
meam, reax, user-atc, or user-awpmd packages,
just do a: make no-<name>
for each of them and the problem will go away
automatically. if you need one of them,
this is the part that you need to adjust.

gpu_SYSLIB = -lcudart -lcuda
meam_SYSLIB = -lifcore -lsvml -lompstub -limf
reax_SYSLIB = -lifcore -lsvml -lompstub -limf
user-atc_SYSLIB = -lblas -llapack
user-awpmd_SYSLIB = -lblas -llapack

just do a:
  touch empty.f
and:
  ifort -v empty.f

you will get a _lot_ of output. look as the part that starts with "ld".
somewhere in between will be -lifcore or something similar. what
exactly changes with every intel compiler version. :frowning:
with intell 11.1 i see:

ld /usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/crtbegin.o --eh-frame-hdr
-dynamic-linker /lib64/ld-linux-x86-64.so.2 -o a.out
/opt/intel/Compiler/11.1/072/lib/intel64/for_main.o /tmp/ifortwfUuZe.o
-L/opt/intel/Compiler/11.1/072/lib/intel64
-L/opt/intel/Compiler/11.1/072/mkl/lib/em64t
-L/opt/intel/Compiler/11.1/072/lib/intel64
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.5
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/opt/intel/Compiler/11.1/072/lib/intel64
-L/opt/intel/Compiler/11.1/072/mkl/lib/em64t
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../.. -L/lib64 -L/lib
-L/usr/lib64 -L/usr/lib -Bstatic -lifport -lifcore -limf -lsvml
-Bdynamic -lm -Bstatic -lipgo -lirc -u __pthread_once -Bdynamic
-lpthread -lc -lgcc_s -lgcc -Bstatic -lirc_s -Bdynamic -ldl -lc
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/crtend.o
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crtn.o

out of which i would extract:
-lifport -lifcore -limf -lsvml

it becomes a bit more complicated, if you want to link all those
libraries statically
to have a more portable binary. let us know if that works.

cheers,
    axel.

It tells you the problem - it can't find the ompstub library.
Since it isn't listed in your Makefile.foo that means that
the mpicc wrapper is trying to use it. If you are using
mpicc, then you shouldn't need any MPI settings in your
Makefile.foo. That is what mpicc is supposed to provide.
If it isn't working or setup on your box, then I would use
the compiler directly, e.g. g++, and then use the MPI
settings.

Steve