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

error while building ccsm with intel compiler

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
 

dmalav@cdac_in

New Member
Thanks karthik
My problem is resolved when i checked the setting of all the paths and env variables.Now, i am stuck with another problem. Here is the output, when i execute the ccsm.

$ ./case1.generic_linux.run
/opt/maven/bin/etenv: Permission denied.
-------------------------------------------------------------------------
Preparing T42_gx1v3 component models for execution
-------------------------------------------------------------------------
- Create execution directories for atm,cpl,lnd,ice,ocn
mkdir: cannot create directory `/ptmp': Permission denied
cannot make /ptmp/deepti/archive/case1: Command not found.
- 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
Mon Jul 21 04:30:12 IST 2008 esmf.buildlib.080721-043012
Mon Jul 21 04:30:12 IST 2008 mph.buildlib.080721-043012
Mon Jul 21 04:30:12 IST 2008 mct.buildlib.080721-043012
- Create model directories for each platform
- Determine if models must be rebuilt
- Build model executables, create namelist files, prestage input data
Mon Jul 21 04:30:12 IST 2008 /home/deepti/case1/cpl/cpl.log.080721-043012
Mon Jul 21 04:30:12 IST 2008 /home/deepti/case1/cpl/cpl.buildexe.080721-043012
Mon Jul 21 04:30:13 IST 2008 /home/deepti/case1/ice/ice.log.080721-043012
Mon Jul 21 04:30:13 IST 2008 /home/deepti/case1/ice/ice.buildexe.080721-043012
Mon Jul 21 04:30:13 IST 2008 /home/deepti/case1/lnd/lnd.log.080721-043012
Mon Jul 21 04:30:13 IST 2008 /home/deepti/case1/lnd/lnd.buildexe.080721-043012
Mon Jul 21 04:30:13 IST 2008 /home/deepti/case1/ocn/ocn.log.080721-043012
Mon Jul 21 04:30:13 IST 2008 /home/deepti/case1/ocn/ocn.buildexe.080721-043012
Mon Jul 21 04:30:15 IST 2008 /home/deepti/case1/atm/atm.log.080721-043012
Mon Jul 21 04:30:15 IST 2008 /home/deepti/case1/atm/atm.buildexe.080721-043012
- Create MPH input file and link into all model dirs
- Create shr_msg_stdio chdir/stdin/stdout data file
-------------------------------------------------------------------------
- CCSM BUILD HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
skipping first model
COMP_ATM=cam
COMP_LND=clm
COMP_ICE=csim
COMP_OCN=pop
COMP_CPL=cpl
RAMP_CO2_START_YMD=00000000
PBS_NODEFILE: Undefined variable.

Actually,i dont want to use the PBS, i want it to be in interactive mode.Please help me to resolve this.
Thanks in advance.
Deepti
 
Hi Deepti,

PBS is a batch execution system. You might have got this error because there is perhaps no PBS system on your machine. If that is the case, just comment out the PBS option and execute directly using mpirun. Hopefully this should fix it.

Karthik
 
Top