LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
[lammps-users] g++ error (although not the stated compiler in makefile)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lammps-users] g++ error (although not the stated compiler in makefile)


From: Michael Gauci <mgmike20@...24...>
Date: Tue, 10 Oct 2017 00:34:16 +0200

Dear all,

Attached please find my modified version of Makefile.intel_cpu_mpich.  

I managed to compile it once (although with a slight modification having LIB = -ltbbmalloc -ltbbmalloc_proxy) but when I ran a script, I had the following error:
libtbbmalloc.so.2: cannot open shared object file: No such file or directory

Then, I removed the executable file lmp_intelmpich from src, modified the makefile such that I removed any mention of the library and included - DLMP_INTEL_NO_TBB in CCFLAGS.  However, I got the following error:

make[1]: Entering directory '/home/admin/Documents/lammps-11Aug17/src/Obj_intelmpich'
make[1]: Leaving directory '/home/admin/Documents/lammps-11Aug17/src/Obj_intelmpich'
make[1]: Entering directory '/home/admin/Documents/lammps-11Aug17/src/Obj_intelmpich'
mpicxx -cxx=icc -g -qopenmp -DLAMMPS_MEMALIGN=64 -DLMP_INTEL_NO_TBB -no-offload -fno-alias -ansi-alias -restrict -xHOST -O2 -fp-model fast=2 -no-prec-div -qoverride-limits  -DLAMMPS_GZIP -I../../lib/reax -I../../lib/meam -DLMP_USER_OMP -DLMP_USER_INTEL  -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -I/home/admin/Documents/mpich/include  -I/home/admin/Documents/fftw3/include     -c ../pppm_stagger.cpp
g++: error: fast=2: No such file or directory
g++: error: unrecognized command line option ‘-cxx=icc’
g++: error: unrecognized command line option ‘-qopenmp’
g++: error: unrecognized command line option ‘-no-offload’
g++: error: unrecognized command line option ‘-fno-alias’
g++: error: unrecognized command line option ‘-ansi-alias’
g++: error: unrecognized command line option ‘-restrict’
g++: error: unrecognized command line option ‘-fp-model’
g++: error: unrecognized command line option ‘-no-prec-div’
g++: error: unrecognized command line option ‘-qoverride-limits’
Makefile:105: recipe for target 'pppm_stagger.o' failed
make[1]: *** [pppm_stagger.o] Error 1
make[1]: Leaving directory '/home/admin/Documents/lammps-11Aug17/src/Obj_intelmpich'
Makefile:158: recipe for target 'intelmpich' failed
make: *** [intelmpich] Error 2

I still cannot understand what I'm doing wrong since I'm absolutely sure that I'm pointing towards the correct path for mpich. 

Any help would be much appreciated.


Michael

Attachment: Makefile.intelmpich
Description: Binary data