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

[netCDF #PYK-427149]: parallel netcdf build error.



Hi Karthika.

> I am trying to install netcdf4.0 with intel compilers.

That version of netCDF is five years old, and is no longer supported.
Many parallel I/O bugs have been fixed since that version was released
in June 2008.

Please use a more recent version, such as the netCDF C library version
4.3.0 and the netCDF-Fortran version 4.2.  They are both available
here:

  http://www.unidata.ucar.edu/downloads/netcdf

and instructions for building them are here:

  http://www.unidata.ucar.edu/netcdf/docs/build_default.html
  http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html

The error you encountered in trying to build version 4.0 is avoided by
following step 4. in the Fortran-install instructions at the above
URL:

 4. For parallel I/O: The configure script sets CFLAGS appropriately
    for standard compilers, but if you are building with parallel I/O
    using wrappers such as mpicc and mpif90, you sometimes have to set
    CFLAGS to indicate which Fortran compiler is wrapped by
    mpif90. For example, if "mpicc --show" and "mpif90 --show"
    indicate gcc and gfortran are being used, then set
    CFLAGS=-DgFortran, and similarly set CFLAGS=-DpgiFortran for
    Portland Group compilers.

--Russ

> I followed the below steps to install:
> 
> source /opt/software/intel/bin/compilervars.sh intel64
> cd netcdf source code directory
> export CC=mpiicc
> export CXX=mpiicpc
> export FC=mpiifort
> export F77=mpiifort
> export FCFLAGS='-I/opt/wipro/hdf5/hdf5-install/include -fPIC'
> export CFLAGS='-I/opt/wipro/hdf5/hdf5-install/include -fPIC'
> export CXXFLAGS='-I/opt/wipro/hdf5/hdf5-install/include -fPIC'
> export FFLAGS='-I/opt/wipro/hdf5/hdf5-install/include -fPIC -g -O2 
> -mp-recursive'
> export LDFLAGS='-L/opt/wipro/hdf5/hdf5-install/lib'
> ./configure --prefix=/opt/wipro/netcdf/netcdf-4.0-install/ 
> --with-hdf5=/opt/wipro/hdf5/hdf5-install --enable-netcdf-4  
> --enable-parallel-tests
> 
> 
> Configuration is completing successfully , but during the make stage it is 
> giving the below error:
> 
> 
> libtool: link: ( cd ".libs" && rm -f "libnetcdff90.la" && ln -s 
> "../libnetcdff90.la" "libnetcdff90.la" )
> make[2]: Leaving directory `/opt/wipro/netcdf/netcdf-4.0/f90'
> Making all in fortran
> make[2]: Entering directory `/opt/wipro/netcdf/netcdf-4.0/fortran'
> echo '!     NetCDF-3.' > netcdf.inc
> cat ../fortran/netcdf3.inc >> netcdf.inc
> echo >> netcdf.inc
> echo '!     NetCDF-2.' >> netcdf.inc
> cat ../fortran/netcdf2.inc >> netcdf.inc
> echo >> netcdf.inc
> echo '!     NetCDF-4.' >> netcdf.inc
> cat ../fortran/netcdf4.inc >> netcdf.inc
> make  all-am
> make[3]: Entering directory `/opt/wipro/netcdf/netcdf-4.0/fortran'
> depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/sh ../libtool --tag=CC   --mode=compile mpiicc -DHAVE_CONFIG_H -I. -I..  
>  -I../libsrc4 -I/opt/wipro/hdf5/hdf5-install/include     
> -I/opt/wipro/hdf5/hdf5-install/include -fPIC -MT fort-attio.lo -MD -MP -MF 
> $depbase.Tpo -c -o fort-attio.lo fort-attio.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  mpiicc -DHAVE_CONFIG_H -I. -I.. -I../libsrc4 
> -I/opt/wipro/hdf5/hdf5-install/include -I/opt/wipro/hdf5/hdf5-install/include 
> -fPIC -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o 
> fort-attio.o
> cfortran.h(138): catastrophic error: #error directive: "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         - VAX   VMS CC 3.1 and FORTRAN 5.4.           
>                            - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0.         
>                       - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 
> 1.2              - Apollo DomainOS 10.2
> (sys5.3) with f77 10.7 and cc 6.7.                - CRAY                      
>                                              - NEC SX-4 SUPER-UX              
>                                         - CONVEX                              
>                                    - Sun                                      
>                               - PowerStation Fortran with Visual C++          
>                          - HP9000s300/s700/s800 Latest test with: HP-UX 
> A.08.07 A 9000/730        -
> LynxOS: cc or gcc with f2c.                                            - 
> VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.                 -      
>       f77 with vcc works; but missing link magic for f77 I/O.     -           
>  NO fort. None of gcc, cc or vcc generate required names.    - f2c    : Use 
> #define    f2cFortran, or cc -Df2cFortran                 - NAG f90: Use 
> #define NAGf90Fortran, or cc -DNAGf90Fortran              - Absoft UNIX F77: 
> Use #define AbsoftUNIXFortran or
> cc -DAbsoftUNIXFortran     - Absoft Pro Fortran: Use #define AbsoftProFortran 
>     - Portland Group Fortran: Use #define pgiFortran     - PathScale Fortran: 
> Use #define PATHSCALE_COMPILER"
> #error "cfortran.h:  Can't find your environment among:\
> ^
> 
> compilation aborted for fort-attio.c (code 4)
> make[3]: *** [fort-attio.lo] Error 1
> make[3]: Leaving directory `/opt/wipro/netcdf/netcdf-4.0/fortran'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/opt/wipro/netcdf/netcdf-4.0/fortran'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/wipro/netcdf/netcdf-4.0'
> make: *** [all] Error 2
> address@hidden netcdf-4.0]#

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



Ticket Details
===================
Ticket ID: PYK-427149
Department: Support netCDF
Priority: Normal
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.