undefined reference to scalable_aligned_malloc, > scalable_aligned_realloc, and scalable_aligned_free?

I had to put the path to -ltbbmalloc in the LIB variable, something
like this below. The tbbmalloc lib should be included in your intel
compiler install. You may also need to add "-tbb" to CCFLAGS. On a
Cray machine, I also needed to use add "-dynamic" to LINKFLAGS for
dynamic linking.

OPTFLAGS = -xHost -O2 -fp-model fast=2 -no-prec-div -qoverride-limits
CCFLAGS = -g -qopenmp -DLAMMPS_MEMALIGN=64 -qno-offload \
                             -fno-alias -ansi-alias -restrict -tbb $(OPTFLAGS)

LIB =
-L/home/projects/x86-64-knl/intel/compilers/2017/compilers_and_libraries_2017.0.042/linux/tbb/lib/intel64/gcc4.4
-ltbbmalloc

Stan

Many thanks to Alex Kohlmeyer and Stan Moore for steering me in the right direction on this. For the sake of future googlers of this mailing list:

Software environment:

    - OpenHPC v. 1.3
      - mpich-intel-ohpc-3.2-6.1.x86_64

    - Intel Parallel Studio XE Composer Edition v. 17
      (note: Composer does not include mpiicpc and friends)

I had to make the following modifications to Makefile.cpu_intel_mpich in order to get LAMMPS to compile with `make intel_cpu_mpich`: