Following suggestions here, I tried compiling using the SMP option (I'm running the package on a 2-CPU Intel i5, Ubuntu system), so I downloaded GotoBLAS2 and compiled it succesfully :
ls -l /media/u02/GotoBLAS2/*.so
-rwxr-xr-x 1 ffxx68 ffxx68 10108718 2012-08-16 03:09 /media/u02/GotoBLAS2/libgoto2_nehalemp-r1.13.so
lrwxrwxrwx 1 ffxx68 ffxx68 26 2012-08-16 03:09 /media/u02/GotoBLAS2/libgoto2.so -> libgoto2_nehalemp-r1.13.so
Then I changed make.inc, in order to link this and enable SMP:
F77=$(F90)
F90_OPTS = -O3 -march=native # -flto
F77_OPTS = $(F90_OPTS)
CPP_ON_OPT = -cpp -DXS -DISO -DTETRA -DLIBXC
LIB_ARP =libarpack.a
#LIB_LPK = -L./ -llapack -lblas
LIB_LPK = -L/media/u02/GotoBLAS2 -lgoto2 -lpthread
LIB_LPKSMP = -L/media/u02/GotoBLAS2 -lgoto2 -lpthread
LIB_FFT = fftlib.a
LIB_BZINT= libbzint.a
LIBS= $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT) # -flto -fwhole-program
F90_DEBUGOPTS=-g -fbounds-check -fbacktrace -Wall
F77_DEBUGOPTS= $(F90_DEBUGOPTS)
#Ignore if you don't have MPI or smplibs
MPIF90=mpif90
MPIF90_OPTS=$(F90_OPTS) $(CPP_ON_OPT) -DMPI -DMPIRHO -DMPISEC
F77MT=$(F77)
F90MT=$(F90)
#SMP_LIBS=$(LIBS)
SMP_LIBS= -mkl=parallel $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT)
SMPF90_OPTS=-fopenmp $(F90_OPTS)
SMPF77_OPTS=$(SMPF90_OPTS)
BUILDMPI=false
BUILDSMP=true
New exciting (lithium) make was completed succesfully:
ls -l /media/u02/exciting/bin
total 18136
lrwxrwxrwx 1 ffxx68 ffxx68 11 2012-08-16 03:37 exciting -> excitingsmp
-rwxr-xr-x 1 ffxx68 ffxx68 6378628 2012-08-16 03:26 excitingser
-rwxr-xr-x 1 ffxx68 ffxx68 6392140 2012-08-16 03:34 excitingsmp
-rwxr-xr-x 1 ffxx68 ffxx68 1934687 2012-08-16 03:34 spacegroup
-rwxr-xr-x 1 ffxx68 ffxx68 3390566 2012-08-16 03:34 species
-rwxr-xr-x 1 ffxx68 ffxx68 230352 2012-08-16 03:34 stateconvert
-rwxr-xr-x 1 ffxx68 ffxx68 230184 2012-08-16 03:34 stateinfo//
But, execution fails for a missing library, which I don't understand:
exciting
exciting: error while loading shared libraries: libgoto2.so: cannot open shared object file: No such file or directory