Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [netcdfgroup] Sun Studio compiler on GNU/Linux

According to my config.log, I used this config:

./configure --prefix=/storage/users/local/netcdf4sun --enable-netcdf-4 --with-hdf5=/storage/users/local/hdf5sun F77=f77 FC=f90 --disable-cxx CPPFLAGS=-DpgiFortran

This was with 4.1-beta2 on a Linux x86_64 Opteron system and Sun Studio 12.1. With the most recent versions of netcdf4 I have had to turn off opendap (--disable-dap) on other systems because I was getting some errors.

-- Ted

On Feb 2, 2010, at 6:58 AM, Thomas Orgis wrote:

Am Tue, 02 Feb 2010 12:13:47 +0100
schrieb Thomas Orgis <Thomas.Orgis@xxxxxx>:

Am Mon, 01 Feb 2010 08:58:59 -0700
schrieb Ed Hartnett <ed@xxxxxxxxxxxxxxxx>:

This occurs when the netCDF configure script can't figure out what
kind of fortran compiler you are using. The solution is to set
CPPFLAGS to -DpgiFortran, or -Df2cFortran (but not both at the same
time) and rerun configure.

OK, will try that (hm, I remember that flag from somewhere... I guess
I needed it before for ifort 9). What confuses me is that I tried the
flag for Sun Fortran already, which should be appropriate (well, this
is Sun Studio...) and that only resulted in a variation of the error.

OK, that does not work:-(
I tried both -DpgiFortran and -Df2cFortran... the result is, as I recall, the same as when trying sunFortran:

"ncfortran.h", line 26: cannod find include file: "NF_INT_IS_C_... not defined"
[...]

(this is 4.2-beta2)


What's the magic here? Sun Studio is troubling me everywhere:-/
Ted: You got your experinence handy?



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: