There are currently issues using Intel compilers in Lonestar5, so only GNU compilers can be used.
Follow this instructions for using Lonestar5 (using FLOSIC code as example):
CC = gcc
FC = mpif90
FFF = mpif90
CFLAGS = -O3
FFLAGS = -fno-align-commons -fbacktrace
LFLAGS = -fno-align-commons -fbacktrace
$(FFF) $(LFLAGS) $(OBJ) -o $(BIN) $(PCM_LIBS) $(EFP_LIB) $(LIBS) -fopenmp -I$(MKLROOT)/include \
-Wl,-L${MKLROOT}/lib/intel64 \
-lmkl_intel_lp64 -lmkl_core \
-lmkl_gnu_thread -lpthread \
-lm -ldl