[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #GUD-694571]: problem: build 64-bit netcdf lib using ifort and
- Subject: [netCDF #GUD-694571]: problem: build 64-bit netcdf lib using ifort and
- Date: Tue, 14 Aug 2007 07:50:26 -0600
> Hi, I tried to build netcdf library on our linux supercomputer ia64 with
> ifort and icc. What I did was:
> 1)setenv cc icc
> 2)./configure
> 3) make check
>
> I got the following messages when I entered 'make check' (also, see attached
> file for config.log):
> ----------------------------------------------------------------------------
> Making check in f90
> make[1]: Entering directory `/home/d3p880/netcdf-3.6.2/f90'
> /bin/sh ../libtool --mode=compile
> /home/mscf/sw/intel/intel-ifort9-9.0-033/bin/ifort -I../libsrc -I. -g -c -o
> typeSizes.lo typeSizes.f90
> libtool: compile: /home/mscf/sw/intel/intel-ifort9-9.0-033/bin/ifort
> -I../libsrc -I. -g -c typeSizes.f90 -o typeSizes.o
> /bin/sh ../libtool --mode=compile
> /home/mscf/sw/intel/intel-ifort9-9.0-033/bin/ifort -I../libsrc -I. -g -c -o
> netcdf.lo netcdf.f90
> libtool: compile: /home/mscf/sw/intel/intel-ifort9-9.0-033/bin/ifort
> -I../libsrc -I. -g -c netcdf.f90 -o netcdf.o
> /bin/sh ../libtool --mode=link
> /home/mscf/sw/intel/intel-ifort9-9.0-033/bin/ifort -I../libsrc -I. -g -o
> libnetcdff90.la typeSizes.lo netcdf.lo
> libtool: link: ar cru .libs/libnetcdff90.a typeSizes.o netcdf.o
> libtool: link: ranlib .libs/libnetcdff90.a
> libtool: link: creating libnetcdff90.la
> libtool: link: ( cd ".libs" && rm -f "libnetcdff90.la" && ln -s
> "../libnetcdff90.la" "libnetcdff90.la" )
> make[1]: Leaving directory `/home/d3p880/netcdf-3.6.2/f90'
> Making check in fortran
> make[1]: Entering directory `/home/d3p880/netcdf-3.6.2/fortran'
> depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
> if /bin/sh ../libtool --tag=CC --mode=compile
> /home/mscf/sw/intel/intel-icc9-9.0-032/bin/icc -DHAVE_CONFIG_H -I. -I. -I..
> -I. -I../libsrc -g -O2 -MT fort-attio.lo -MD -MP -MF "$depbase.Tpo" -c
> -o fort-attio.lo fort-attio.c; \
> then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1;
> fi
> libtool: compile: /home/mscf/sw/intel/intel-icc9-9.0-032/bin/icc
> -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../libsrc -g -O2 -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[1]: *** [fort-attio.lo] Error 1
> make[1]: Leaving directory `/home/d3p880/netcdf-3.6.2/fortran'
> make: *** [check-recursive] Error 1
> ------------------------------------------------------------------------
>
> Thanks for help.
>
> Jiwen
>
>
>
>
Howdy Jiwen!
Some other users have reported success building with ifort. Try using the flags
suggested here:
http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#linux_ifort
In particular, I can see that your build is failing because the -DpgiFortran
flag is not set.
Please let me know if this doesn't work for you.
Thanks,
Ed
Ticket Details
===================
Ticket ID: GUD-694571
Department: Support netCDF
Priority: Critical
Status: Closed