[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20040316: Linux netCDF build using icc(1) 8.0 & ifort(1) 8.0
- Subject: 20040316: Linux netCDF build using icc(1) 8.0 & ifort(1) 8.0
- Date: Tue, 16 Mar 2004 10:12:48 -0700
Andri,
> To: address@hidden
> From: Andri Arnaldsson <address@hidden>
> Subject: Installation problems with netCDF
> Organization: University of Washington
> Keywords: 200403160049.i2G0nMrV029595 netCDF Intel Fortran
The above message contained the following:
> uname -a:
>
> Linux bjolfur.raunvis.hi.is 2.4.22-1.2174.nptlsmp #1 SMP Wed
> Feb 18 16:21:50 EST 2004 i686 i686 i386 GNU/Linux
>
> version:
>
> 3.5.0
You should get version 3.5.1.
> compilers:
>
> /opt/intel_fc_80/bin/ifort
> ifort -V
> Intel(R) Fortran Compiler for 32-bit applications,
> Version 8.0 Build 20040122Z Package ID: l_fc_pc_8.0.039_pe040
>
> /opt/intel_cc_80/bin/icc
> icc -V
> Intel(R) C++ Compiler for 32-bit applications,
> Version 8.0 Build 20031016Z Package ID: l_cc_p_8.0.055
>
> thanks!
...
The problem you had was the following:
> Making `test' in directory /home/andri/netcdf-3.5.0/src/nc_test
>
> make[2]: Entering directory `/nfs/data/home/andri/netcdf-3.5.0/src/nc_test'
> icc -c -O -I../libsrc -DNDEBUG -DpgiFortran nc_test.c
> nc_test.c(115): warning #266: function declared implicitly
> while ((c = getopt(argc, argv, "chrvn:")) != EOF)
> ^
>
> icc -c -O -I../libsrc -DNDEBUG -DpgiFortran error.c
> icc -c -O -I../libsrc -DNDEBUG -DpgiFortran test_get.c
> icc -c -O -I../libsrc -DNDEBUG -DpgiFortran test_put.c
> icc -c -O -I../libsrc -DNDEBUG -DpgiFortran test_read.c
> icc -c -O -I../libsrc -DNDEBUG -DpgiFortran test_write.c
> icc -c -O -I../libsrc -DNDEBUG -DpgiFortran util.c
> icc -o nc_test -O nc_test.o error.o test_get.o test_put.o test_read.o
> test_write.o util.o -L../libsrc -lnetcdf
> ./nc_test -c
> ./nc_test
> *** Testing nc_strerror ... ok
> *** Testing nc_open ... ok
> *** Testing nc_close ... ok
...
> *** Testing nc_put_var_float ...
> FAILURE at line 2831 of test_put.c: Numeric conversion not representable
> FAILURE at line 2878 of test_put.c: Numeric conversion not representable
> FAILURE at line 697 of test_put.c: Var value read not that expected
...
You used the following environment variable settings:
CPPFLAGS=-DNDEBUG -DpgiFortran
CC=icc
CXX=
FC=ifort
F90=ifort
CFLAGS=-O
CXXFLAGS=-O
FFLAGS=-O -mp -dynamics-libcxa
F90FLAGS=
The CFLAGS environment variable should contain the "-mp" option. This
should fix the "Numeric conversion not representable" problem in the C
interface.
The F90FLAGS environment variable should contain the "-mp" option. This
should fix a similar problem in the Fortran-90 interface that you would
have encountered if the C problem hadn't occurred.
Please try the following:
1. Go to the top-level source directory.
2. Perform steps 3 and 4 described at
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems
3. Set the following environment variables to the indicated values:
Variable Value
-------- -----
CC icc
CXX icc
FC ifort
F90 ifort
CPPFLAGS -DNDEBUG -DpgiFortran
CFLAGS -O -mp
CXXFLAGS -O -mp
FFLAGS -O -mp -cm -w95 -dynamic-libcxa
FLIBS -Vaxlib
2. Perform steps 6 through 9 described at
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems
Please let me know if this helps.
Regards,
Steve Emmerson