victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
131 stars 149 forks source link

Crashing during compilation #64

Open dheerajkv1984 opened 6 years ago

dheerajkv1984 commented 6 years ago

Hi

I want to install S4 on RHEL6.8 over gcc and also over MPI I installed lua-3.2.4. Edited the Makefile.Linux as below (commented lapack and blas). Kept lua lib location in LD_LIBRARY_PATH. OBJDIR = build-S4 SHLIB_EXT = so SHLIB_FLAGS = -fPIC -shared

LA_LIBS = -llapack -lblas

LUA_INC = -I/dat/usr/x082685/Source/tools/apps/lua-5.2.4/include LUA_LIB = -llua LUA_MODULE_LIB =

MPI_INC = MPI_LIB =

CFLAGS += -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC CXXFLAGS += -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC

If compiling with MPI, the following must be modified to the proper MPI compilers

CC = gcc CXX = g++

When I did a make, it gives me error as given in the link. Appreciate your help. error.log