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

[Support #ZZD-609494]: netCDF 3.6.2 build on Ubuntu 7.10



> I am trying  to build NetCDF 3.6.2 on Ubuntu 7.10, 32bit using Intel Fortran
> (ifort) v10.0.026.  I have tried going through the build both as sudo and as
> root but it doesn't work.  I have pulled off all other Fortran compliers so
> that it should be forced to use the ifort compiler.

You can just set the environment variable FC to the name of your
fortran compiler, before you run the configure script. If FC is set,
the build will use the fortran compiler specified.

> 
> I have been trying to get it to work for about a week now to no avail.  I
> really appreciate any help that you can give so I can get it successfully
> installed.
> 
> Thanks
> drew
> 
> *********************************************************
> *********************************************************
> *********************************************************
> 
>> cfortran.h:138:3: error: #error "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"

This indicates that the build can't figure out what fortran compiler
you are using, and how to build the fortran API for you.

Try again, but set CPPFLAGS to -DpgiFortran first.

(Do a "make distclean" and then start over again, after setting the above.)

Some successful settings for intel fortran have been reported from users:

http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#linux_ifort_mac_64

Please let me know if this doesn't work for you.

Thanks!

Ed

Ticket Details
===================
Ticket ID: ZZD-609494
Department: Support netCDF
Priority: Normal
Status: Closed