[netcdfgroup] Compilation error: error: ‘preemptions’ undeclared (first use in this function); did you mean ‘preemption’?

Error compiling netcdf.
I suspect if happens with --enable-debug-login

Changing preemptions with preemptions in netcdf-c-4.7.4/libhdf5/hdf5var.c the compilation   was succesfull

Best,
D.

/bin/bash ../libtool  --tag=CC   --mode=compile mpicc -DHAVE_CONFIG_H -I. -I..  -I../include  -DgFortran -I/home/sangalli/data/Lavoro/Codici/yambo/yambo-libs-debug/gfortran/mpifort/v4/parallel/include -MT libnchdf5_la-hdf5var.lo -MD -MP -MF .deps/libnchdf5_la-hdf5var.Tpo -c -o libnchdf5_la-hdf5var.lo `test -f 'hdf5var.c' || echo './'`hdf5var.c libtool: compile:  mpicc -DHAVE_CONFIG_H -I. -I.. -I../include -DgFortran -I/home/sangalli/data/Lavoro/Codici/yambo/yambo-libs-debug/gfortran/mpifort/v4/parallel/include -MT libnchdf5_la-hdf5var.lo -MD -MP -MF .deps/libnchdf5_la-hdf5var.Tpo -c hdf5var.c -o libnchdf5_la-hdf5var.o
In file included from ../include/nc4internal.h:22:0,
                 from ../include/hdf5internal.h:17,
                 from hdf5var.c:13:
hdf5var.c: In function ‘nc_set_var_chunk_cache_ints’:
hdf5var.c:2293:40: error: ‘preemptions’ undeclared (first use in this function); did you mean ‘preemption’?
   __func__, ncid, varid, size, nelems, preemptions));
                                        ^
../include/nc_logging.h:25:23: note: in definition of macro ‘LOG’
 #define LOG(e) nc_log e
                       ^
hdf5var.c:2293:40: note: each undeclared identifier is reported only once for each function it appears in
   __func__, ncid, varid, size, nelems, preemptions));
                                        ^
../include/nc_logging.h:25:23: note: in definition of macro ‘LOG’
 #define LOG(e) nc_log e
                       ^
Makefile:621: recipe for target 'libnchdf5_la-hdf5var.lo' failed
make[5]: *** [libnchdf5_la-hdf5var.lo] Error 1
make[5]: Leaving directory '/data/sangalli/Lavoro/Codici/yambo/yambo-devel/branches/devel-bse-io/lib/netcdf/netcdf-c-4.7.4/libhdf5'
Makefile:707: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/data/sangalli/Lavoro/Codici/yambo/yambo-devel/branches/devel-bse-io/lib/netcdf/netcdf-c-4.7.4'
Makefile:552: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/data/sangalli/Lavoro/Codici/yambo/yambo-devel/branches/devel-bse-io/lib/netcdf/netcdf-c-4.7.4'
Makefile:58: recipe for target 'package-ready-stamp' failed
make[2]: *** [package-ready-stamp] Error 2
make[2]: Leaving directory '/data/sangalli/Lavoro/Codici/yambo/yambo-devel/branches/devel-bse-io/lib/netcdf'
Makefile:219: recipe for target 'netcdf' failed
make[1]: *** [netcdf] Error 2
make[1]: Leaving directory '/data/sangalli/Lavoro/Codici/yambo/yambo-devel/branches/devel-bse-io'
netcdf build failed


--
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
Area della Ricerca di Roma 1, 00016 Monterotondo Scalo, Italy
http://www.ism.cnr.it/en/davide-sangalli-cv/
http://www.max-centre.eu/


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