I'm compiling the latest exciting version (12-2010):
iMac - i7 quad core
intel ifort+mkl 11.1.75 (=stablest version)
I'm not interested in mpi on this system but I want to get ser and smp going. I got errors about /lib/cpp not being found. (And, indeed, on Mac Os X, cpp is in /usr/bin/cpp - /lib doesn't even exist on my system.) I had read in a previous thread that one needs to add "-fpp" (this invokes the intel ifort fpp on my system) to the fortran options in build/make.inc . I finally pieced together a solution for a working build/make.inc :
- the option "-fpp" needs to be added not only to F90_OPTS, but also to F77_OPTS .
- I added a new line to tell the system where cpp resides
I can now compile excitingser and excitingsmp without errors (again, I'm not interested in mpi on this quad-core system as threading is so efficient).
I'm still somewhat mystified by the hardcoded references to /lib/cpp in the libXC Makefiles, which I don't expect to be fixed by my FCCPP statement; but the related errors seem to have disappeared, so I won't complain. Developer verification welcome.
$ more build/make.inc
- note -fpp added in next line ; the -cpp is probably redundant, I haven't checked
F90_OPTS = -O3 -ip -unroll -scalar_rep -w90 -fpp -cpp
CPP_ON_OPT = -cpp -DXS -DISO -DTETRA -DLIBXC
- note -fpp added in next line
F77_OPTS = -O3 -fpp
- NOTE THE NEXT LINE IS NEW
FCCPP = /opt/intel/Compiler/11.1/089/bin/intel64/fpp
#Link line taken from intel's mkl link advisor:
#######LIB_LPK = $(MKLROOT)/libmkl_solver_lp64.a $(MKLROOT)/libmkl_intel_lp64.a $(MKLROOT)/libmkl_intel_thread.a $(MKLROOT)/libmkl_core.a -openmp -lpthread # static linking can give difficulties b/c intel's Mac version is wobbly
LIB_LPK = -L$(MKLROOT) $(MKLROOT)/libmkl_solver_lp64.a -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread
LIB_FFT = fftlib.a
my .cshrc contains
setenv MKLROOT /opt/intel/Compiler/11.1/089/Frameworks/mkl/lib/em64t
(use export MKLROOT=/opt/intel/Compiler/11.1/089/Frameworks/mkl/lib/em64t in .bashrc if you're a bash girl/boy)
[moderators - feel free to remove this thread if it seems unnecessary]