Hi,
I am getting errors while compiling the CCTM. I am attaching my log file for reference. And here is my errors:
/usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/lib/x86_64/intel2017.1.132/ioapi/lib/libnetcdf.a(libnetcdf4_la-nc4var.o): In function NC4_def_var': /usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4var.c:554: undefined reference to
H5Tget_native_type’
/usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4var.c:568: undefined reference to H5Tget_class' /usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4var.c:665: undefined reference to
H5Dclose’
/usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4var.c:671: undefined reference to H5Gunlink' /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/lib/x86_64/intel2017.1.132/ioapi/lib/libnetcdf.a(libnetcdf4_la-nc4var.o): In function
NC4_rename_var’:
/usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4var.c:1622: undefined reference to H5Gmove' /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/lib/x86_64/intel2017.1.132/ioapi/lib/libnetcdf.a(libnetcdf4_la-nc4attr.o): In function
NC4_rename_att’:
/usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4attr.c:463: undefined reference to H5Adelete' /usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4attr.c:456: undefined reference to
H5Adelete’
/usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/lib/x86_64/intel2017.1.132/ioapi/lib/libnetcdf.a(libnetcdf4_la-nc4attr.o): In function NC4_del_att': /usr/local/usrapps/fgarcia4/downloads/netcdf-c-intel2017/download/netcdf-c-4.6.1/libsrc4/nc4attr.c:566: undefined reference to
H5Adelete’
make: *** [CCTM_v521.exe] Error 1
ERROR while running make command
endif
else if ( 0 ) then
endif
mv Makefile Makefile.intel2017.1.132
mv: ‘Makefile’ and ‘Makefile.intel2017.1.132’ are the same file
if ( -e Makefile.intel2017.1.132 && -e Makefile ) rm Makefile
rm Makefile
ln -s Makefile.intel2017.1.132 Makefile
if ( 0 != 0 ) then
if ( -e /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/scripts/BLD_CCTM_v521_intel2017.1.132/CCTM_v521.cfg ) then
echo >>> previous CCTM_v521.cfg exists, re-naming to CCTM_v521.cfg.old <<<
previous CCTM_v521.cfg exists, re-naming to CCTM_v521.cfg.old <<<
mv /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/scripts/BLD_CCTM_v521_intel2017.1.132/CCTM_v521.cfg /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/scripts/BLD_CCTM_v521_intel2017.1.132/CCTM_v521.cfg.old
endif
mv CCTM_v521.cfg.bld /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/scripts/BLD_CCTM_v521_intel2017.1.132/CCTM_v521.cfg
exit
And here is the environment settings in my config_cmaq.csh script:
#> I/O API, netCDF, and MPI library locations
setenv IOAPI_MOD_DIR /usr/local/usrapps/fgarcia4/ioapi-3.1-intel2017.1.132/Linux2_x86_64ifort #> I/O API precompiled modules
setenv IOAPI_INCL_DIR /usr/local/usrapps/fgarcia4/ioapi-3.1-intel2017.1.132/ioapi #> I/O API include header files
setenv IOAPI_LIB_DIR /usr/local/usrapps/fgarcia4/ioapi-3.1-intel2017.1.132/Linux2_x86_64ifort #> I/O API libraries
setenv NETCDF_LIB_DIR /usr/local/usrapps/fgarcia4/netcdf-c-4.6.1-intel2017/lib #> netCDF directory path
setenv NETCDF_INCL_DIR /usr/local/usrapps/fgarcia4/netcdf-c-4.6.1-intel2017/include #> netCDF directory path
setenv MPI_LIB_DIR /opt/intel/compilers_and_libraries_2018/linux/mpi/intel64/bin #> MPI directory path
setenv MPI_INC /opt/intel/compilers_and_libraries_2018/linux/mpi/intel64/include #> MPI Include file directory path # I have added it
setenv INC_MPI /opt/intel/compilers_and_libraries_2018/linux/mpi/intel64/include
#> Compiler Aliases and Flags
setenv myFC mpiifort
setenv myCC icc
setenv myFSTD "-O3 -fno-alias -mp1 -fp-model source"
setenv myDBG "-O0 -g -check bounds -check uninit -fpe0 -fno-alias -ftrapuv -traceback"
setenv myLINK_FLAG -qopenmp
setenv myFFLAGS "-fixed -132 -O1 -qoverride-limits -fno-alias -mp1 -fp-model precise"
setenv myFRFLAGS "-free -O1 -fno-alias -mp1 -fp-model precise"
setenv myCFLAGS "-O2"
#setenv extra_lib "-lcurl"
setenv extra_lib "-L/$H5DIR/lib -lhdf5_hl -lhdf5 -lz -L/$CURLDIR/lib -lcurl"
setenv mpi_lib -lmpich #> No Library specification needed for mpiifort
#> -lmpich for mvapich
#> -lmpi for openmpi # James 5.0.1 script
It would be great if anyone can help me. I badly need help. I appreciate your help.
Thanks,
Sadia