Hi, following from my unsuccessful attempts to
use a prebuilt netcdf module, I'm trying to build
netcdf myself.
I have built hdf5-1.10.1 parallel, with
Intel compiler 16.0.2 + Intel MPI library.
All hdf5 tests pass:
http://cgpack.sourceforge.net/201705/hdf5-1.10.1-make-check.log
I configured netcdf-c-4.4.1.1 with
CC=mpiicc \
CPPFLAGS=-I/panfs/panasas01/mech/mexas/soft/hdf5-1.10.1-ifort16u2-install/include
\
LDFLAGS=-L/panfs/panasas01/mech/mexas/soft/hdf5-1.10.1-ifort16u2-install/lib \
./configure
--prefix=/panfs/panasas01/mech/mexas/soft/netcdf-c-4.4.1.1-ifort-install \
--enable-shared --enable-parallel-tests --enable-fortran --enable-netcdf-4
which gave me:
# NetCDF C Configuration Summary
==============================
# General
-------
NetCDF Version: 4.4.1.1
Configured On: Thu May 18 15:32:00 BST 2017
Host System: x86_64-unknown-linux-gnu
Build Directory: /panfs/panasas01/mech/mexas/soft/netcdf-c-4.4.1.1
Install Prefix:
/panfs/panasas01/mech/mexas/soft/netcdf-c-4.4.1.1-ifort-install
# Compiling Options
-----------------
C Compiler:
/cm/shared/languages/Intel-Compiler-XE-16-U2/compilers_and_libraries_2016.2.181/linux/mpi/intel64/bin/mpiicc
CFLAGS:
CPPFLAGS:
-I/panfs/panasas01/mech/mexas/soft/hdf5-1.10.1-ifort16u2-install/include
LDFLAGS:
-L/panfs/panasas01/mech/mexas/soft/hdf5-1.10.1-ifort16u2-install/lib
AM_CFLAGS:
AM_CPPFLAGS:
AM_LDFLAGS:
Shared Library: yes
Static Library: yes
Extra libraries: -lhdf5_hl -lhdf5 -ldl -lm -lcurl
# Features
--------
NetCDF-2 API: yes
HDF4 Support: no
NetCDF-4 API: yes
NC-4 Parallel Support: yes
PNetCDF Support: no
DAP Support: yes
Diskless Support: yes
MMap Support: no
JNA Support: no
Does this look ok?
Then make run fine, i.e. no errors.
Then make check fails with this error:
make[2]: `tst_h_dimscales4' is up to date.
depbase=`echo tst_h_par.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
mpiicc -DHAVE_CONFIG_H -I. -I.. -I../include -I../oc2
-I/panfs/panasas01/mech/mexas/soft/hdf5-1.10.1-ifort16u2-install/include -MT
tst_h_par.o -MD -MP -MF $depbase.Tpo -c -o tst_h_par.o tst_h_par.c &&\
mv -f $depbase.Tpo $depbase.Po
tst_h_par.c(89): error: identifier "ERR" is undefined
if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0) ERR;
^
tst_h_par.c(226): error: identifier "SUMMARIZE_ERR" is undefined
SUMMARIZE_ERR;
^
tst_h_par.c(231): error: identifier "FINAL_RESULTS" is undefined
FINAL_RESULTS;
^
compilation aborted for tst_h_par.c (code 2)
make[2]: *** [tst_h_par.o] Error 2
make[2]: Leaving directory
`/panfs/panasas01/mech/mexas/soft/netcdf-c-4.4.1.1/h5_test'
Have I configured netcdf wrongly?
Thanks
Anton