Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Netcdf 4.1.1 with Intel compiler

carinavb
Beginner
1,844 Views
Hello: I'm trying to install netcdf 4.1.1 with intel compilers.
I'm using a debian (lenny) on a vmware machine (Vmware workstation 7).
I install the compilers on /opt/intel/Compiler/11.1/072/bin where I have iccvars.sh and ifortvars.sh.

To install netcdf I follow these steps:

1) source /opt/intel/Compiler/11.1/072/bin/iccvars.sh ia32
source /opt/intel/Compiler/11.1/072/bin/ifortvars.sh ia32

2)in /home/cbarca/netcdf-4.1.1/ extract the NetCDF source code

3) I set the environment variables

$ export CC=icc
$ export CXX=icpc
$ export CFLAGS='-O3 -xT -ip -no-prec-div -static'
$ export CXXFLAGS='-O3 -xT -ip -no-prec-div -static'

$ export F77=ifort
$ export FC=ifort
$ export F90=ifort
$ export FFLAGS='-O3 -xT -ip -no-prec-div -static'

$ export CPP='icc -E'
$ export CXXCPP='icpc -E'

4) I run configuration utility

./configure --prefix=/usr/local/netcdf --disable-netcdf-4
And I get config.log and config.status (I attach those filles)

The instalation was succesfull but I think that not using Intel compilers.


5) I attache make check log (chk.log) and make install log (inst.log).

Regards.

0 Kudos
7 Replies
mecej4
Honored Contributor III
1,844 Views
The messages 'No se hace nada para ...' in the inst.log file indicate that you may have performed an earlier build and install using the GNU compilers. The build process probably found the object and library files produced from the earlier run, decided that not much needed to be built.

Do a 'make clean', delete the config.status and config.log files and, after setting the Intel compilers' needed environment, try again.

0 Kudos
carinavb
Beginner
1,844 Views
Thanks.... that worked....
0 Kudos
ynagel
Beginner
1,844 Views
Hi - I am trying to do something similar but with netcdf-4.1.3 and the intel64 compilers
However, I keep getting errors like these
icpc: command line error: no files specified; for help type "icpc -help"
icc: command line error: no files specified; for help type "icc -help"
ifort: command line error: no files specified; for help type "ifort -help
(.text+0x3a3): undefined reference to `idna_strerror'
(.text+0xdd5): undefined reference to `tld_strerror'
(.text+0x381): undefined reference to `gnutls_strerror'
Thanks for any help you can give me
YMN
0 Kudos
Ron_Green
Moderator
1,844 Views
show us your env vars for CC, CXX, CFLAGS, etc. and configure line, please.

thanks

ron
0 Kudos
Ron_Green
Moderator
1,844 Views
Also what version of the Intel compilers, what OS distro and version, and what gcc version? the errors at first glance look like you have an Intel compiler version that is incompatible with the gcc you are using.

ron
0 Kudos
ynagel
Beginner
1,843 Views
Hi Ron,
Here are answers to both your posts:
The included file env.txt shows my environment variables
I am running Debian "squeeze" with kernel2.6.32-5-amd64
gcc 4.4.5-8
intel compiler is 11.1/073 intel64 version
The configure line is
./configure --prefix=/opt --disable-netcdf-4
I also uploaded config.log and config.status
Thank you
Sorry - I forgot to attach env.txt
0 Kudos
Ron_Green
Moderator
1,843 Views
I'm pretty sure that version of the compiler is too old to work with Deb Squeeze and gcc 4.4.5. If you're licensed, you can download the latest 12.0 version.

I can give it a try with 12.0 and see what happens. We have heard that even 12.0 has issues building the latest netcdf.

it will take us a little while to run some test builds.

ron
0 Kudos
Reply