Dear all,
I was installing netcdf-c-4.8.1 using following command line:
./configure --prefix=$DIR/netcdf LDFLAGS=-L$DIR/netcdf/lib CPPFLAGS=-I$DIR/netcdf/include --disable-netcdf4 --disable-dap
then I configured successfully and passed the “make” steps.
But when I used “make check”, I encountered an error:
FAIL: test_rcmerge.sh
PASS: tst_null_byte_padding.sh
PASS: test_unicode_directory.sh
PASS: test_unicode_path.sh
PASS: tst_inmemory_nc3.sh
PASS: tst_nccopy_w3.sh
PASS: test_keywords.sh
============================================================================
Testsuite summary for netCDF 4.8.1
============================================================================
# TOTAL: 26
# PASS: 25
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ncdump/test-suite.log
Please report to support-netcdf@unidata.ucar.edu
============================================================================
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/disk2/public/usr_local/netcdf-c-4.8.1/ncdump'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/disk2/public/usr_local/netcdf-c-4.8.1/ncdump'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/disk2/public/usr_local/netcdf-c-4.8.1/ncdump'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/disk2/public/usr_local/netcdf-c-4.8.1/ncdump'
make: *** [check-recursive] Error 1
*other basic information:
I installed hdf5-1.10.4, mpich-4.0.2, libpng-1.6.37 and zlib-1.2.11.
compiler: intel compiler (icc/icpc, ifort)
the envionment variables are as follow:
#module load
source /opt/intel/oneapi/setvars.sh intel64
export CC=icc
export CXX=icpc
export FC=ifort
export CFLAGS=-m64
export F77=ifort
export FFLAGS=-m64
export DIR=/disk2/public/usr_local
export F90=ifort
#netcdf
export NETCDF=$DIR/netcdf
export PATH=$NETCDF/bin:$PATH
export LIB=$NETCDF/lib
export INC=$NETCDF/include
export LD_LIBRARY_PATH=$NETCDF/lib:$LD_LIBRARY_PATH
#for mpich
export MPIPATH=$DIR/mpich
export MPIPATHBIN=$MPIPATH/bin
export MPIPATHINCLUDE=$MPIPATH/include
export MPIPATHLIB=$MPIPATH/lib
export MPIPATHSHARE=$MPIPATH/share
export PATH=$PATH:$MPIPATHBIN:$MPIPATHINCLUDE:$MPIPATHLIB:$MPIPATHSHARE
I would appreciate it if you would take the time out of your busy schedule to check out my posts and give suggestions.
Best regards,
Janice
test-suite.log.txt (329 Bytes)
It is possible that there is an error in the make test related to test_rcmerge.sh. I found the following link by googling ‘FAIL: test_rcmerge.sh’.
opened 08:15AM - 01 Sep 21 UTC
closed 11:12AM - 26 Apr 22 UTC
Current master is failing for me:
`autoreconf -i && CFLAGS='-g -Wall' CPPFLAG… S=-I/usr/local/hdf5-1.10.7_szip/include LDFLAGS=-L/usr/local/hdf5-1.10.7_szip/lib ./configure --disable-shared --disable-dap-remote-tests && make -j clean && make -j check
`
Fails in ncdump testing:
```
make[4]: Entering directory '/home/ed/n_unidata/ncdump'
PASS: ref_ctest64
PASS: ref_ctest
PASS: tst_inttags.sh
PASS: tst_charfill.sh
PASS: test_radix.sh
PASS: tst_inttags4.sh
PASS: tst_null_byte_padding.sh
PASS: tst_nccopy3_subset.sh
PASS: tst_dimsizes.sh
FAIL: test_rcmerge.sh
```
Running the failing test with bash -x:
```
(base) ed@mikado:~/n_unidata/ncdump$ bash -x ./test_rcmerge.sh
+ test x = x
++ pwd
+ srcdir=/home/ed/n_unidata/ncdump
+ . ../test_common.sh
++ TOPSRCDIR=/home/ed/n_unidata
++ TOPBUILDDIR=/home/ed/n_unidata
++ FP_ISCMAKE=
++ FP_ISMSVC=
++ FP_ISCYGWIN=
++ FEATURE_HDF5=yes
++ FEATURE_HDF5=yes
++ FEATURE_S3TESTS=no
++ FEATURE_NCZARR_ZIP=no
++ set -e
++ test x = x1
++ top_srcdir=/home/ed/n_unidata
++ top_builddir=/home/ed/n_unidata
++ test x/home/ed/n_unidata/ncdump = x
+++ pwd
++ builddir=/home/ed/n_unidata/ncdump
++ execdir=/home/ed/n_unidata/ncdump
+++ basename /home/ed/n_unidata/ncdump
++ thisdir=ncdump
+++ pwd
++ WD=/home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata/ncdump
+++ pwd
++ srcdir=/home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata
+++ pwd
++ top_srcdir=/home/ed/n_unidata
++ cd /home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata/ncdump
+++ pwd
++ builddir=/home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata
+++ pwd
++ top_builddir=/home/ed/n_unidata
++ cd /home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata/ncdump
+++ pwd
++ execdir=/home/ed/n_unidata/ncdump
++ cd /home/ed/n_unidata/ncdump
++ export srcdir top_srcdir builddir top_builddir execdir
++ test -e /home/ed/n_unidata/ncdump/ncdump.exe
++ ext=
++ export NCDUMP=/home/ed/n_unidata/ncdump/ncdump
++ NCDUMP=/home/ed/n_unidata/ncdump/ncdump
++ export NCCOPY=/home/ed/n_unidata/ncdump/nccopy
++ NCCOPY=/home/ed/n_unidata/ncdump/nccopy
++ export NCGEN=/home/ed/n_unidata/ncgen/ncgen
++ NCGEN=/home/ed/n_unidata/ncgen/ncgen
++ export NCGEN3=/home/ed/n_unidata/ncgen3/ncgen3
++ NCGEN3=/home/ed/n_unidata/ncgen3/ncgen3
++ ncgen3c0=/home/ed/n_unidata/ncgen3/c0.cdl
++ ncgenc0=/home/ed/n_unidata/ncgen/c0.cdl
++ ncgenc04=/home/ed/n_unidata/ncgen/c0_4.cdl
++ cd /home/ed/n_unidata/ncdump
++ pwd
+ WD=/home/ed/n_unidata/ncdump
+ cd /home/ed/n_unidata/ncdump
++ pwd
+ abs_srcdir=/home/ed/n_unidata/ncdump
+ cd /home/ed/n_unidata/ncdump
+ cd /home/ed/n_unidata/ncdump
++ pwd
+ abs_execdir=/home/ed/n_unidata/ncdump
+ cd /home/ed/n_unidata/ncdump
+ rm -fr rcmergedir
+ mkdir rcmergedir
+ cd rcmergedir
++ pwd
+ WD=/home/ed/n_unidata/ncdump/rcmergedir
+ test x '!=' x
+ HOMERCFILES='/home/ed/.ncrc /home/ed/.daprc /home/ed/.dodsrc'
+ LOCALRCFILES='/home/ed/n_unidata/ncdump/rcmergedir/.ncrc /home/ed/n_unidata/ncdump/rcmergedir/.daprc /home/ed/n_unidata/ncdump/rcmergedir/.dodsrc'
+ resetrc
+ test x = x1
+ rm -f /home/ed/n_unidata/ncdump/rcmergedir/.ncrc /home/ed/n_unidata/ncdump/rcmergedir/.daprc /home/ed/n_unidata/ncdump/rcmergedir/.dodsrc
+ unset NCRCENV_RC
+ mergecase1
+ resetrc
+ test x = x1
+ rm -f /home/ed/n_unidata/ncdump/rcmergedir/.ncrc /home/ed/n_unidata/ncdump/rcmergedir/.daprc /home/ed/n_unidata/ncdump/rcmergedir/.dodsrc
+ unset NCRCENV_RC
+ rm -f tmp_rcmerge.txt tmpoutput.txt
+ for r in "ncrc" "daprc" "dodsrc"
+ test x = x1
+ echo ncrc_local=ncrc
+ for r in "ncrc" "daprc" "dodsrc"
+ test x = x1
+ echo daprc_local=daprc
+ for r in "ncrc" "daprc" "dodsrc"
+ test x = x1
+ echo dodsrc_local=dodsrc
+ /home/ed/n_unidata/ncdump/tst_rcmerge
+ test x = x1
+ sed -e /_local/p -e d
+ diff -b tmp_rcmerge1.txt tmpoutput.txt
0a1,9
> |USE_CACHE|->|0|
> |MAX_CACHE_SIZE|->|20|
> |MAX_CACHED_OBJ|->|5|
> |IGNORE_EXPIRES|->|0|
> |CACHE_ROOT|->|/home/ed/.dods_cache/|
> |DEFAULT_EXPIRES|->|86400|
> |ALWAYS_VALIDATE|->|0|
> |DEFLATE|->|0|
> |VALIDATE_SSL|->|1|
(base) ed@mikado:~/n_unidata/ncdump$
```
This happens with a brand new git clone, so I don't think this is in my code.
@DennisHeimbigner and @WardF you guys are apparently not experiencing this failure. I wonder why...
Note: please review the I/O API documentation for instructions on how to build netCDF.
https://www.cmascenter.org/ioapi/documentation/all_versions/html/AVAIL.html#ncf4