dyjbean@gmail_com
New Member
hi,
i'm compiling cesm1_2_1 in our workstation, after i have configured config_machines.xml,config_compilers.xml. i made a test
$./create_newcase -case mycesmtest -res f19_g16 -compset X -mach shuguang
then the mycesmtest directory appeared, i used ./cesm_setup command to make my configuration, but when i used
./mycesmtest.build, there came the following result:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CESM mycesmtest clean_build FINISHED SUCCESSFULLY
[douyj@node31 mycesmtest]$ ./mycesmtest.build
-------------------------------------------------------------------------
CESM BUILDNML SCRIPT STARTING
- To prestage restarts, untar a restart.tar file into /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/run
infile is /public/home/douyj/wks_dyj/cesm1_2_1/scripts/mycesmtest/Buildconf/cplconf/cesm_namelist
CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM PRESTAGE SCRIPT STARTING
- Case input data directory, DIN_LOC_ROOT, is /public/home/douyj/wks_dyj/cesm1_2_1/inputdata
- Checking the existence of input datasets in DIN_LOC_ROOT
CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM BUILDEXE SCRIPT STARTING
COMPILER is intel
- Build Libraries: mct gptl pio csm_share
Wed Apr 9 16:29:45 CST 2014 /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
ERROR: buildlib.mct failed, see /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
ERROR: cat /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
then i checked the log file,
$ cat /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
the content showed as follows:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Wed Apr 9 22:47:37 CST 2014 /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-224730
Copying source to CCSM EXEROOT...
New build of MCT
Running configure...
for OS=LINUX MACH=shuguang
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/public/home/douyj/wks_dyj/cesm1_2_1/scripts/mycesmtest/Tools/mkSrcfiles
cp -f /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/Filepath /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/Deppath
/public/home/douyj/wks_dyj/cesm1_2_1/scripts/mycesmtest/Tools/mkDepends Deppath Srcfiles > /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/Depends
cd /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct;
/public/home/douyj/wks_dyj/cesm1_2_1/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/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/soft/netcdf-4.2/include -I/public/software/mpi/openmpi-145-intel/include -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mpeu -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/gptl -I/public/home/douyj/wks_dyj/cesm1_2_1/models/utils/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/lib/include" CPPDEFS=" -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DLINUX -DCPRINTEL -DHAVE_SLASHPROC" CFLAGS="-O2 -fp-model precise -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/soft/netcdf-4.2/include -I/public/software/mpi/openmpi-145-intel/include -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mpeu -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/gptl -I/public/home/douyj/wks_dyj/cesm1_2_1/models/utils/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/lib/include" NETCDF_PATH=/public/home/douyj/soft/netcdf-4.2 LDFLAGS="" LIBS="-L/public/home/douyj/soft/netcdf-4.2/lib @NC_FLIBS@" --srcdir /public/home/douyj/wks_dyj/cesm1_2_1/models/utils/mct
checking whether the C compiler works... no
configure: error: in `/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct':
configure: error: C compiler cannot create executables
See `config.log' for more details
gmake: *** [/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/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.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
i found /public/home/douyj/wks_dyj/cesm1_2_1/models/utils/mct/configure can configure individually such as:
./configure CC="icc " FC="ifort " MPICC="mpicc " MPIFC="mpif90 "
didn't generate error as the above,but combined with the behind parameters, cannot detect the C compiler, it's so weird.
can you give me some advices?
thanks
i'm compiling cesm1_2_1 in our workstation, after i have configured config_machines.xml,config_compilers.xml. i made a test
$./create_newcase -case mycesmtest -res f19_g16 -compset X -mach shuguang
then the mycesmtest directory appeared, i used ./cesm_setup command to make my configuration, but when i used
./mycesmtest.build, there came the following result:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CESM mycesmtest clean_build FINISHED SUCCESSFULLY
[douyj@node31 mycesmtest]$ ./mycesmtest.build
-------------------------------------------------------------------------
CESM BUILDNML SCRIPT STARTING
- To prestage restarts, untar a restart.tar file into /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/run
infile is /public/home/douyj/wks_dyj/cesm1_2_1/scripts/mycesmtest/Buildconf/cplconf/cesm_namelist
CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM PRESTAGE SCRIPT STARTING
- Case input data directory, DIN_LOC_ROOT, is /public/home/douyj/wks_dyj/cesm1_2_1/inputdata
- Checking the existence of input datasets in DIN_LOC_ROOT
CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM BUILDEXE SCRIPT STARTING
COMPILER is intel
- Build Libraries: mct gptl pio csm_share
Wed Apr 9 16:29:45 CST 2014 /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
ERROR: buildlib.mct failed, see /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
ERROR: cat /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
then i checked the log file,
$ cat /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-162938
the content showed as follows:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Wed Apr 9 22:47:37 CST 2014 /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct.bldlog.140409-224730
Copying source to CCSM EXEROOT...
New build of MCT
Running configure...
for OS=LINUX MACH=shuguang
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/public/home/douyj/wks_dyj/cesm1_2_1/scripts/mycesmtest/Tools/mkSrcfiles
cp -f /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/Filepath /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/Deppath
/public/home/douyj/wks_dyj/cesm1_2_1/scripts/mycesmtest/Tools/mkDepends Deppath Srcfiles > /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/Depends
cd /public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct;
/public/home/douyj/wks_dyj/cesm1_2_1/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/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/soft/netcdf-4.2/include -I/public/software/mpi/openmpi-145-intel/include -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mpeu -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/gptl -I/public/home/douyj/wks_dyj/cesm1_2_1/models/utils/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/lib/include" CPPDEFS=" -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DLINUX -DCPRINTEL -DHAVE_SLASHPROC" CFLAGS="-O2 -fp-model precise -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/soft/netcdf-4.2/include -I/public/software/mpi/openmpi-145-intel/include -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mct -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct/mpeu -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/gptl -I/public/home/douyj/wks_dyj/cesm1_2_1/models/utils/pio -I/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/lib/include" NETCDF_PATH=/public/home/douyj/soft/netcdf-4.2 LDFLAGS="" LIBS="-L/public/home/douyj/soft/netcdf-4.2/lib @NC_FLIBS@" --srcdir /public/home/douyj/wks_dyj/cesm1_2_1/models/utils/mct
checking whether the C compiler works... no
configure: error: in `/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/bld/mct':
configure: error: C compiler cannot create executables
See `config.log' for more details
gmake: *** [/public/home/douyj/wks_dyj/cesm1_2_1/mycesmtest/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.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
i found /public/home/douyj/wks_dyj/cesm1_2_1/models/utils/mct/configure can configure individually such as:
./configure CC="icc " FC="ifort " MPICC="mpicc " MPIFC="mpif90 "
didn't generate error as the above,but combined with the behind parameters, cannot detect the C compiler, it's so weird.
can you give me some advices?
thanks