[mpich-discuss] About error in mpio.h with mpicc
Halim Amer
aamer at anl.gov
Wed Jun 7 10:23:12 CDT 2017
Doesn't Composer XE come with Intel MPI? I suggest using it if possible.
If you really want to use MPICH, then I suggest that you grab a more
recent 3.2 tarball, which can be found at
http://www.mpich.org/downloads. The version you are using is outdated.
If you are still seeing the same problem with the recent MPICH tarball,
please let us know.
Halim
www.mcs.anl.gov/~aamer
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
>
>
>
> ---
> Это сообщение проверено на вирусы антивирусом Avast.
> https://www.avast.com/antivirus
>
>
>
> _______________________________________________
> discuss mailing list discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
_______________________________________________
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