Building NetCDF

This file documents the use of the x86 Open64 Compiler Toolchain

2009 Advanced Micro Devices, Inc.



NetCDF (network Common Data Form) is a machine-independent binary data format standard for representing/exchanging scientific data. Information about NetCDF can be obtained from the University Corporation for Atmospheric Research (UCAR) at,

Obtaining the source code

At the time of this writing the stable source code version 4.1.1 was available at,


Open64 Compiler tool chain required to build the NetCDF libraries.

Building NetCDF on Linux

The open64 compilers should be in your $PATH environment variables.

$ export PATH=</path/to/compiler/root>/bin:$PATH


After downloading the NetCDF tar file, extract the NetCDF source code in a work directory.

$ cd <workdir>

$ tar -xzvf netcdf-4.1.1.tar.gz

$ cd netcdf-4.1.1/src

$ export CC=opencc

$ export CXX=openCC

$ export F77=openf90

$ export CFLAGS='O3'

$ export CXXFLAGS='-O3'

$ export FFLAGS='-O3'

$ ./configure -prefix=/path/to/install/directory

$ make clean

$ make

$ make test (or make check)

$ make install


Known Limitations

There are no known limitations.