[mpich-discuss] About error in mpio.h with mpicc

Igor R. Shein shein at ihim.uran.ru
Wed Jun 7 01:06:45 CDT 2017


Dear colleagues, in compiling a program I have a problem with compiling.

I use Intel composer_xe_2013 + MKL and mpich2-1.4.1p1.

 

 

+++++++++++++++++++++++++++++++++++++++

MKLPATH=$(MKLROOT)/lib/intel64

MKL_FFTW_PATH=$(MKLROOT)/interfaces/fftw3xf/

MKLINCLUDE=$(MKLROOT)/include

 

FCOMPILER = mpif90

F90COMPILER = mpif90

FCOMPILERFLAGS = -O3

FCPPFLAGS = -DMPI -DNOMPIMOD

FORTRANLIBS = -lifcore -lsvml -lirc -limf -lifport

 

#C:

CCOMPILER = mpicc

CCOMPILERFLAGS = -O2 -fno-gnu-keywords

#CCOMPILERFLAGS = -g -O0

CPPFLAGS = -DF_APPENDS_UNDERSCORE=0 -DMPI

 

#LIBRARIES AND INCLUDE DIRECTORIES

LAPACKLIB =

BLASLIB = -L${MKLPATH} -I${MKLINCLUDE} -Wl,--start-group -mkl=sequential
-Wl,--end-group -lpthread

FFTWLIB = $(MKL_FFTW_PATH)/libfftw3xf_intel.a

 

EXTRALIBS = -lmpi -lmpich

INCLUDEDIRS = -I/opt/intel/mkl/include/fftw

++++++++++++++++++++++++++++++++++++++++

but.....there is a strange error:

++++++++++++++++++++++++++++++++++++++++

mpicc -O2 -fno-gnu-keywords -I./include -I../../include
-I/opt/intel/mkl/include/fftw -DF_APPENDS_UNDERSCORE=0 -DMPI -c -o bases.o
bases.c

mpicc -O2 -fno-gnu-keywords -I./include -I../../include
-I/opt/intel/mkl/include/fftw -DF_APPENDS_UNDERSCORE=0 -DMPI -c -o
basesInterstitial.o basesInterstitial.c

In file included from /usr/local/include/mpi.h(1184),

from basesInterstitial.c(29):

/usr/local/include/mpio.h(142): error: expected a "{"

MPI_Status *status) MPICH_ATTR_POINTER_WITH_TYPE_TAG(3,5);

^

 

In file included from basesInterstitial.c(30):

./include/mpicom.h(8): warning #12: parsing restarts here after previous
syntax error

extern struct {

^

 

In file included from basesInterstitial.c(30):

./include/mpicom.h(12): warning #77: this declaration has no storage class
or type specifier

} mpicom0_;

^

 

basesInterstitial.c(922): error: identifier "intrak_mpirank" is undefined

mpirank = intrak_mpirank;

^

 

basesInterstitial.c(923): error: identifier "intrak_mpisize" is undefined

mpisize = intrak_mpisize;

^

 

basesInterstitial.c(924): error: identifier "intrak_comm" is undefined

mycomm = MPI_Comm_f2c(intrak_comm);

^

 

basesInterstitial.c(1246): error: identifier "intrak_mpirank" is undefined

mpirank = intrak_mpirank;

^

 

basesInterstitial.c(1247): error: identifier "intrak_mpisize" is undefined

mpisize = intrak_mpisize;

^

 

basesInterstitial.c(1248): error: identifier "intrak_comm" is undefined

mycomm = MPI_Comm_f2c(intrak_comm);

^

+++++++++++++++++++++++++++++++++++++++++++

 

I would be very grateful for your help



---
Это сообщение проверено на вирусы антивирусом Avast.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20170607/a9f9d26c/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list