[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030225: Linux build using Portland Group Compilers
- Subject: 20030225: Linux build using Portland Group Compilers
- Date: Tue, 25 Feb 2003 10:23:06 -0700
John,
> To: <address@hidden>
> From: "Manobianco.John" <address@hidden>
> Subject: netcdf for linux
> Organization: UCAR/Unidata
The above message contained the following:
> I am trying to build the netcdf libraries and programs on a system running
> Linux/x86 3.2-4a (with Portland Group C and FORTRAN compilers).
>
> The make files stops with the following error:
>
> Making `all' in directory /home/cluster1/software/netcdf-3.5.0/src/fortran
>
> make[2]: Entering directory `/home/cluster1/software/netcdf-3.5.0/src/fortran'
> pgcc -c -DUNDERSCORE -DLinux
> -I/home/cluster1/software/gem60/ldm/ldm-4.1.42/include -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/software/netcdf-3.5.0/src/fortran'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/home/cluster1/software/netcdf-3.5.0/src'
> make: *** [fortran/all] Error 2
>
> How can this be fixed?
The netCDF package has been built on a Linux system using Portland
Group's compilers. The key is to define the C macro "pgiFortran" in the
CPPFLAGS environment variable prior to executing the configure script.
For more information, please see
http://www.unidata.ucar.edu/cgi-bin/msgout?/glimpse/netcdf/4727
> Thanks.
>
> John Manobianco
> ===========================
> John Manobianco, Ph.D.
> Applied Meteorology Unit
> ENSCO, Inc.
> 1980 N. Atlantic Ave. Suite 230
> Cocoa Beach, FL 32931
> Phone: 321-853-8202
> email: address@hidden
> ===========================
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>