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

[netCDF #EJA-190555]: netcdf42-fortran: netcdf.h for fortran not found by configure (= a script glitch?) (fwd)


Here's a report from an attempt to build netCDF C and Fortran libraries 
with Intel compilers on the NCAR high-performance computers:

------ start of report on NCAR CISL build:

Good news. I got the C, Fortran, and C++ versions of NetCDF to build using the 
intel compilers. 

Some notes:  

 - I'm using these versions:


 - My philosophy is to go as simple as possible with the compile options, so 
here's what I used:

  export CC=icc                                                                 
  export CXX=icpc                                                               
  export FC=ifort                                                               
  export F77=ifort                                                              
  export F90=ifort                                                              
  export CFLAGS=                                                                
  export FFLAGS=                                                                
  export F90FLAGS=                                                              
  export CXXFLAGS= 

Note that all of these compilers are available when you login. You don't have 
to do any "module load" stuff.

 - I *always* remove this path from my PATH variable:


The above creates these "wrappers" for all the gcc/icc/ifort/gfortran 
compilers, and I prefer to use the pure compilers that exist in 

Here are the "pure" compiler paths and versions, just in case:

geyser05[234] which icc
geyser05[235] icc --version
icc (ICC) 12.1.5 20120612
Copyright (C) 1985-2012 Intel Corporation.  All rights reserved.
geyser05[236] which ifort
geyser05[237] which icpc

 - I always unset these three environment variables:

unset LIB_NCAR
unset INC_NCAR
unset NETCDF

This step may not be necessary, because I think these things are used by the 
wrapper programs.

- Here are the "configure" commands I used for the three packages:


./configure --enable-netcdf-4 --enable-dap --disable-shared 
--enable-large-file-tests --enable-dap-remote-tests


./configure --disable-shared 


./configure --disable-shared 

- Of course, the true test will come when I try to link NCL against all these 
packages!  That probably won't happen until tomorrow.

------ end of report on NCAR CISL build

I'll forward any additional information on this as I get it.


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

Ticket Details
Ticket ID: EJA-190555
Department: Support netCDF
Priority: High
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.