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

20011127: installing problem: using NAG Fortran



Verena,

> To: address@hidden
> From: Verena Cals <address@hidden>
> Subject: installing problem
> Organization: UCAR/Unidata
> Keywords: 200111260830.fAQ8UKN14318

The above message contained the following:

> for a few weeks I've sent you an email, in which I wrote, that I have
> problems with the netcdf-installation for the nag-compiler (f95). I
> don't know, if you has got this email. Therefore I send it once again.

Please accept our apology for not addressing your problem sooner.

> with kind regards
> Verena Cals
> 
> -- 
> 
> Verena Cals
> 
> ICG I: Stratosphäre
> Forschungszentrum Jülich GmbH
> EMail: address@hidden
> 
> 
> 
> 
> Dear suppert-team,
> 
> I wanted to install netcdf 3.5.0 for several compilers, because we
> need it on different plattforms. Most important for us is the fortran
> 90 interface. Therefore I did the installation for the Portlan Group
> Compiler (pgf90) and for the xlf90 without any problems. We also need
> the installation for the Nag Compiler (f95), but this installation
> always produces an error. I hope, you are able to locate the problem
> with the following informations.
> 
> best regards
> Verena Cals
> 
> A. > uname -a
>    Linux ich406 2.2.16 #1 Wed Aug 2 20:22:26 GMT 2000 i686 unknown
...

>    Making `all' in directory
> /home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src/fortran
> 
>    make[2]: Entering directory
> `/home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src/fortran'
>    /usr/bin/gcc -c -O -I../libsrc  -DNDEBUG fort-attio.c
>    make[2]: Leaving directory
> `/home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src/fortran'
>    make[1]: Leaving directory
> `/home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src'
> 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"
>    make[2]: *** [fort-attio.o] Error 1
>    make[1]: *** [subdir_target] Error 1
>    make: *** [fortran/all] Error 2

The above indicates that the C compiler doesn't know what
Fortran-calling-C conventions to use when compiling the the Fortran
API implementation. To use NAG Fortran conventions, define the C macro
"NAGf90Fortran" before executing the configure script.

Try the following:

    1.  Go to the top-level source directory.

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

    3.  Ensure that the environment variable CPPFLAGS contains the
        string "-DNAGf90Fortran" (without the quote marks), e.g.

            export CPPFLAGS=-DNAGf90Fortran

        or

            setenv CPPFLAGS -DNAGf90Fortran

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

Please let me know if this helps.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>