[MITgcm-support] MITgcm on intel mac 10.5.7

Martin Losch Martin.Losch at awi.de
Mon Jul 27 05:01:53 EDT 2009


Not very elegant (as the genmake2 should do this automatically), but  
try putting
	    FS='for'
	    FS90='fr9'
into your build_options file. This should force genmake2 to use these  
endings instead of .f and .f90
M.

On Jul 26, 2009, at 1:43 PM, Ayah Lazar wrote:

> Hello,
> I am trying to run the MIT gcm on my mac (Intel Core 2 Duo with OSX  
> 10.5.7).
> I installed gcc-leopard-intel-bin and the MITgcm (v61).
>
> I am not sure if it matters, but the path is /model/MITgcm and the  
> gfortran is under /model/usr/local/bin. first I tried when the  
> fortran and the gcm were both in my Utilities folder and I thought  
> that might be the reason for the problem (However the error is the  
> same).
>
> when writing:
> ------------------
> ../../tools/genmake2 -mods=../code -of ../../tools/build_options/ 
> darwin_ia32_gfortran_ayah.txt
>
>
> I get the following notice (the optfile is appended below):
> ---------------------------------------------------------------------------
> 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/ 
> darwin_ia32_gfortran_ayah.txt"
>   getting AD_OPTFILE information:
>     using AD_OPTFILE="../../tools/adjoint_options/adjoint_default"
> ERROR: Your file system cannot distinguish between *.F and *.f files
>   (fails the "make/ln" test) and this program cannot find a suitable
>   replacement extension.  Please try a different build environment or
>   contact the <MITgcm-support at mitgcm.org> list for help.
>
> Thank you very much,
> Ayah
>
>
> THE OPTFILE:
> -----------------------
> #!/bin/bash
>
> # $Header: /u/gcmpack/MITgcm/tools/build_options/ 
> darwin_ia32_gfortran,v 1.5 2009/04/02 18:28:31 dfer Exp $
> #
> # tested on MacBook Pro
> # on 28-Nov-2006
>
> CPP='/model/usr/local/bin/cpp -traditional -P'
> FC=/model/usr/local/bin/gfortran
> CC=/model/usr/local/bin/gcc
> LINK=gfortran
> NOOPTFLAGS='-O0'
> EXTENDED_SRC_FLAG='-ffixed-line-length-132'
>
> S64='$(TOOLSDIR)/set64bitConst.sh'
> #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
> #EH3 MAKEDEPEND=makedepend
> DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
> INCLUDEDIRS='/sw/include'
> INCLUDES='-I/sw/include'
> LIBS='-L/sw/lib'
>
> ##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/ 
> include'
> ##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include'
> ##LIBS='-L/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/lib'
>
> ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X ## _"
> ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
> ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
>
> #  For IEEE, use the "-ffloat-store" option
> if test "x$IEEE" = x ; then
>     FFLAGS='-Wunused -Wuninitialized -fsecond-underscore - 
> fconvert=big-endian'
>     FOPTIM='-O3 -funroll-loops'
>     NOOPTFLAGS='-O2 -funroll-loops'
>     NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F'
> else
>     FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big- 
> endian'
>     FOPTIM='-O0'
> fi
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list