Unidata / netcdf-fortran

Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
Other
244 stars 98 forks source link

Problems of the 'make' step of installing the netcdf-c #423

Open zrjxmu opened 11 months ago

zrjxmu commented 11 months ago

$ make make all-recursive make[1]: Entering directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2' Making all in include make[2]: Entering directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2/include' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2/include' Making all in libncxml make[2]: Entering directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2/libncxml' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2/libncxml' Making all in libdispatch make[2]: Entering directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2/libdispatch' /bin/bash ../libtool --tag=CC --mode=compile icc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I../oc2 -I../libnczarr -I/usr/local/hdf5/include -fno-strict-aliasing -MT libdispatch_la-nctime.lo -MD -MP -MF .deps/libdispatch_la-nctime.Tpo -c -o libdispatch_la-nctime.lo test -f 'nctime.c' || echo './'nctime.c libtool: compile: icc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I../oc2 -I../libnczarr -I/usr/local/hdf5/include -fno-strict-aliasing -MT libdispatch_la-nctime.lo -MD -MP -MF .deps/libdispatch_la-nctime.Tpo -c nctime.c -fPIC -DPIC -o .libs/libdispatch_la-nctime.o /opt/intel/composer_xe_2013.2.146/compiler/include/math.h(1181): error: identifier "_LIB_VERSION_TYPE" is undefined _LIBIMF_EXT _LIB_VERSIONIMF_TYPE _LIBIMF_PUBVAR _LIB_VERSIONIMF; ^

compilation aborted for nctime.c (code 2) make[2]: [Makefile:897: libdispatch_la-nctime.lo] Error 1 make[2]: Leaving directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2/libdispatch' make[1]: [Makefile:769: all-recursive] Error 1 make[1]: Leaving directory '/home/zrj/Downloads/netcdf/netcdf-c-4.9.2' make: *** [Makefile:614: all] Error 2

When I make the netcdf-c ,it went wrong. And the same situation occurred when I make the netcdf-fortran. Can someone tell me where the problem is? My config.log is attached.

config.log