yaozhixiong@foxmail_com
Member
Hi,I am tring to install cesm1_2_0 on bugaboo machine of westgrid. And, It failed when it was building a case with compset X. Here is my setting and error information: ***.bashrc***export PATH=/usr/local/mpi/openmpi-1.6.4/bin:$PATH
export PATH=/usr/local/netcdf-4.1.3/bin:$PATH
export PATH=/usr/local/nco-4.3.4/bin:$PATH ***env_mach_specific***set netcdf = /usr/local/netcdf-4.1.3
set openmpi = /usr/local/mpi/openmpi-1.6.4
setenv INC_NETCDF ${netcdf}/include
setenv LIB_NETCDF ${netcdf}/lib
setenv INC_MPI ${openmpi}/include
setenv LIB_MPI ${openmpi}/lib ***Macros***CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL
SLIBS+= -L$(LIB_NETCDF) -lnetcdf
CFLAGS:= -O2 -fp-model precise
CONFIG_ARGS:=
CXX_LDFLAGS:= -cxxlib
CXX_LINKER:=FORTRAN
ESMF_LIBDIR:=
FC_AUTO_R8:= -r8
FFLAGS:= -O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback
FFLAGS_NOOPT:= -O0
FIXEDFLAGS:= -fixed -132
FREEFLAGS:= -free
MPICC:= mpicc
MPICXX:= mpicxx
MPIFC:= mpif90
MPI_LIB_NAME:=
MPI_PATH:= /usr/local/mpi/openmpi-1.6.4
NETCDF_PATH:= /usr/local/netcdf-4.1.3
PNETCDF_PATH:=
SCC:= icc
SCXX:= icpc
SFC:= ifort
SUPPORTS_CXX:=TRUE
ifeq ($(DEBUG), TRUE)
FFLAGS += -g -CU -check pointers -fpe0
endif
ifeq ($(compile_threaded), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
endif
***error 1***pio.bldlog.131123-105539Copying source to CCSM EXEROOT...
New build of PIO
Running configure...
for OS=LINUX MACH=userdefined
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkSrcfiles
cp -f /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Filepath /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Deppath
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkDepends Deppath Srcfiles > /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Depends
cd /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio;
/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio/configure --enable-timing CC="icc " FC="ifort " MPICC="mpicc " MPIFC="mpif90 " FCFLAGS="-O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -free -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" CPPDEFS=" -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC" CFLAGS="-O2 -fp-model precise -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" NETCDF_PATH=/usr/local/netcdf-4.1.3 LDFLAGS="" LIBS="-L/usr/local/netcdf-4.1.3/lib -lnetcdf" --srcdir /global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether icc accepts -g... yes
checking for icc option to accept ISO C89... none needed
checking how to run the C preprocessor... icc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... yes
checking for Fortran flag to compile .F90 files... none
checking for Fortran flag needed to accept free-form source... none
checking for Fortran flag needed to accept 132 column source lines... none
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
checking for ftn... mpif90
checking for mpif.h... yes
checking for Fortran flag to compile .F90 files... (cached) none
checking for mpi.mod... yes
checking Fortran support for c_sizeof()... yes
checking MPI-IO support in MPI implementation... no
Full hostname= bugaboo.westgrid.ca
Hostname=bugaboo.westgrid.ca
Machine=x86_64
OS=Linux
checking Fortran 90 module extension... mod
checking Fortran 90 module inclusion flag... -I
using NETCDF_PATH from environment
checking for Fortran flag to compile .F90 files... (cached) none
checking for hdf5... yes
checking for H5open in -lhdf5... no
checking for H5Dclose in -lhdf5_hl... no
configure: Fortran not checked for yet
checking for netcdf... /usr/local/netcdf-4.1.3
checking for library containing nc_inq_libvers... -lnetcdf
checking for library containing NF_INQ_LIBVERS... no
configure: error: cannot find netCDF fortran library
gmake: *** [/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Makefile.conf] Error 1
cp: cannot stat `Makefile.conf': No such file or directory
Makefile:25: Makefile.conf: No such file or directory
gmake: *** No rule to make target `Makefile.conf'. Stop.
The error is: cannot find netCDF fortran library, so I add "-lnetcdff" in the SLIBS. There are "libnetcdf.a" and "libnetcdff.a" in the /usr/local/netcdf-4.1.3/lib directory.SLIBS+= -L$(LIB_NETCDF) -lnetcdf -lnetcdffBut, it is still wrong. Below is the error. ***error 2***mct.bldlog.131123-110356Copying source to CCSM EXEROOT...
New build of MCT
Running configure...
for OS=LINUX MACH=userdefined
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkSrcfiles
cp -f /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Filepath /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Deppath
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkDepends Deppath Srcfiles > /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Depends
cd /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct;
/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/mct/configure CC="icc " FC="ifort " MPICC="mpicc " MPIFC="mpif90 " FCFLAGS="-O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -free -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" CPPDEFS=" -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC" CFLAGS="-O2 -fp-model precise -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" NETCDF_PATH=/usr/local/netcdf-4.1.3 LDFLAGS="" LIBS="-L/usr/local/netcdf-4.1.3/lib -lnetcdf -lnetcdff" --srcdir /global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/mct
checking whether the C compiler works... no
configure: error: in `/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct':
configure: error: C compiler cannot create executables
See `config.log' for more details
gmake: *** [/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Makefile.conf] Error 77
cp: cannot stat `Makefile.conf': No such file or directory
Makefile:4: Makefile.conf: No such file or directory
gmake: *** No rule to make target `Makefile.conf'. Stop. Now, the error become a problem with C compiler. I do not know how to solve it.
Thank you very much.Best regards,zhixiong
export PATH=/usr/local/netcdf-4.1.3/bin:$PATH
export PATH=/usr/local/nco-4.3.4/bin:$PATH ***env_mach_specific***set netcdf = /usr/local/netcdf-4.1.3
set openmpi = /usr/local/mpi/openmpi-1.6.4
setenv INC_NETCDF ${netcdf}/include
setenv LIB_NETCDF ${netcdf}/lib
setenv INC_MPI ${openmpi}/include
setenv LIB_MPI ${openmpi}/lib ***Macros***CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL
SLIBS+= -L$(LIB_NETCDF) -lnetcdf
CFLAGS:= -O2 -fp-model precise
CONFIG_ARGS:=
CXX_LDFLAGS:= -cxxlib
CXX_LINKER:=FORTRAN
ESMF_LIBDIR:=
FC_AUTO_R8:= -r8
FFLAGS:= -O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback
FFLAGS_NOOPT:= -O0
FIXEDFLAGS:= -fixed -132
FREEFLAGS:= -free
MPICC:= mpicc
MPICXX:= mpicxx
MPIFC:= mpif90
MPI_LIB_NAME:=
MPI_PATH:= /usr/local/mpi/openmpi-1.6.4
NETCDF_PATH:= /usr/local/netcdf-4.1.3
PNETCDF_PATH:=
SCC:= icc
SCXX:= icpc
SFC:= ifort
SUPPORTS_CXX:=TRUE
ifeq ($(DEBUG), TRUE)
FFLAGS += -g -CU -check pointers -fpe0
endif
ifeq ($(compile_threaded), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
endif
***error 1***pio.bldlog.131123-105539Copying source to CCSM EXEROOT...
New build of PIO
Running configure...
for OS=LINUX MACH=userdefined
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkSrcfiles
cp -f /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Filepath /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Deppath
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkDepends Deppath Srcfiles > /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Depends
cd /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio;
/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio/configure --enable-timing CC="icc " FC="ifort " MPICC="mpicc " MPIFC="mpif90 " FCFLAGS="-O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -free -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" CPPDEFS=" -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC" CFLAGS="-O2 -fp-model precise -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" NETCDF_PATH=/usr/local/netcdf-4.1.3 LDFLAGS="" LIBS="-L/usr/local/netcdf-4.1.3/lib -lnetcdf" --srcdir /global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether icc accepts -g... yes
checking for icc option to accept ISO C89... none needed
checking how to run the C preprocessor... icc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... yes
checking for Fortran flag to compile .F90 files... none
checking for Fortran flag needed to accept free-form source... none
checking for Fortran flag needed to accept 132 column source lines... none
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
checking for ftn... mpif90
checking for mpif.h... yes
checking for Fortran flag to compile .F90 files... (cached) none
checking for mpi.mod... yes
checking Fortran support for c_sizeof()... yes
checking MPI-IO support in MPI implementation... no
Full hostname= bugaboo.westgrid.ca
Hostname=bugaboo.westgrid.ca
Machine=x86_64
OS=Linux
checking Fortran 90 module extension... mod
checking Fortran 90 module inclusion flag... -I
using NETCDF_PATH from environment
checking for Fortran flag to compile .F90 files... (cached) none
checking for hdf5... yes
checking for H5open in -lhdf5... no
checking for H5Dclose in -lhdf5_hl... no
configure: Fortran not checked for yet
checking for netcdf... /usr/local/netcdf-4.1.3
checking for library containing nc_inq_libvers... -lnetcdf
checking for library containing NF_INQ_LIBVERS... no
configure: error: cannot find netCDF fortran library
gmake: *** [/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio/Makefile.conf] Error 1
cp: cannot stat `Makefile.conf': No such file or directory
Makefile:25: Makefile.conf: No such file or directory
gmake: *** No rule to make target `Makefile.conf'. Stop.
The error is: cannot find netCDF fortran library, so I add "-lnetcdff" in the SLIBS. There are "libnetcdf.a" and "libnetcdff.a" in the /usr/local/netcdf-4.1.3/lib directory.SLIBS+= -L$(LIB_NETCDF) -lnetcdf -lnetcdffBut, it is still wrong. Below is the error. ***error 2***mct.bldlog.131123-110356Copying source to CCSM EXEROOT...
New build of MCT
Running configure...
for OS=LINUX MACH=userdefined
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkSrcfiles
cp -f /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Filepath /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Deppath
/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/Tools/mkDepends Deppath Srcfiles > /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Depends
cd /global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct;
/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/mct/configure CC="icc " FC="ifort " MPICC="mpicc " MPIFC="mpif90 " FCFLAGS="-O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -free -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" CPPDEFS=" -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC" CFLAGS="-O2 -fp-model precise -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/usr/local/netcdf-4.1.3/include -I/usr/local/mpi/openmpi-1.6.4/include -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mct -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/mpeu -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/gptl -I/global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/pio -I/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/lib/include" NETCDF_PATH=/usr/local/netcdf-4.1.3 LDFLAGS="" LIBS="-L/usr/local/netcdf-4.1.3/lib -lnetcdf -lnetcdff" --srcdir /global/scratch/zhixiong/CESM/cesm1_2_0/models/utils/mct
checking whether the C compiler works... no
configure: error: in `/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct':
configure: error: C compiler cannot create executables
See `config.log' for more details
gmake: *** [/global/scratch/zhixiong/CESM/cesm1_2_0/case_output/testx/bld/mct/Makefile.conf] Error 77
cp: cannot stat `Makefile.conf': No such file or directory
Makefile:4: Makefile.conf: No such file or directory
gmake: *** No rule to make target `Makefile.conf'. Stop. Now, the error become a problem with C compiler. I do not know how to solve it.
Thank you very much.Best regards,zhixiong