[netcdfgroup] Compile error when make check

Hi

I met an error when make check. The system is 32bit CentOS6. Intel compiler
is used. I invoke configure as follow:
export CPPFLAGS=-I$PRO_PATH/Hdf5-1.8.7/include
export LDFLAGS=-L$PRO_PATH/Hdf5-1.8.7/lib
export LD_LIBRARY_PATH=$PRO_PATH/Hdf5-1.8.7/lib
./configure  --prefix=$PRO_PATH/Netcdf-4.1.3 --enable-netcdf-4

The error message is listed below.

Making check in nf_test
make[1]: Entering directory
`/home/qiuxb/qw01/Program/IntelCompiled/Temp/netcdf-4.1.3/nf_test'
make  nf_test tst_f77_v2 ftst_vars ftst_vars2 ftst_vars3 ftst_vars4
ftst_vars5 ftst_vars6 ftst_types ftst_types2 ftst_types3 ftst_groups
f90tst_vars tst_types tst_types2 f90tst_vars_vlen tst_f90_nc4 f90tst_grps
f90tst_fill f90tst_fill2 f90tst_vars3 f90tst_vars4 f90tst_vars2 ftst_v2
ftest tst_f90
make[2]: Entering directory
`/home/qiuxb/qw01/Program/IntelCompiled/Temp/netcdf-4.1.3/nf_test'
.....................................
.....................................
.....................................
ifort  -I../fortran -I../f90 -I../f90 -I../include -I../oc  -g -c -o
f90tst_vars4.o  f90tst_vars4.f90
/bin/sh ../libtool --tag=FC   --mode=link ifort  -I../fortran -I../f90
-I../f90 -I../include -I../oc  -g
 -L/home/qiuxb/qw01/Program/IntelCompiled/Hdf5-1.8.7/lib
-L/home/qiuxb/qw01/Program/IntelCompiled/Zlib-1.2.5/lib
-L/home/qiuxb/qw01/Program/IntelCompiled/Szip-2.1/lib -o f90tst_vars4
f90tst_vars4.o ../fortran/libnetcdff.la  -lhdf5_hl -lhdf5 -lm -lcurl
libtool: link: ifort -I../fortran -I../f90 -I../f90 -I../include -I../oc -g
-o .libs/f90tst_vars4 f90tst_vars4.o
 -L/home/qiuxb/qw01/Program/IntelCompiled/Hdf5-1.8.7/lib
-L/home/qiuxb/qw01/Program/IntelCompiled/Zlib-1.2.5/lib
-L/home/qiuxb/qw01/Program/IntelCompiled/Szip-2.1/lib
../fortran/.libs/libnetcdff.so
/home/qiuxb/qw01/Program/IntelCompiled/Temp/netcdf-4.1.3/liblib/.libs/libnetcdf.so
/home/qiuxb/qw01/Program/IntelCompiled/Hdf5-1.8.7/lib/libhdf5_hl.so
/home/qiuxb/qw01/Program/IntelCompiled/Hdf5-1.8.7/lib/libhdf5.so
/home/qiuxb/qw01/Program/IntelCompiled/Szip-2.1/lib/libsz.so -lz -lm -lcurl
-Wl,-rpath -Wl,/home/qiuxb/qw01/Program/IntelCompiled/Netcdf-4.1.3/lib
-Wl,-rpath -Wl,/home/qiuxb/qw01/Program/IntelCompiled/Hdf5-1.8.7/lib
-Wl,-rpath -Wl,/home/qiuxb/qw01/Program/IntelCompiled/Szip-2.1/lib
ifort  -I../fortran -I../f90 -I../f90 -I../include -I../oc  -g -c -o
f90tst_vars2.o  f90tst_vars2.f90
f90tst_vars2.f90(37): error #6418: This name has already been assigned a
data type.   [CACHE_SIZE]
  integer, parameter :: CACHE_SIZE = 8, CACHE_NELEMS = 571, CACHE_PREEMPTION
= 66
------------------------^
f90tst_vars2.f90(37): error #6418: This name has already been assigned a
data type.   [CACHE_NELEMS]
  integer, parameter :: CACHE_SIZE = 8, CACHE_NELEMS = 571, CACHE_PREEMPTION
= 66
----------------------------------------^
f90tst_vars2.f90(77): error #6284: There is no matching specific function
for this generic function reference.   [NF90_DEF_VAR]
  call check(nf90_def_var(ncid, VAR5_NAME, NF90_INT, dimids, varid5,
chunksizes = chunksizes, &
-------------^
f90tst_vars2.f90(85): error #6404: This name does not have a type, and must
have an explicit type.   [NF90_SET_VAR_CHUNK_CACHE]
  call check(nf90_set_var_chunk_cache(ncid, varid1, CACHE_SIZE, &
-------------^
compilation aborted for f90tst_vars2.f90 (code 1)
make[2]: *** [f90tst_vars2.o] Error 1
make[2]: Leaving directory
`/home/qiuxb/qw01/Program/IntelCompiled/Temp/netcdf-4.1.3/nf_test'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory
`/home/qiuxb/qw01/Program/IntelCompiled/Temp/netcdf-4.1.3/nf_test'
make: *** [check-recursive] Error 1

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