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

[netCDF #NKE-128213]: Problem with Fortran90 API using Intel Compilers for NetCDF

Hi Victor,

The "make check" you attached shows all tests passes and the library was
built successfully.

Did you run "make install" after running "make check" to get the netCDF
Fortran library installed in /home/victor/local/sublocal/lib ?

If not, that is the problem.

Also, you say
> ifort -o testF90 -I/home/victor/local/sublocal/ simple_xy_wr.f90 -lnetcdff
> -lnetcdf .... DOES NOT WORK :S!!

What is the error message that indicates the compile and link didn't work?


> I've trying to install the fortran 90 library for NetCDF using intel
> compilers, eveything succeeded but when I compile with F90 it does not work
> (it compiled with gfortran!!!), it works pretty well with intel C (ICC),
> intel fortran77 (ifort), but not with intel fortran90 (ifort).
> Do you know why?
> I am using*:
> *Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on
> Intel(R) 64, Version Build 20130607
> Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64,
> Version Build 20130607*
> ***
> The variables I am using are:
> export CC=icc
> export CXX=icpc
> export CFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
> export CXXFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
> export F77=ifort
> export FC=ifort
> export F90=ifort
> export FFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
> export CPP='icc -E'
> export CXXCPP='icpc -E'
> export CPPFLAGS='-I/home/victor/local/sublocal/include'
> export LDFLAGS='-L/home/victor/local/sublocal/lib'
> export F90FLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
> *
> *Here I attach a "make check"-file and the config.log file.
> to run the programs I give the following orders:
> Using gfortran:
> gfortran -o test1 -I/usr/include/ simple_xy_wr.f90 -lnetcdff -lnetcdf
> (OK)
> Using intel C compiler
> icc -o testC -I/home/victor/local/sublocal/ simple_xy_wr.c -lnetcdff
> -lnetcdf      (OK)
> Using intel F77 compiler
> ifort -o testF77 -I/home/victor/local/sublocal/ simple_xy_wr.f -lnetcdff
> -lnetcdf   (OK)
> Using intel F90 compiler
> ifort -o testF90 -I/home/victor/local/sublocal/ simple_xy_wr.f90 -lnetcdff
> -lnetcdf .... DOES NOT WORK :S!!
> Also, the version for the netcdf-fortran library is:
> netcdf-fortran-netcdf-fortran-4.2
> I hope you can help me.
> Regards
> Victor Torres
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: NKE-128213
Department: Support netCDF
Priority: Normal
Status: Closed