Issue compiling PNetcdf 1.6.1 with Intel MPI 4.1.3.049, SEEK_SET already defined

Wei-keng Liao wkliao at eecs.northwestern.edu
Fri Jun 12 22:53:36 CDT 2015


Hi, Craig

According to Rob's first URL from Intel, the second solution is to use two define macros on compile command line: -DMPICH_IGNORE_CXX_SEEK and -DMPICH_SKIP_MPICXX

I replaced printf calls with std::cout in file ncmpi_notyet.cpp on the SVN repo.
http://trac.mcs.anl.gov/projects/parallel-netcdf/browser/trunk/src/libcxx/ncmpi_notyet.cpp
Would you like to give it a try and let us know? Thanks.

Wei-keng

On Jun 10, 2015, at 3:36 PM, Craig Tierney - NOAA Affiliate wrote:

>  
> However, I could still not build the code by adding CXXFLAGS=-DMPICH_IGNORE_CXX_SEEK.  I got another error about not being able to find printf when compiling ncmpi_notyet.cpp.  I am not sure what the inclusion of the define would have removed.  I fixed it with the following patch:
> 
> --- src/libcxx/ncmpi_notyet.cpp.orig	2015-06-10 20:02:25.308564000 +0000
> +++ src/libcxx/ncmpi_notyet.cpp	2015-06-10 19:59:21.840706000 +0000
> @@ -1,4 +1,9 @@
>  #include <mpi.h>
> +
> +#ifdef MPICH_IGNORE_CXX_SEEK
> +#include<stdio.h>
> +#endif
> +
>  #include <pnetcdf.h>
>  #include "ncmpi_notyet.h"
> 
> Craig



More information about the parallel-netcdf mailing list