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

[netCDF #ITK-193191]: Netcdf -fortran-4.2 problem



Hi Gerry,

> OK... Another problem, on 'make check'...
> 
> make  check-am
> make[2]: Entering directory
> `/data/gerry/NetCDF4.2/netcdf-fortran-4.2/fortran'
> source='fort-attio.c' object='fort-attio.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool --tag=CC   --mode=compile
> /apps/pgi/10.3-0/linux86-64/10.3/bin/pgcc -DHAVE_CONFIG_H -I. -I..
> -DDLL_EXPORT  -DpgiFortan -I/data/gerry/NetCDF4.2/include  -g -c -o
> fort-attio.lo fort-attio.c
> libtool: compile:  /apps/pgi/10.3-0/linux86-64/10.3/bin/pgcc
> -DHAVE_CONFIG_H -I. -I.. -DDLL_EXPORT -DpgiFortan

I think the problem may be use of "-DpgiFortan" rather than "pgiFortran" (note 
the extra "r").

You may have gotten that from copying and pasting the typo from one of our 
documents.
If so and you can remember where it came from, lett me know and I'll fix it.

Thanks.

--Russ

> -I/data/gerry/NetCDF4.2/include -g -c fort-attio.c  -fpic -DPIC -o
> .libs/fort-attio.o
> PGC-F-0249-#error --  "cfortran.h:  Can't find your environment among:
> - GNU gcc (gfortran) on Linux.
> - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...
> (./cfortran.h: 227)
> PGC/x86-64 Linux 10.3-0: compilation aborted
> make[2]: *** [fort-attio.lo] Error 1
> make[2]: Leaving directory
> `/data/gerry/NetCDF4.2/netcdf-fortran-4.2/fortran'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory
> `/data/gerry/NetCDF4.2/netcdf-fortran-4.2/fortran'
> make: *** [check-recursive] Error 1
> 
> 
> I did find this reference:
> http://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg10995.html
> 
> Thanks, Gerry
> 
> On 04/18/2012 09:45 AM, Unidata netCDF Support wrote:
> > Hi Gerry!
> >
> >> Howdy! This is likely to be a case of missing something self-evident,
> >> but I've run into a snag.
> >>
> >> The error is:
> >> configure: error: netcdf.h could not be found. Please set CPPFLAGS.
> >>
> >> I have config'd and compiled/installed the C libs more'r'less
> >> successfully. I think. Config and compile logs are attached.
> >>
> >> A find on the install dir yields this:
> >> [gerry@brazos:/data/gerry/NetCDF4.2]$ find . -name netcdf.h
> >> ./netcdf-4.2/include/netcdf.h
> >> ./include/netcdf.h
> >>
> >> and the prefix is set for /data/gerry/NetCDF4.2 (./configure
> >> --disable-netcdf-4 --prefix=/data/gerry/NetCDF4.2&&  make>  compile.log
> >> 2>&1&)
> >>
> >> On configuration of netcdf-gfortran, I get the error.
> >>
> >> Any ideas?
> >
> > I think all you need to do is set CPPFLAGS=-I/data/gerry/NetCDF4.2/include 
> > and
> > LDFLAGS=-L/data/gerry/NetCDF4.2/lib before running the configure script in 
> > the
> > Fortran package.  An example is here:
> >
> >    http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html
> >
> > --Russ
> >
> > Russ Rew                                         UCAR Unidata Program
> > address@hidden                      http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: ITK-193191
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: ITK-193191
Department: Support netCDF
Priority: Normal
Status: Closed