[netcdfgroup] Building netcdf from source

I'm following the instructions at
https://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html#building,
building on Ubuntu 18.04 in a Singularity container

I've built all the dependencies, and now building NetCDF 4.7.1:

$ ls $ZDIR/
include  lib  share  zlib-1.2.11

$ ls $H5DIR
bin  hdf5-1.10.5  include  lib  share

$ NCDIR=/home/chris/netcdf
$ CC=/opt/openmpi-4.0.1/bin/mpicc FC=/opt/openmpi-4.0.1/bin/mpifort
CPPFLAGS=-I${H5DIR}/include LDFLAGS=-L${H5DIR}/lib ./configure
--disable-shared --prefix=${NCDIR}

$ echo $LD_LIBRARY_PATH
/home/chris/netcdf/lib:/usr/local/lib

but the last test for make check fails:

 FAIL: run_par_tests.sh
============================================================================
Testsuite summary for netCDF 4.7.1
============================================================================
# TOTAL: 27
# PASS:  26
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See h5_test/test-suite.log
Please report to support-netcdf@xxxxxxxxxxxxxxxx
============================================================================
Makefile:1054: recipe for target 'test-suite.log' failed
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory '/home/chris/netcdf/netcdf-c-4.7.1/h5_test'
Makefile:1160: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/home/chris/netcdf/netcdf-c-4.7.1/h5_test'
Makefile:1425: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/chris/netcdf/netcdf-c-4.7.1/h5_test'
Makefile:703: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1


I've seen other people have this error, but I've got LD_LIBRARY_PATH set
correctly, and as far as I can work out, everything else is ok.

Is there anything I've missed? Is it safe to ignore this error?

Cheers
Chris
  • 2019 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: