[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20010821: building netCDF on 64-bit machines



>To: address@hidden
>From: Crystal Shaw <address@hidden>
>Subject: Re: 20010821: building netCDF on 64-bit machines
>Organization: NCSA
>Keywords: itanium, 64-bit platforms

Hi Crystal,

> I need a few pointers here. I am at the early stage of compiling netcdf
> on the Intel IA-64 platform.
> 
> I am getting errors from cfortran.h, do I need to modify that file? I 
> ported netcdf years ago. The ultimate goal is to port wrf which I am
> getting nf_close etc undefined error messages from the library . I was
> trying to link with 32-bit netcdf library, apparently it needs 64 bit
> addressing.

We don't have access to an Intel IA-64 platform for testing yet, but we
have successfully built and tested netCDF on several other 64-bit
platforms:

 - IBM AIX SP
 - SGI IRIX64
 - Sun/SPARC 64-bit "v9" architecture

We've also recently built and tested support for netCDF files larger
than 2 Gbytes on a 32-bit Linux Pentium system with Large File Support
(64-bit file offsets).

If the cfortran.h errors you are getting are something like

  cfortran.h:155: #error "cfortran.h:  Can't find your environment
  among:
    - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)         
    - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000
    ...

then maybe you are using a Fortran compiler based on f2c and need to 
ensure that the environment variable CPPFLAGS contains the string
"-Df2cFortran" before executing the configure script. Try the following:

    1.  Go to the top-level source directory of the 3.5 package.

    2.  Perform steps 3 through 5 that you'll find near the end of the
        file INSTALL.html.

    3.  Ensure that the environment variable CPPFLAGS contains the
        string "-Df2cFortran", e.g.

            export CPPFLAGS=-Df2cFortran

        or

            setenv CPPFLAGS -Df2cFortran

    4.  Perform steps 6 through 9 that you'll find near the end of the
        file INSTALL.html.

If that doesn't help, then perhaps cfortran.h will have to be modified
for your compiling environment.  We don't maintain cfortran.h, but
I'll try to check if there is a more recent version than what we are
distributing.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu