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

Min Si msi at anl.gov
Wed Jun 7 10:21:48 CDT 2017


Hi,

MPICH2-1.4 is a very old version. Could you please try the latest release ?

You can download it from this website.
http://www.mpich.org/downloads/

Min

On 6/7/17 1:06 AM, Igor R. Shein wrote:
>
> 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
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 
> 	Без вирусов. www.avast.ru 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 
>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20170607/3679925c/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