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

20040813: install trouble netCDF w/ PGI on RHEL 3.0



>From: Phil Moses <address@hidden>
>Organization: UCSD
>Keywords: 200408131456.i7DEuTaW022312 netCDF PGI

Phil,

>I am having difficulties configuring netCDF 3.5.1 with the Portland
>Group Fortran Compiler on Redhat enterprise Linux 3.0. 
>
>Attached are the log files.

The make.log file you sent along does not show any errors which leads me
to think that the listing does not include the output from STDERR.
This this, the only clue we have is the configure output line:

checking user-defined Fortran-77 compiler
"/usr/pgi/linux86-64/5.1/bin/pgf90"... failed to compile test program

This could be due to any number of reasons, but we do not have enough
information to decide which may be appropriate.

>The problems that occur are related to pgf90
>and pgf77, these do not seem to be recognized by the configure script.
>The appropriate ENV variables have been set for these. 
>Any information is greatly appreciated. 

Please send along the environment variable settings you had in place
when you ran configure.  Also, please start your build from scratch
making sure to capture the output from STDERR along with STDOUT
in your make.log.  Thanks!

Cheers,

Tom Yoksas
>--configure.log--
> cat configure.log
>creating cache ./config.cache
>checking for top-level source-directory
>/tmp/netcdf-3.5.1/src
>checking for m4 preprocessor
>checking for m4... m4
>checking m4 flags... -B10000
>checking C compiler "/usr/bin/gcc"... works
>checking how to make dependencies... false
>checking for /usr/bin/g++... /usr/bin/g++
>checking C++ compiler "/usr/bin/g++"... works
>checking how to run the C preprocessor... /usr/bin/gcc -E
>checking user-defined Fortran-77 compiler
>"/usr/pgi/linux86-64/5.1/bin/pgf90"... failed to compile test program
>checking for Fortran .F compiler...
>checking for Fortran preprocessor... /usr/bin/gcc -E
>checking "" as Fortran-90 compiler... failed to build test program
>checking for xlf90... no
>checking for f90... f90
>checking Fortran-90 compiler "f90"... failed to build test program
>checking for nm utility
>checking for nm... nm
>checking nm flags...
>checking for math library
>checking for tanh in -lc... no
>checking for tanh in -lm... yes
>checking for ar utility
>checking for ar... ar
>checking ar flags... cru
>checking for nm utility
>checking for nm... (cached) nm
>checking nm flags...
>checking for ranlib... ranlib
>checking for stdlib.h... yes
>checking for sys/types.h... yes
>checking for strerror... yes
>checking for working ftruncate()... yes
>checking for working alloca.h... yes
>checking for alloca... yes
>checking for st_blksize in struct stat... yes
>checking for IEEE floating point format... yes
>checking for ANSI C header files... yes
>checking for size_t... yes
>checking for off_t... yes
>checking for ssize_t... yes
>checking for ptrdiff_t... yes
>checking for uchar... no
>checking whether char is unsigned... no
>checking whether byte ordering is bigendian... no
>checking size of short... 2
>checking size of int... 4
>checking size of long... 8
>checking size of float... 4
>checking size of double... 8
>checking size of off_t... 8
>checking size of size_t... 8
>checking for manual-page index command...
>checking binary distribution directory...
>/home/ftp/pub/binary/dummy_system
>updating cache ./config.cache
>creating ./config.status
>creating macros.make
>udcreating fortran/nfconfig.inc
>creating libsrc/ncconfig.h
>
>--end configure.log--
>
>--make.log--
>cat make.log
>make[1]: Entering directory `/tmp/netcdf-3.5.1/src'
> 
>Making `all' in directory /tmp/netcdf-3.5.1/src/libsrc
> 
>make[2]: Entering directory `/tmp/netcdf-3.5.1/src/libsrc'
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran attr.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran dim.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran error.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran -DVERSION=`cat ../VERSION`
>libvers.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran nc.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran ncio.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran ncx.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran putget.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran string.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran v1hpg.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran v2i.c
>/usr/bin/gcc -c -O -I.  -DNDEBUG -DpgiFortran var.c
>ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o
>putget.o string.o v1hpg.o v2i.o var.o
>ranlib libnetcdf.a
>make[2]: Leaving directory `/tmp/netcdf-3.5.1/src/libsrc'
> 
>Returning to directory /tmp/netcdf-3.5.1/src
> 
>make[1]: Leaving directory `/tmp/netcdf-3.5.1/src'
>make[1]: Entering directory `/tmp/netcdf-3.5.1/src'
> 
>Making `all' in directory /tmp/netcdf-3.5.1/src/ncdump
> 
>make[2]: Entering directory `/tmp/netcdf-3.5.1/src/ncdump'
>/usr/bin/gcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran ncdump.c
>/usr/bin/gcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran vardata.c
>/usr/bin/gcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran dumplib.c
>/usr/bin/gcc -o ncdump -O  ncdump.o vardata.o dumplib.o
>../libsrc/libnetcdf.a
>make[2]: Leaving directory `/tmp/netcdf-3.5.1/src/ncdump'
> 
>Returning to directory /tmp/netcdf-3.5.1/src
> 
>make[1]: Leaving directory `/tmp/netcdf-3.5.1/src'
>make[1]: Entering directory `/tmp/netcdf-3.5.1/src'
> 
>Making `all' in directory /tmp/netcdf-3.5.1/src/ncgen
> 
>make[2]: Entering directory `/tmp/netcdf-3.5.1/src/ncgen'
>/usr/bin/gcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran main.c
>/usr/bin/gcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran load.c
>/usr/bin/gcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran ncgentab.c
>/usr/bin/gcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran escapes.c
>/usr/bin/gcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran getfill.c
>/usr/bin/gcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran init.c
>/usr/bin/gcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran genlib.c
>/usr/bin/gcc -o ncgen -O  main.o load.o ncgentab.o escapes.o getfill.o
>init.o genlib.o ../libsrc/libnetcdf.a
>make[2]: Leaving directory `/tmp/netcdf-3.5.1/src/ncgen'
> 
>Returning to directory /tmp/netcdf-3.5.1/src
> 
>make[1]: Leaving directory `/tmp/netcdf-3.5.1/src'
>make[1]: Entering directory `/tmp/netcdf-3.5.1/src'
> 
>Making `all' in directory /tmp/netcdf-3.5.1/src/cxx
> 
>make[2]: Entering directory `/tmp/netcdf-3.5.1/src/cxx'
>/usr/bin/g++ -c  -I../libsrc -I.  -DNDEBUG -DpgiFortran netcdf.cpp
>/usr/bin/g++ -c  -I../libsrc -I.  -DNDEBUG -DpgiFortran ncvalues.cpp
>ar cru libnetcdf_c++.a netcdf.o ncvalues.o
>ranlib libnetcdf_c++.a
>/usr/bin/g++ -c  -I../libsrc -I.  -DNDEBUG -DpgiFortran nctst.cpp
>/usr/bin/g++ -o nctst   nctst.o libnetcdf_c++.a -L../libsrc -lnetcdf
>make[2]: Leaving directory `/tmp/netcdf-3.5.1/src/cxx'
> 
>Returning to directory /tmp/netcdf-3.5.1/src
> 
>make[1]: Leaving directory `/tmp/netcdf-3.5.1/src'
>
>--end make.log--
>
>
>-- 
>Phil Moses
>UNIX/Network/Computing Administration and Support
>Physical Oceanography Research Division, Scripps Institution of Oceanography
>address@hidden
>858-822-1541
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publically available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.

>From address@hidden  Fri Aug 13 09:26:31 2004

Tom, All,

Apologies on this issue. The problem was actually that my PGI license
was not working properly, which naturally left the Fortran tests out in
the cold. 

This has been corrected. as a side note, RHEL 3.0 with PGI 5.1 works
with the following ENV variables set:
CC=/usr/bin/gcc
CPPFLAGS='-DNDEBUG -DpgiFortran'
CFLAGS=-O
FC=/usr/pgi/linux86-64/5.1/bin/pgf77
F90=/usr/pgi/linux86-64/5.1/bin/pgf90
CXX=/usr/bin/g++

Thanks, Phil