[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20040306: build netcdf 3.5.1 on my Mac running OS 10.3.2 (fwd)
- Subject: Re: 20040306: build netcdf 3.5.1 on my Mac running OS 10.3.2 (fwd)
- Date: Mon, 08 Mar 2004 10:35:06 -0700
>To: address@hidden
>From: Robert Pincus <address@hidden>
>Subject:
>Organization: CU
>Keywords: 200403060144.i261iUrV004116 netCDF MacOS-X xlf
------- Forwarded Message
Date: Mon, 08 Mar 2004 11:11:32 -0500
From: Robert Pincus <address@hidden>
To: Russ Rew <address@hidden>
Subject: Re: 20040306: build netcdf 3.5.1 on my Mac running OS 10.3.2
>> I'd like to build netcdf 3.5.1 on my Mac running OS 10.3.2 with the
>> spiffy new IBM xlf compilers. I know I can do so with the Absoft
>> compiler (I have done), but I understand that the IBM compiler make
>> much faster code, so I want to compile my numerical codes with xlf,
>> but
>> it won't link against module built with the absoft compile.
>>
>> So - I've configured environment variables to set up CC=gcc,
>> F90=xlf90,
>> FC=xlf, F90FLAGS=-qsuffix=cpp=f90. I get as far as building the
>> fortran
>> subdirectory, and then it croaks - cfortran.h doesn't have my
>> definitions in it, apparently. Is there another environment variable I
>> should set? I'm not sure how to interpret all the stuff in cfortran.h.
>
> Try:
>
> Environment Variable String
> -------------------- --------------
> CPPFLAGS -DIBMR2Fortran
> F90FLAGS -qsuffix=f=f90
I used this environment, and everything seems to work just fine:
CC=cc
FC=xlf
F90=xlf90
F90FLAGS=-qsuffix=cpp=f90
CPPFLAGS=-DIBMR2Fortran -DNDEBUG
This is using xlf 8.1, which may need different versions of the
-qsuffix flag than whatever you were using before.
Thanks for the help, as always
---
Robert Pincus
NOAA-CIRES Climate Diagnostics Center
325 S. Broadway, R/CDC1
Boulder CO 80305 USA
Phone: (303) 497-6310
http://www.cdc.noaa.gov/~robert/
------- End of Forwarded Message