compilation problem of 4.1-b3 with MPI
Dear all, I compiled 4.1-b3 using the standard arch.make without any problem. Then I added the options for NetCDF and recompiled, again without any problem. Below are the lines added to arch.make following the recommendation at the end of the NetCDF installation:
INCFLAGS += -I/home/
LDFLAGS += -L/home/
LDFLAGS += -L/home/
LDFLAGS += -L/home/
LIBS += -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz
COMP_LIBS += libncdf.a libfdict.a
FPPFLAGS += -DCDF -DNCDF -DNCDF_4
When I added the options for MPI I got a compilation error. Below are the only lines altered in the arch.make as suggested in the manual:
CC = mpicc
FPP = $(FC) -E -P -x c
FC = mpifort
FC_SERIAL = gfortran
FC = mpifort
FC_SERIAL = gfortran
MPI_INTERFACE = libmpi_f90.a
MPI_INCLUDE = .
FPPFLAGS += -DMPI
The error message comes at the end of the compilation and is related to several undefined variables. The end of the compilation and the beginning of the (long) error message are the following:
a.o siesta_dicts.o m_cite.o m_ts_io.o nag.o pxf.o sockets.o fsockets.o siesta.o libfdf.a libwxml.a libxmlparser.a \
m_dminim.o: In function `__m_dminim_
m_dminim.
m_dminim.
m_dminim.
m_dminim.
m_dminim.o: In function `__m_dminim_
m_dminim.
The end of the error message is the following:
class_Distribut
diagonalizeHk.o: In function `diagonalizehk_':
diagonalizeHk.
m_orderbands.o: In function `__m_orderbands
m_orderbands.
collect2: error: ld returned 1 exit status
make: ** [siesta] Erro 1
I am certainly missing something simple, but can't figure it out. Any suggestions would be of great help. Thank you!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Siesta Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Nick Papior
- Solved:
- Last query:
- Last reply: