Re: Compiling NCARG 4.2.3 with pgf90

From: Mary Haley (haley AT unknown)
Date: Thu Nov 29 2001 - 17:06:05 MST

  • Next message: Dierk Polzin: "NCL on OS X"

    >
    > Has anyone successfully compiled 4.2.3 with pgf90. I've
    > tried modifying the LIUNX file a bit but i still get the
    > following error right off the bat...
    >
    > pgf90 -O -c i1mach.f
    > pgf90 -O -c r1mach.f
    > PGF90-S-0034-Syntax error at or near <quoted string>
    > (r1mach.f: 390)
    > PGF90-S-0034-Syntax error at or near <quoted string>
    > (r1mach.f: 391)
    > .
    > .
    > .
    > A you can see, I'm just using the 'pgf90 -O' command and
    > i believe all my libraries are where they are suppose to
    > be.
    >
    > What am i missing?!?!
    >
    > mark conder
    > atmospheric science group
    > texas tech university

    Mark,

    The pgf90 compiler seems to be complaining about hex constants set in
    a data statement like:

          INTEGER SMALL
          DATA SMALL / X'00800000'/

    We are not sure where this construct originally came from, but it
    works with many of the compilers we've tried (including f90
    compilers). It seems to work with pgf77, but not with pgf90.

    The construct:

          INTEGER SMALL
          DATA SMALL / Z'00800000'/

    is what the Fortran 90 Standard supports for setting hex constants
    (see Section 4.3.1.1). If you use the above, then it compiles with
    *both* pgf77 and pgf90. Please make this change to the "r1mach.F" file,
    since this file is what eventually generates the "r1mach.f" file.

    I should also point out that we already have pre-compiled binaries and
    libraries that were built with the Portland Group f77 compiler under
    RedHat Linux 6.2 and 7.1. In most cases you can use a Fortran 90
    compiler to link with libraries that were built with Fortran 77.

    If you are running RedHat 6.2 or 7.1, and you want to try this, then
    go to:

        http://ngwww.ucar.edu/ng/download.html

    click on the "submit" button towards the middle of the page, and then
    download one of the PGI compiled binaries and follow the instructions
    for installation.

    Cheers,

    --Mary Haley
      haley AT unknown



    This archive was generated by hypermail 2b29 : Thu Nov 29 2001 - 17:59:12 MST