[MITgcm-support] Re: No Subject

Ed Hill ed at eh3.com
Mon May 3 11:07:27 EDT 2004


On Mon, 2004-05-03 at 09:49, prosperi at wicc.weizmann.ac.il wrote:
> Hi Ed!!
> Thanks a lot for your answer but, still, it's not working with
> 
> CPP='/lib/cpp -P'
> 
> CPP='cpp'
> CPP='cpp -P'
> 
> with or without ''
> 
> I substitute in the genmake2
>  #include 'netcdf.inc' 
> 
>  with all the path
> 
> #include '/usr/netcdf-3.5.0/include/netcdf.inc'
> 
> because even if I modified the PATH variable adding the netcdf paths, it 
> wasn't able to find the netcdf.inc.
> 
> I even switched to the bash shell but I've still the problem..here the 
> outputs:
> 
> bash$  ../../../tools/genmake2  -mods ../code -of 
> ../../../tools/build_options/osf1_alpha_g77mio
> 
> 
> 
> GENMAKE :
>  
> A program for GENerating MAKEfiles for the MITgcm project.  For a
> quick list of options, use "genmake -h" or for more detail see:
>  
>   http://mitgcm.org/devel_HOWTO/
>  
> ===  Processing options files and arguments  ===
>   getting local config information:  none found
> Warning:  ROOTDIR was not specified but there appears to be a copy of 
> MITgcm at
> "../../.." so we'll try it.
>   getting OPTFILE information:
>     using OPTFILE="../../../tools/build_options/osf1_alpha_g77mio"
>   getting AD_OPTFILE information:
>     using AD_OPTFILE="../../../tools/adjoint_options/adjoint_default"
>  
> ===  Checking system libraries  ===
>   Do we have the system() command using g77...  yes
>   Do we have the fdate() command using g77...  yes
>   Can we call simple C routines (here, "cloc()") using g77...  no
>   Can we create NetCDF-enabled binaries...  no
>  
> ===  Setting defaults  ===
>   Adding MODS directories:   ../code
>   Making source files in eesupp from templates
>   Making source files in exch2 from  templates
>  
> ===  Determining package settings  ===
>   getting package dependency info from  ../../../pkg/pkg_depend
>   checking default package list:
>     using PDEFAULT="../code/packages.conf"
>     before group expansion packages are:  oceanic -kpp -gmredi cd_code
>     replacing "oceanic" with:   gfd gmredi kpp
>     replacing "gfd" with:   mom_fluxform mom_vecinv generic_advdiff debug 
> mdsio
> rw monitor
>     after group expansion packages are:   mom_fluxform mom_vecinv 
> generic_advdiff debug mdsio rw monitor gmredi kpp -kpp -gmredi cd_code
>   applying DISABLE settings
>   applying ENABLE settings
>     packages are:   cd_code debug generic_advdiff mdsio mom_fluxform 
> mom_vecinv
> monitor rw
>   applying package dependency rules
>     packages are:   cd_code debug generic_advdiff mdsio mom_fluxform 
> mom_vecinv
> monitor rw
>   Adding STANDARDDIRS
>   Searching for *OPTIONS.h files in order to warn about the presence
>     of "#define "-type statements that are no longer allowed:
>     found CPP_OPTIONS="./CPP_OPTIONS.h"
>     found CPP_EEOPTIONS="./CPP_EEOPTIONS.h"
>   Creating the list of files for the adjoint compiler.
>  
> ===  Creating the Makefile  ===
>   setting INCLUDES
>   Determining the list of source and include files
>   Writing makefile: Makefile
>   Add the source list for AD code generation
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> bash$make depend 
> 
> 
> 
> .
> .
> .
> .
> ../../../tools/f90mkdepend >> Makefile
> echo: No match.
> rm -f makedepend.out
> 
> and 
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> bash$make 
> 
> after the creation of numerouses object files
> 
> mdsio_readfield.F: In subroutine `mdsreadfield':
> mdsio_readfield.F:71: warning: unused variable `npe'
> mdsio_readfield.F:71: warning: unused variable `jg_io__'
> mdsio_readfield.F:71: warning: unused variable `ig_io__'
> mdsio_readfield.F:69: warning: `globalfile' might be used uninitialized in 
> this
> function
> mdsio_readfield.F: In subroutine `passtors':
> mdsio_readfield.F:458: warning:
>               call PASStoRS( local,arr,k,nNz,mythid )
>                    1
> mdsio_readfield.F:484: (continued):
>          subroutine passToRS(local,arr,k,nNz,mythid)
>                     2
> Argument #2 (named `arr') of `passtors' is one precision at (2) but is 
> some other precision at (1) [info -f g77 M GLOBALS]
> mdsio_readfield.F: In subroutine `passtorl':
> mdsio_readfield.F:460: warning:
>               call PASStoRL( local,arr,k,nNz,mythid )
>                    1
> mdsio_readfield.F:504: (continued):
>          subroutine passToRL(local,arr,k,nNz,mythid)
>                     2
> Argument #2 (named `arr') of `passtorl' is one precision at (2) but is 
> some other precision at (1) [info -f g77 M GLOBALS]
> g77 -Wimplicit -Wunused -O -Wuninitialized -c mdsio_readfield_loc.F
> g77 -Wimplicit -Wunused -O -Wuninitialized -c mdsio_readtile.F
> g77 -Wimplicit -Wunused -O -Wuninitialized -c mdsio_readvector.F
> g77 -Wimplicit -Wunused -O -Wuninitialized -c mdsio_reclen.F
> mdsio_reclen.F: In function `mds_reclen':
> mdsio_reclen.F:29:
>           MDS_RECLEN=WORDLENGTH*nnn
>                      ^
> Invalid declaration of or reference to symbol `wordlength' at (^) 
> [initially seen at (^)]
> mdsio_reclen.F:6: warning: `mds_reclen__' might be used uninitialized in 
> this function
> *** Exit 1
> Stop.


Hi Davide,

Thanks for the detailed bug report! 

Heres a few comments:

 1) Please don't worry about NetCDF.  Its not required for the 
    model to run and we can ignore it for now.

 2) Can you verify that you have a working "cpp" installed?

 3) Can you check whether you have a vendor-supplied version of
    make or Gnu make?  Gnu make (or "gmake") is much better and 
    should be installed if at all possible.

 4) I think you have a "make" problem.  Are the "small f" (*.f)
    files properly generated by the "make depend" step (that is,
    are the *.F files run through CPP to produce *.f files)?

 5) If you continue to have problems, one possibility is to let 
    me have an account on the machine and it'll be quicker/easier 
    for me to track down the problem(s).

Good luck!
Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20040503/084fad91/attachment.sig>


More information about the MITgcm-support mailing list