[cam-users] Problem(s) building CAM2.0.2 on Linux
Sam Iacobellis
iacob at crdmail.ucsd.edu
Mon Apr 26 17:03:23 MDT 2004
Hi,
I'm having a bit of difficulty building CAM2.0.2 on a linux workstation. I
have built and run CAM2.0.2 on a DEC Alpha with no problems, but I'm not
getting very far on the linux machine.
I issued the 'configure -test' command and all seemed fine at that point.
My problem appears when I go to issue the gmake command and get the
following message:
$gmake >! make.out
cat: Srcfiles: No such file or directory
Makefile:631: /home/iacob/CAM/cam1/models/atm/cam/camrun_sam/Depends: No
such file or directory
PGF90-F-0226-Can't find include file misc.h
(/home/iacob/CAM/cam1/models/lnd/clm2/src/main/clm_varpar.F90: 1)
PGF90/any Linux/x86 5.1-5: compilation aborted
gmake: *** [clm_varpar.o] Error 2
I have issued the configure and gmake commands from within the
directory that I am building the model and the file
misc.h is in this directory. I tried placing the 'misc.h'
file into my /usr/local/include directory and re-issued the gmake command.
The file misc.h was now accessible, but the build process shuts down once
the next include file was needed. I guess I could put all the include files
into the /usr/local/include directory, but I'm worried that would only be
a temporary fix as it looks like some parameter(s) are not set properly.
My guess is that the path used by gmake is not set correctly, but I'm
at a loss as to how to fix that without creating more problems.
I also tried using the supplied run script for linux (run-pc.csh) but
came up with the same problem.
The machine is a dual processor running RedHat Linux Enterprise
(WS version 3), kernel 2.4.21-9.0.3.ELsmp. I'm also using pgi and pgf90.
I have set the following environment variables:
CSMDATA=/home/iacob/CAM/inputdata
SHELL=/bin/tcsh
CAM_ROOT=/home/iacob/CAM/cam1
CPPFLAGS=-DNDEBUG -DpgiFortran
USER_FC=/usr/pgi/linux86/5.1/bin/pgf90
PGI=/usr/pgi
PATH=./:/usr/local/lib:/usr/local/include:/usr/pgi/linux86/5.1/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/X11R6/bin
CXX=/usr/bin/g++
SHLVL=2
OSTYPE=linux
CFLAGS=-O
FC=/usr/pgi/linux86/5.1/bin/pgf90
USER_CC=/usr/pgi/linux86/5.1/bin/pgcc
OMP_NUM_THREADS=2
CC=/usr/bin/gcc
FFLAGS=-O -w
I am following the same steps as I did when I built CAM2 on the DEC Alpha,
but to no avail.
Thanks for your time and any help,
Sam Iacobellis
More information about the cam-users
mailing list