[MITgcm-support] MITgcm on intel mac 10.5.7

Ayah Lazar ayahlazar at gmail.com
Sun Jul 26 11:32:35 EDT 2009


Hello Jody,
Thanks for your answer, Apparently, I use /usr/bin/make as well.

What fortran compiler do you use? I using gfortran. Maybe that is  a
problem.

Could you please send me the optfile you are using?

Best,
Ayah

On Sun, Jul 26, 2009 at 6:08 PM, Klymak Jody <jklymak at uvic.ca> wrote:

> Hi Ayah,
> I'd do a "which make" - maybe you have an odd version of make in your path?
>  I use /usr/bin/make on 10.5.7 w/o difficulty. Otherwise my setup is very
> similar to yours.
>
> Cheers,  Jody
>
> On 26-Jul-09, at 4:43 AM, 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<http://prdownloads.sourceforge.net/hpc/gcc-leopard-intel-bin.tar.gz?download>
> *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
>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20090726/a7e332fa/attachment.htm>


More information about the MITgcm-support mailing list