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

20040108: building netCDF on Linux 64-bit Itanium using ecc & efc



Andri,

> To: address@hidden
> From: Andri Arnaldsson <address@hidden>
> Subject: netCDF installation
> Organization: University of Washington
> Keywords: 200401061742.i06HgGp2016905 netCDF ia64

The above message contained the following:

...
> uname -a :
> 
>       Linux m977 2.4.20-200312080000_bpnnldevelpnnl21_hp4pnnl21smp #1 SMP 
> Mon Dec       8 15:01:39 GMT 2003 ia64 unknown
> 
> VERSION :
> 
>       3.5.0
> 
> COMPILERS :
> 
>       m977:/home/andri/netcdf-3.5.0/src(208)> echo $CC
>       ecc
>       m977:/home/andri/netcdf-3.5.0/src(209)> echo $FC
>       efc
> 
>       m977:/home/andri/netcdf-3.5.0/src(210)> which ecc
>       /opt/intel/compiler70/ia64/bin/ecc
>       m977:/home/andri/netcdf-3.5.0/src(211)> which efc
>       /home/nwchem/intel71/compiler70/ia64/bin/efc
>       m977:/home/andri/netcdf-3.5.0/src(212)> which c++
>       /usr/bin/c++
> 
...
>       Making `all' in directory /home/andri/netcdf-3.5.0/src/fortran
> 
>       make[2]: Entering directory `/home/andri/netcdf-3.5.0/src/fortran'
>       ecc -c -O -I../libsrc  -DNDEBUG fort-attio.c    
>       make[2]: Leaving directory `/home/andri/netcdf-3.5.0/src/fortran'
>       make[1]: Leaving directory `/home/andri/netcdf-3.5.0/src'
> 
>       cfortran.h(134): 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"
>       #error "cfortran.h:  Can't find your environment among:\
>       ^
>       compilation aborted for fort-attio.c (code 4)
>       make[2]: *** [fort-attio.o] Error 4
>       make[1]: *** [subdir_target] Error 1
>       make: *** [fortran/all] Error 2

We don't have access to a system like yours, which appears to be a Linux
system with a 64-bit Itanium processor and Intel efc compiler.  Based on
feedback from users (see

    <http://www.unidata.ucar.edu/packages/netcdf/other-builds.html>

) I believe that the following will work:

    1.  Go to the top-level source-directory.

    2.  Perform steps 3 through 5 described near the end of the file
        INSTALL.html.

    3.  Ensure that the following environment variables contain the
        indicated values:

            Variable    Value
            --------    -----
            CC          /opt/intel/compiler70/ia64/bin/ecc
            CPPFLAGS    -DNDEBUG -DpgiFortran"
            FC          /home/nwchem/intel71/compiler70/ia64/bin/efc
            FLIBS       -L/opt/intel/compiler70/ia64/lib -lPEPCF90
            FFLAGS      -O -mp

    4.  Perform steps 6 through 9 described near the end of the file
        INSTALL.html.

Please let me know what you discover.

Regards,
Steve Emmerson