[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030501: netCDF 3.5.0 installation problem on Linux platform
- Subject: 20030501: netCDF 3.5.0 installation problem on Linux platform
- Date: Thu, 01 May 2003 09:30:11 -0600
Jon,
> To: <address@hidden>
> From: "Case.Jon" <address@hidden>
> Subject: netCDF 3.5.0 installation problem on Linux platform
> Organization: ENSCO, Inc.
The above message contained the following:
> I am receiving compilation errors when trying to build netCDF 3.5.0 on
> our Linux platform with PGI compilers.
> In this email, I have included all the necessary information according
> to the INSTALL.html document.
>
> Hopefully, my problem can be solved readily. After my signature block,
> I have included all the required diagnostic information [i.e. steps (A)
> through (F)]
Thanks. That makes diagnosis much easier.
> Thanks much!
> Jonathan Case
>
> --------------------------------------------
> Jonathan Case
> Applied Meteorology Unit
> ENSCO, Inc.
> 1980 N. Atlantic Ave., Suite 230
> Cocoa Beach, FL 32931
> Voice: (321)-853-8264
> Fax: (321)-853-8415
> AMU Quarterly Reports:
> http://science.ksc.nasa.gov/amu/home.html
> --------------------------------------------
>
> (A) Linux amu-node1 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686
> unknown
> (B) 3.5.0
> (C) /usr/pgi/linux86/bin/pgf90, /usr/pgi/linux86/bin/pgcc, /usr/bin/c++
...
> Making `all' in directory
> /home/cluster1/arps1/SOFTWARE/netcdf/netcdf-3.5.0/src/fortran
>
> make[2]: Entering directory
> `/home/cluster1/arps1/SOFTWARE/netcdf/netcdf-3.5.0/src/fortran'
> pgcc -c -O -I../libsrc -DNDEBUG fort-attio.c
> PGC-F-0249-#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....
> (./cfortran.h: 134)
> PGC/x86 Linux/x86 3.2-4a: compilation aborted
> make[2]: *** [fort-attio.o] Error 1
> make[2]: Leaving directory
> `/home/cluster1/arps1/SOFTWARE/netcdf/netcdf-3.5.0/src/fortran'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory
> `/home/cluster1/arps1/SOFTWARE/netcdf/netcdf-3.5.0/src'
> make: *** [fortran/all] Error 2
Simple problem. The C compiler has to be told what argument-passing
conventions to use when C functions are called by Fortran routines. This
is done by defining a particular C macro in the CPPFLAGS environment
variable prior to executing the configure script. The file INSTALL.html
contains examples of this.
Please try the following:
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 environment variable CPPFLAGS contains the
string "-DpgiFortran", e.g.,
export CPPFLAGS=-DpgiFortran
or
setenv CPPFLAGS -DpgiFortran
depending on your user-shell.
4. Perform steps 6 through 9, described near the end of the file
INSTALL.html.
Please let me know if this helps.
Regards,
Steve Emmerson