Hi,
I am trying to build the DWD ICON tools but the “make” step fails with the following error:
cdf_lazy_grid.c: In function ‘cdfLazyGridInitOnce’:
cdf_lazy_grid.c:401:29: error: assignment to ‘double (*)(grid_t , SizeType)’ {aka ‘double ()(grid_t , int)’} from incompatible pointer type ‘double ()(grid_t , size_t)’ {aka ‘double ()(grid_t *, long unsigned int)’} [-Wincompatible-pointer-types]
401 | cdfLazyGridVtable.inqXVal = cdfLazyGridInqXVal;
| ^
cdf_lazy_grid.c:192:1: note: ‘cdfLazyGridInqXVal’ declared here
192 | cdfLazyGridInqXVal(grid_t grid, size_t index)
| ^~~~~~~~~~~~~~~~~~
cdf_lazy_grid.c:402:29: error: assignment to ‘double ()(grid_t , SizeType)’ {aka ‘double ()(grid_t , int)’} from incompatible pointer type ‘double ()(grid_t , size_t)’ {aka ‘double ()(grid_t *, long unsigned int)’} [-Wincompatible-pointer-types]
402 | cdfLazyGridVtable.inqYVal = cdfLazyGridInqYVal;
| ^
cdf_lazy_grid.c:202:1: note: ‘cdfLazyGridInqYVal’ declared here
202 | cdfLazyGridInqYVal(grid_t *grid, size_t index)
My configuration file is included below. Any help would be most appreciated!
Kind regards,
Demetris
#!/usr/bin/bash
set -e
module load ICON
HDF5DIR=${EBROOTHDF5}
NCDFDIR=${EBROOTNETCDF}
NCDFFDIR=${EBROOTNETCDFMINFORTRAN}
GRIBDIR=${EBROOTECCODES}
LAECDIR=${EBROOTLIBAEC}
UUIDDIR=${EBROOTUTILMINLINUX}
CC=‘gcc’
F77=‘gfortran’
FC=‘gfortran’
CXX=‘g++’
CXXFLAGS=’ -O2 -g -fopenmp -Wunused -DNOMPI’
CFLAGS=’ -O2 -g -fopenmp -Wunused -DNOMPI’
FCFLAGS=‘–std=f2008 -O2 -g -cpp -fopenmp -Wunused -DNOMPI’
LDFLAGS=“-L$HDF5DIR/lib -L$NCDFDIR/lib64 -L$NCDFFDIR/lib64 -L$LAECDIR/lib64 -L$GRIBDIR/lib64 -L$UUIDDIR/lib64”
LIBS=“-lhdf5 -lnetcdff -lnetcdf -leccodes -laec -lgfortran -luuid”
./configure CC=“{CC}" F77="{F77}” FC=“{FC}" CXX="{CXX}”
CXXFLAGS=“{CXXFLAGS}" CFLAGS="{CFLAGS}”
FCFLAGS=“{FCFLAGS}" LDFLAGS="{LDFLAGS}” LIBS=“${LIBS}”
–enable-static --disable-shared --disable-silent-rules
–enable-iso-c-interface --with-netcdf=${NCDFDIR}
–enable-grib2 --with-eccodes=${GRIBDIR}