[ncl-install] Fwd: Have anybody installed ncarg on Mac OS 10.6

Mary Haley haley at ucar.edu
Tue Nov 10 10:54:23 MST 2009


Thanks Guanshan, glad this worked!  I've got this on my list to add  
recognition of the "-m32/64" option for WRAPIT.

--Mary

On Nov 9, 2009, at 4:36 PM, guangshan chen wrote:

> Hi Mary,
>
> Thanks for the hint. Now WRAPIT works with 64-bit compiler (gcc and  
> gfortran) in 32-bit ncl.
>
> Here is what I did:
> Searching "case Darwin" in WARPIT
>
> First coming:
>    if ($debug == 1 && ($f90c == g77 || $f90c == gfortran)) then      
> # GNU
>      set fopts = "$fopts -v -c -m32 -fno-common -ffortran-bounds- 
> check -fno-second-underscore"
>    else
>      set fopts = "$fopts -c -m32 -O -fno-common -fno-second- 
> underscore"
>
> Second coming:
>    if ($debug == 1) then
>      set cmd = "gcc $copts -c -m32 -fno-common -I${NCARG_ROOT}/ 
> include WRAPIT.c"
>      echo $cmd
>    else
>      set cmd = "gcc $copts -c  -m32 -fno-common -O -I${NCARG_ROOT}/ 
> include WRAPIT.c"
>
> Third coming:
>  case Darwin:                      # MacOSX
>    if (-e /sw/lib/libg2c.a) then
>      set cmd = "gcc -m32 -bundle -flat_namespace -undefined  
> suppress $ld_suffix -L/sw/lib -lg2c"
>    else
>      set cmd = "gcc -m32 -bundle -flat_namespace -undefined  
> suppress $ld_suffix"
>    endif
>    if ($f90c == gfortran) then     # gfortran compiler
>        set cmd = "$cmd -m32 -lgfortran"
>    endif
>    if ($f90c == g95) then          # g95 compiler
>      set cmd = "$cmd -m32 -lf95"
>    endif
>
>
> I like to build a 64-bit ncl for Snow leopard if I can get help  
> form you. But I only can do it at weekend. I have more free time.
>
> Guangshan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20091110/be633dea/attachment.html 


More information about the ncl-install mailing list