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

compiling CAM3.1p1 on mac os X 10.4.3 using xlf95

Hi,
I met some problems when compiling CAM3.1p1 on mac os X 10.4.3 using xlf95

The error is

xlf95_r -lSystemStubs -qsuffix=f=F90 -I/usr/local/include -I/usr/include -I. -c -o volcemission.o /Volumes/HOME/zzbatmos/CAM3/cam1/models/atm/cam/src/physics/cam1/volcemission.F
"/Volumes/HOME/zzbatmos/CAM3/cam1/models/atm/cam/src/physics/cam1/volcemission.F", line 16.10: 1514-219 (S) Unable to access module symbol file for module shr_kind_mod. Check path and file permissions of file. Use association not done for this module.
1501-511 Compilation failed for file volcemission.F

the header of my Makefile is

UNAMES :=
ROOTDIR := /Volumes/HOME/zzbatmos/CAM3/cam1
EXENAME := /Volumes/HOME/zzbatmos/workplace/run
MODEL_EXEDIR := /Volumes/HOME/zzbatmos/CAM3
INC_NETCDF := /usr/local/netcdf/include
LIB_NETCDF := /usr/local/netcdf/lib
MOD_NETCDF :=
INC_MPI := /usr/local/include
LIB_MPI := /usr/local/lib
MPI_LIB_NAME := libfmpich
ESMF_ROOT := /Volumes/HOME/zzbatmos/CAM3/cam1/models/utils/esmf
ESMF_BLD := /Volumes/HOME/zzbatmos/workplace/bld/esmf
DEBUG := FALSE
SMP := FALSE
NESTED_OMP := FALSE
USER_FC := xlf95_r
USER_CC :=
USER_CPPDEFS :=
USER_CFLAGS :=
USER_FFLAGS := -lSystemStubs -qsuffix=f=F90 -I/usr/local/include -I/usr/include -I.
F_OPTIMIZATION_OVERRIDE :=
USER_LDFLAGS :=

ESMF_ARCH :=Darwin_xlf

can someone help me out of this problem?
Thanks a lot


==================================================
Zhang, Zhibo
Ph.D Candidate
Dept. of Atmospheric Sciences, Texas A&M Univ.
Work Phone: Email:
(979) 845-0177 zhibo_zhang@tamu.edu
==================================================
 

eaton

CSEG and Liaisons
The error message "Unable to access module symbol file for module shr_kind_mod." is issued because volcemission.F90 contains a statement "use shr_kind_mod ..." and in order to compile volcemission.F90 the compiler must be able to find the file shr_kind_mod.mod which results from compiling shr_kind_mod.F90. So look in the output from make to see whether or not shr_kind_mod.F90 was successfully compiled. If it was then make sure the file shr_kind_mod.mod is in a directory that the compiler knows to search for .mod files. If it wasn't you need to figure out why. Make sure that the Depends file which is generated by mkDepends contains a line that shows that volcemission.o depends on shr_kind_mod.o. That tells make to compile shr_kind_mod.F90 before compiling volcemission.F90 which ensures that the shr_kind_mod.mod file is available when it is needed.
 
I checked the "Depends" file , everything is fine
the model just doesnot want to compile the shr_kind_mod.F90
I don't know why.

I get all the files under bld directory by using
./cam1/models/atm/cam/bld/configure -test
-cam_bld=/Volumes/HOME/zzbatmos/workplace/bld
-esmf_bld=/Volumes/HOME/zzbatmos/workplace/bld/esmf
-cam_exe=/Volumes/HOME/zzbatmos/workplace/run
-cam_root=/Volumes/HOME/zzbatmos/CAM3/cam1
-nc_inc=/usr/local/include -nc_lib=/usr/local/lib
-mpi_inc=/usr/local/include -mpi_lib=/usr/local/lib
-cc=gcc -fc=xlf95_r -spmd
-fflags='-lSystemStubs -qsuffix=f=F90 -qnoextname -lpmpich
-I/usr/local/include -I/usr/include -I.'

any clues?
 
Top