Open 3rav opened 3 years ago
Thanks for reporting the problem and a fix. However, mingw environment is not officially supported. This is simply because we do not have the resource for development and test.
I was able to compile pnetcdf using msmpi for the mingw64 version but for the version mingw32 it has this error (https://github.com/3rav/MINGW-packages/runs/3893876517?check_suite_focus=true):
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for MPI_Comm_rank... no
configure: error:
checking for library containing MPI_Comm_rank... no
-----------------------------------------------------------------------
Invalid MPI compiler specified or detected: "/mingw32/bin/mpicc"
A working MPI C compiler is required. Please specify the location
of one either in the MPICC environment variable (not CC variable) or
through --with-mpi configure flag. Abort.
-----------------------------------------------------------------------
==> ERROR: A failure occurred in build().
This failure is to be expected, because 32-bit symbols exported by msmpi.dll are mangled while 64-bit ones are not. How can I just skip this test completely?
I wonder if this issue has been resolved in your build. The error message indicates the problem of your MPI compiler that failed to compile a simple program that calls MPI_Comm_rank.
I was able to compile pnetcdf in the mingw environment using msmpi, but there were such errors:
reapir by add to
error_posix2nc.c
:and: