Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Trouble Getting Started

I am having trouble building CCSM and was wondering if anyone
could offer a suggestion? I am following the user’s guide and
after all the files are in place I am trying the validation steps.
I am assuming that my machine name should be generic_linux.
When I try the test install I get through generating resolved
build script, batch run script and it lists the path with

TER.01a.T31_gx3v5.B.generic_linux.110447/
TER.01a.T31_gx3v5.B.generic_linux.110447.generic_linux.build

and

TER.01a.T31_gx3v5.B.generic_linux.110447/
TER.01a.T31_gx3v5.B.generic_linux.110447.generic_linux.run

but then it tries to add an env_mach.anchorage to that path and
I get an error that there is no such file or directory - I can’t find the word
anchorage in any of the scripts though so I don’t know why it’s
trying that machine..

Then is says
cannot stat ‘TER.01a.T31_gx3v5.B.generic_linux.110447.generic_linux.run’



I’m starting to get frustrated!!
 
KrisF said:
I am having trouble building CCSM and was wondering if anyone
could offer a suggestion? I am following the user’s guide and
after all the files are in place I am trying the validation steps.
I am assuming that my machine name should be generic_linux.
When I try the test install I get through generating resolved
build script, batch run script and it lists the path with

TER.01a.T31_gx3v5.B.generic_linux.110447/
TER.01a.T31_gx3v5.B.generic_linux.110447.generic_linux.build

and

TER.01a.T31_gx3v5.B.generic_linux.110447/
TER.01a.T31_gx3v5.B.generic_linux.110447.generic_linux.run

but then it tries to add an env_mach.anchorage to that path and
I get an error that there is no such file or directory - I can’t find the word
anchorage in any of the scripts though so I don’t know why it’s
trying that machine..

Then is says
cannot stat ‘TER.01a.T31_gx3v5.B.generic_linux.110447.generic_linux.run’



I’m starting to get frustrated!!

Hello,

You forget to change your $mach in batch.linux.generic_linux.

1) Edit batch.linux.generic_linux

2) The line 2 is like:
set mach = anchorage

You should change to:
set mach = generic_linux

3) Save and quit the file

4) Run create_test script again


I think this file is originally copied from batch.linux.anchorage.
There is another documentation called CCSM3.0 Scripts Tutorial. If you haven't read it, I think it's a good idea to get it.


Good luck! :)

-odden
 

dmalav@cdac_in

New Member
Hello,
I am trying to build ccsm3 on my linux machine with intel compiler. During build i am getting this error.


$ ./case1.generic_linux.build
-------------------------------------------------------------------------
Preparing T42_gx1v3 component models for execution
-------------------------------------------------------------------------
- Create execution directories for atm,cpl,lnd,ice,ocn
- If a restart run then copy restart files into executable directory
ccsm_getrestart: get /home/deepti/case1 restarts from /ptmp/deepti/archive/case1 /restart
- Check validity of configuration
- Determine if build must happen (env variable BLDTYPE)
- Build flag (BLDTYPE) is TRUE
- Build Libraries: esmf, mph, mct
Tue Jun 24 02:43:46 IST 2008 esmf.buildlib.080624-024346
Tue Jun 24 02:43:47 IST 2008 mph.buildlib.080624-024346
Tue Jun 24 02:43:48 IST 2008 mct.buildlib.080624-024346
- Create model directories for each platform
- Determine if models must be rebuilt
- Build model executables, create namelist files, prestage input data
Tue Jun 24 02:43:49 IST 2008 /home/deepti/case1/cpl/cpl.log.080624-024346
Tue Jun 24 02:43:49 IST 2008 /home/deepti/case1/cpl/cpl.buildexe.080624-024346
Tue Jun 24 02:43:50 IST 2008 /home/deepti/case1/ice/ice.log.080624-024346
Tue Jun 24 02:43:50 IST 2008 /home/deepti/case1/ice/ice.buildexe.080624-024346
Tue Jun 24 02:43:51 IST 2008 /home/deepti/case1/lnd/lnd.log.080624-024346
Tue Jun 24 02:43:51 IST 2008 /home/deepti/case1/lnd/lnd.buildexe.080624-024346
Tue Jun 24 02:43:52 IST 2008 /home/deepti/case1/ocn/ocn.log.080624-024346
Tue Jun 24 02:43:52 IST 2008 /home/deepti/case1/ocn/ocn.buildexe.080624-024346
ERROR: pop.buildexe.csh failed, see ocn.buildexe.080624-024346
ERROR: cat /home/deepti/case1/ocn/ocn.buildexe.080624-024346



