[MITgcm-support] MITgcm on snow leopard

Yuan Lian lian at ashimaresearch.com
Tue Nov 2 17:40:31 EDT 2010


Hi Martin,

Just saw an easier way to enable 64bit
http://support.apple.com/kb/HT3773

Yuan


On 11/2/10 1:19 PM, Yuan Lian wrote:
> Yes download the gcc 4.6 (gcc and gfortran for snow leopard) from 
> http://hpc.sourceforge.net/, then
> extract the packages. Do "sudo cp -r ~/Downloads/usr /" (assuming you 
> extract the packages
> in Downloads folder". This will update the gfortran to latest version. 
> gcc will still be default one
> from Xcode 3.2 but you can force the compiler to use the experimental 
> one. In my case I used
> /usr/bin/gcc, it will work just fine.
>
> Yuan
>
>
> On 11/2/10 9:21 AM, Menemenlis, Dimitris (3248) wrote:
>> Same here.  When I switched to Snow Leopard I did following to run 
>> MITgcm:
>>
>> - installed Xcode 3.2 from Mac OS X Install DVD, Optional Installs, 
>> Xcode.mpkg
>> - installed new gcc and gfortran binaries from
>>     http://hpc.sourceforge.net/
>>     
>> http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz?download
>>     
>> http://prdownloads.sourceforge.net/hpc/gfortran-snwleo-intel-bin.tar.gz?download
>>
>> I am currently running following version:
>>
>> dmenemen$ gfortran --version
>> GNU Fortran (GCC) 4.5.0 20090910 (experimental)
>> Copyright (C) 2009 Free Software Foundation, Inc.
>>
>> Everything works with default optfile and I only use the Mac for code 
>> development
>> so I haven't given performance much thought.
>>
>> D.
>>
>> On Nov 2, 2010, at 9:06 AM, Martin Losch wrote:
>>
>>> Hi Nico,
>>>
>>> I download my gfortran here:
>>> http://hpc.sourceforge.net
>>>
>>> but obviously some time ago, now there is gcc 4.6 on the above page:
>>>>> gfortran -v
>>> Using built-in specs.
>>> Target: i386-apple-darwin9.5.0
>>> Configured with: ../gcc-4.4-20081219/configure 
>>> --enable-languages=fortran : (reconfigured) 
>>> ../gcc-4.4-20081219/configure --enable-languages=c,c++,fortran
>>> Thread model: posix
>>> gcc version 4.4.0 20081219 (experimental) (GCC)
>>>
>>> M.
>>>
>>> On Nov 2, 2010, at 3:36 PM, Nico Wienders wrote:
>>>
>>>> What version of gfortran do you all use?
>>>> I got mine here
>>>> http://www.macresearch.org/gfortran-leopard
>>>>
>>>>
>>>> =>  My real question is rather why i can't access etime, cloc, ...
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>> On Nov 1, 2010, at 5:08 PM, Menemenlis, Dimitris (3248) wrote:
>>>>
>>>>> Checked in opt file works fine for me?
>>>>>
>>>>> Dimitris Menemenlis
>>>>> 818-625-6498
>>>>>
>>>>> On Nov 1, 2010, at 2:05 PM, "Nico Wienders"<wienders at fsu.edu>  wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> My turn to try gfortran on snow leopard 64.
>>>>>>
>>>>>> Here is my (plump) OPT file. And the errors i get.
>>>>>> Can't figure out what i do wrong. Thank you. Cheers.
>>>>>>
>>>>>>
>>>>>> CPP='/usr/bin/cpp -traditional -P'
>>>>>> FC='/usr/local/bin/gfortran'
>>>>>> CC='/usr/bin/gcc'
>>>>>> LINK='/usr/local/bin/gfortran'
>>>>>> CFLAGS='arch i386'
>>>>>> FFLAGS='-qfixed=132 -qsuffix=f=for'
>>>>>> FOPTIM='-O3'
>>>>>> NOOPTFLAGS='-O0'
>>>>>> EXTENDED_SRC_FLAG='-ffixed-line-length-132'
>>>>>> SKIP_NETCDF_CHECK=t
>>>>>> S64='$(TOOLSDIR)/set64bitConst.sh'
>>>>>> MAKEDEPEND='/usr/X11/bin/makedepend'
>>>>>> DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DML_TERMINATOR'
>>>>>> INCLUDES='-I/usr/local/include -I/sw/include'
>>>>>> LIBS='-L/sw/lib -L/usr/local/lib -lnetcdf'
>>>>>>
>>>>>>
>>>>>>
>>>>>> ===  Checking system libraries  ===
>>>>>>   Do we have the system() command using 
>>>>>> /usr/local/bin/gfortran...  yes
>>>>>>   Do we have the fdate() command using 
>>>>>> /usr/local/bin/gfortran...  yes
>>>>>>   Do we have the etime() command using 
>>>>>> /usr/local/bin/gfortran...  no
>>>>>>   Can we call simple C routines (here, "cloc()") using 
>>>>>> /usr/local/bin/gfortran...  no
>>>>>>   Can we unlimit the stack size using /usr/local/bin/gfortran...  no
>>>>>>   Can we register a signal handler using 
>>>>>> /usr/local/bin/gfortran...  no
>>>>>>   Can we use stat() through C calls...  no
>>>>>>   Can we create NetCDF-enabled binaries...  no
>>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Nico Wienders
>>>>
>>>> Florida State University  -  Earth, Ocean and Atmospheric Science  
>>>> -  OSB415
>>>> 117 N. Woodward Avenue, Tallahassee, FL 32306-4320 - wienders at fsu.edu
>>>> (850) 644-1987  (office)   |   (850) 294-3542 (cell)   |   (850) 
>>>> 644-2581 (fax)
>>>>
>>>> _______________________________________________
>>>> 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
>>
>> _______________________________________________
>> 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




More information about the MITgcm-support mailing list