After deciding to give up on Open MPI with macOS PGI, I figured mpich3 is built-in, just use that!
So, I started building my Base libraries and got through hdf5 (usually the bad one) and hit netCDF-C and it’s erroring with:
Making install in libsrc4
source='nc4file.c' object='libnetcdf4_la-nc4file.lo' libtool=yes \
DEPDIR=.deps depmode=pgcc /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I../include -DpgiFortran -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/ -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/zlib -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/szlib -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/jpeg -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/hdf5 -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/hdf -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/uuid -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/netcdf -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/udunits2 -c -o libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo './'`nc4file.c
libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I../include -DpgiFortran -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/ -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/zlib -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/szlib -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/jpeg -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/hdf5 -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/hdf -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/uuid -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/netcdf -I/Users/mathomp4/installed/MPI/pgi-16.10/mpich-3.2/Baselibs/5.0.2/Darwin/include/udunits2 -c nc4file.c -MD -o libnetcdf4_la-nc4file.o
PGC-S-0056-Attempt to call non-function (nc4file.c: 3058)
PGC-W-0095-Type cast required for this conversion (nc4file.c: 3058)
PGC/x86-64 OSX 16.10-0: compilation completed with severe errors
make[3]: *** [libnetcdf4_la-nc4file.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [netcdf.install] Error 2
make: *** [install] Error 2
As I’m mainly a Fortran programmer, C errors are usually a bit outside my purview. The line in question is 3058 here:
3050 /* This function will free all allocated metadata memory, and close
3051 the HDF5 file. The group that is passed in must be the root group
3052 of the file. */
3053 static int
3054 close_netcdf4_file(NC_HDF5_FILE_INFO_T *h5, int abort)
3055 {
3056 int retval = NC_NOERR;
3057
3058 assert(h5 && h5->root_grp);
3059 LOG((3, "%s: h5->path %s abort %d", __func__, h5->controller->path, abort));
3060
3061 /* According to the docs, always end define mode on close. */
3062 if (h5->flags & NC_INDEF)
3063 h5->flags ^= NC_INDEF;
which doesn’t seem that exciting since there are other asserts like that in that file.
Has anyone at PGI seen this before? Or, for me, what that Severe error means?
Matt