# Netcdf-c-4.8.1: failure in ncdump/test\_rcmerge.sh

**URL:** <https://forum.cmascenter.org/t/netcdf-c-4-8-1-failure-in-ncdump-test-rcmerge-sh/3711>\
**Category:** CMAQ\
**Tags:** cmaq\
**Created:** [November 14, 2022, 3:32pm UTC](https://forum.cmascenter.org/t/netcdf-c-4-8-1-failure-in-ncdump-test-rcmerge-sh/3711 "2022-11-14T15:32:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluebulu108](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bluebulu108](https://forum.cmascenter.org/u/bluebulu108)\
**Post date:** [November 14, 2022, 3:32pm UTC](https://forum.cmascenter.org/t/netcdf-c-4-8-1-failure-in-ncdump-test-rcmerge-sh/3711/1 "2022-11-14T15:32:12Z")

</div>

Dear all,  
I was installing netcdf-c-4.8.1 using following command line:

```auto
./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:

```auto
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

```

 ![1668439618905](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/9/9c430c1a96bd9ce99869304181efd6a58e757db2.png)

\*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:

```auto
#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

```

 ![1668439911364](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/8/835624f1c7c739374b895faa963a70e705e33e3f.png)

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](https://forum.cmascenter.org/uploads/short-url/5yb9THHZuhmgiip7CVtL75tH7iN.txt) (329 Bytes)

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [November 29, 2022, 3:55pm UTC](https://forum.cmascenter.org/t/netcdf-c-4-8-1-failure-in-ncdump-test-rcmerge-sh/3711/2 "2022-11-29T15:55:44Z")

</div>

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’.

> <https://github.com/Unidata/netcdf-c/issues/2097>
>
> 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](https://www.cmascenter.org/ioapi/documentation/all_versions/html/AVAIL.html#ncf4)

---

<div class="post-metadata">

**Author:** ![bluebulu108](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bluebulu108](https://forum.cmascenter.org/u/bluebulu108)\
**Post date:** [November 29, 2022, 4:09pm UTC](https://forum.cmascenter.org/t/netcdf-c-4-8-1-failure-in-ncdump-test-rcmerge-sh/3711/3 "2022-11-29T16:09:22Z")

</div>

Thanks for your reply!