$ cat /home/deepti/case1/ocn/ocn.buildexe.080622-040737

-------------------------------------------------------------------------
a. Build an executable in /home/deepti/case1/ocn/obj
-------------------------------------------------------------------------
-------------------------------------------------------------------------
a.1 Calculate processor tiling based on 24
-------------------------------------------------------------------------
-----------------------------------------------------------------
a2. creating the internal directory structure
-----------------------------------------------------------------
-----------------------------------------------------------------
a3. create model_size.F in /home/deepti/case1/ocn/obj/source, first computing NT
-----------------------------------------------------------------
-----------------------------------------------------------------
ocn.iage.setup.csh : setting nt
-----------------------------------------------------------------

-----------------------------------------------------------------
copy the necessary files into $source_dir
-----------------------------------------------------------------
cp: No match.
cp: No match.
-----------------------------------------------------------------
a4. compile and copy the executable into /home/deepti/case1/ocn directory
-----------------------------------------------------------------
mpif90 -I/share/apps/intel/mpich2_intel/include -I/home/deepti/case1/lib/includ e -I/home/deepti/netcdf_INTEL/netcdf-3.6.1/include -I/home/deepti/case1/ocn/obj/ source -c -r8 -i4 -DLINUX -DPGF90 -DNO_SHR_VMATH -DLINUX -DPOSIX -Dimpvmix -Dc oupled -DNPROC_X=4 -DNPROC_Y=6 /home/deepti/case1/ocn/obj/source/forcing_coupled .F
fortcom: Error: forcing_coupled.F, line 1363: This name does not have a type, an d must have an explicit type. [C0ALLCPL_INTERFACE_CONTRACTSEND]
QICE = c0all
------------------^
fortcom: Warning: forcing_coupled.F, line 206: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [SMF]
subroutine init_coupled(SMF, SMFT, STF, SHF_QSW, lsmft_avail)
------------------------------^
fortcom: Warning: forcing_coupled.F, line 206: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [SMFT]
subroutine init_coupled(SMF, SMFT, STF, SHF_QSW, lsmft_avail)
-----------------------------------^
fortcom: Warning: forcing_coupled.F, line 206: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [STF]
subroutine init_coupled(SMF, SMFT, STF, SHF_QSW, lsmft_avail)
-----------------------------------------^
fortcom: Warning: forcing_coupled.F, line 206: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [SHF_QSW]
subroutine init_coupled(SMF, SMFT, STF, SHF_QSW, lsmft_avail)
----------------------------------------------^
compilation aborted for /home/deepti/case1/ocn/obj/source/forcing_coupled.F (cod e 1)
gmake: *** [forcing_coupled.o] Error 1

Can you please suggest me where the problem is ? Why it is showing the problem in code ? I don’t know that what should be the data type I must specify to resolve the problem.

Thanks & Regards
Deepti
 
Thank you - that got me a little further into the
build. Now I get through esmf OK but mph generates
errors.
GF90-S-0012-Value required for command line switch: -idir
PGF90-S-0011-Unrecognized command line switch: -I/home/krisf/TBR.01a.T31_gx3v5.B.generic_linux.155047/lib/include
PGF90-S-0012-Value required for command line switch: -idir
PGF90-S-0011-Unrecognized command line switch: -c

There are just so many levels of files setting env variables
that I can't find specific commands.
 
KrisF said:
Thank you - that got me a little further into the
build. Now I get through esmf OK but mph generates
errors.
GF90-S-0012-Value required for command line switch: -idir
PGF90-S-0011-Unrecognized command line switch: -I/home/krisf/TBR.01a.T31_gx3v5.B.generic_linux.155047/lib/include
PGF90-S-0012-Value required for command line switch: -idir
PGF90-S-0011-Unrecognized command line switch: -c

There are just so many levels of files setting env variables
that I can't find specific commands.

I think the problem may be in your Marco.Linux. You didn't correctly set the options for mpi or PGF compiler. I don't know which machine you are working on. You can post your Marco.Linux with your compiler version and hardware information. That can help someone who would like to slove this problem.
 
Top