Greetings,
netCDF support is posting this on behalf of someone we've been unable to
help, primarily because we lack a pgf90 compiler. Please respond to
<williams13@xxxxxxxx> and/or the netcdfgroup mailing-list rather than to
me.
Regards,
Steve Emmerson
--------Begin Forwarded Message
Sender: williams@xxxxxxxxxxxxxx
Organization: PCMDI
Dear netCDF Group:
I am trying to compile netCDF (version 3.5 beta 2) on a Red Hat
Linux 6.1 PC platform using pgf90.
I have noticed that if I use g77 "make test" WORKS! But if I use the
fort77 or (more importantly) pgf90 configuration, then "make test"
returns a "Segmentation fault" for "./ftest".
How have others worked around this problem?
If you have an answer, please reply to: williams13@xxxxxxxx
Thanks in advance,
Dean
-----------------Related Information----------------------------
Below are the three configurations I used to build netCDF, where "g77"
works
and fort77 and pgf90 not working:
env CC=/usr/bin/egcs CPPFLAGS="-DNDEBUG -Df2cFortran" FC=/usr/bin/g77
FFLAGS="-O -Wno-globals -w" CXX=/usr/bin/g++
./configure --prefix=/usr/local --cache-file=/dev/null
env CC=/usr/bin/egcs CPPFLAGS="-DNDEBUG -Df2cFortran" FC=/usr/bin/fort77
FFLAGS="-O -Nx400 -w" CXX=/usr/bin/g++
./configure --prefix=/usr/local --cache-file=/dev/null
env CC=/usr/bin/egcs CPPFLAGS="-DNDEBUG -DpgiFortran" FC=pgf90 FFLAGS="-O
-w" CXX=/usr/bin/g++ ./configure
--prefix=/usr/local --cache-file=/dev/null
%uname -a
Linux chico 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown
%
%more VERSION
3.5
%which cc gcc c++ g++ f77 g77 fort77 pgf90
/usr/bin/cc
/usr/bin/gcc
/usr/bin/c++
/usr/bin/g++
/usr/bin/f77
/usr/bin/g77
/usr/bin/fort77
/usr/pgi/linux86/bin/pgf90
Attached are the "pgf90" config.log, configure.log, make.log, and
make_test.log files.
--
Dean N. Williams
Computer Scientist/Computation Group Leader o
Lawrence Livermore National Laboratory --
Livermore, California 94550 `\< *
Phone: (925) 423-0145 FAX: (925) 422-7675 / \
http://www-pcmdi.llnl.gov williams13@xxxxxxxx
--------------B1B6809AA3BACE033489B144
Content-Type: text/plain; charset=us-ascii;
name="config.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="config.log"
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:923: checking for m4 preprocessor
configure:930: checking for m4
configure:997: checking m4 flags
configure:1065: checking user-defined C compiler "/usr/bin/egcs"
configure:1074: checking C compiler
configure:1083: /usr/bin/egcs -c -O -DNDEBUG -DpgiFortran conftest.c 1>&5
configure:1110: checking how to make dependencies
configure:1178: checking for /usr/bin/g++
configure:1214: checking C++ compiler "/usr/bin/g++"
configure:1232: /usr/bin/g++ -o conftest -DNDEBUG -DpgiFortran conftest.C
1>&5
configure:1283: checking how to run the C preprocessor
configure:1304: /usr/bin/egcs -E -DNDEBUG -DpgiFortran conftest.c >/dev/null
2>conftest.out
configure:1421: checking user-defined Fortran compiler
"/usr/pgi/linux86/bin/pgf90"
configure:1427: /usr/pgi/linux86/bin/pgf90 -c -O -w conftest.f
configure:1513: checking for Fortran .F compiler
configure:1523: checking if Fortran compiler handles *.F files
configure:1534: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftest.F
configure:1571: checking for C-equivalent to Fortran routine "SUB"
configure:1577: /usr/pgi/linux86/bin/pgf90 -c -O -w conftest.f
configure:1606: checking for Fortran "byte"
configure:1613: /usr/pgi/linux86/bin/pgf90 -c -O -w conftest.f
configure:1630: checking for Fortran "integer*2"
configure:1637: /usr/pgi/linux86/bin/pgf90 -c -O -w conftest.f
configure:1663: checking if Fortran "byte" is C "signed char"
configure:1672: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:1674: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:1676: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:1678: ./conftest
configure:1711: checking if Fortran "byte" is C "short"
configure:1720: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:1722: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:1724: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:1726: ./conftest
configure:1759: checking if Fortran "byte" is C "int"
configure:1768: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:1770: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:1772: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:1774: ./conftest
configure:1807: checking if Fortran "byte" is C "long"
configure:1816: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:1818: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:1820: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:1822: ./conftest
configure:1859: checking if Fortran "integer*2" is C "short"
configure:1868: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:1870: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:1872: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:1874: ./conftest
configure:1907: checking if Fortran "integer*2" is C "int"
configure:1916: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:1918: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:1920: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:1922: ./conftest
configure:1955: checking if Fortran "integer*2" is C "long"
configure:1964: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:1966: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:1968: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:1970: ./conftest
configure:2005: checking if Fortran "integer" is C "int"
configure:2014: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:2016: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:2018: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:2020: ./conftest
configure:2053: checking if Fortran "real" is C "float"
configure:2062: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:2064: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:2066: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:2068: ./conftest
configure:2101: checking if Fortran "doubleprecision" is C "double"
configure:2110: /usr/bin/egcs -c -DNDEBUG -DpgiFortran -O conftest.c
configure:2112: /usr/pgi/linux86/bin/pgf90 -O -w -c conftestf.f
configure:2114: /usr/pgi/linux86/bin/pgf90 -o conftest -O -w conftestf.o
conftest.o
configure:2116: ./conftest
configure:2143: checking for Fortran-equivalent to netCDF "byte"
configure:2150: /usr/pgi/linux86/bin/pgf90 -c -O -w conftest.f
configure:2165: checking for Fortran-equivalent to netCDF "short"
configure:2172: /usr/pgi/linux86/bin/pgf90 -c -O -w conftest.f
configure:2192: checking for math library
configure:2196: checking for tanh in -lc
configure:2215: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
-lc 1>&5
/tmp/ccXQwerR.o: In function `main':
/tmp/ccXQwerR.o(.text+0x4): undefined reference to `tanh'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2204 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char tanh();
int main() {
tanh()
; return 0; }
configure:2234: checking for tanh in -lm
configure:2253: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
-lm 1>&5
configure:2286: checking for ar
configure:2316: checking for ranlib
configure:2345: checking for stdlib.h
configure:2355: /usr/bin/egcs -E -DNDEBUG -DpgiFortran conftest.c >/dev/null
2>conftest.out
configure:2382: checking for sys/types.h
configure:2392: /usr/bin/egcs -E -DNDEBUG -DpgiFortran conftest.c >/dev/null
2>conftest.out
configure:2418: checking for strerror
configure:2446: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:2471: checking for working ftruncate()
configure:2524: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:2546: checking for working alloca.h
configure:2558: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:2579: checking for alloca
configure:2612: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:2778: checking for st_blksize in struct stat
configure:2791: /usr/bin/egcs -c -O -DNDEBUG -DpgiFortran conftest.c 1>&5
configure:2813: checking for IEEE floating point format
configure:2851: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:2872: checking for ANSI C header files
configure:2885: /usr/bin/egcs -E -DNDEBUG -DpgiFortran conftest.c >/dev/null
2>conftest.out
configure:2952: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:2976: checking for size_t
configure:3009: checking for off_t
configure:3042: checking for ssize_t
configure:3075: checking for ptrdiff_t
configure:3108: checking for uchar
configure:3141: checking whether char is unsigned
configure:3180: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure: failed program was:
#line 3170 "configure"
#include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
#if !defined(__STDC__) || __STDC__ != 1
#define volatile
#endif
main() {
volatile char c = 255; exit(c < 0);
}
configure:3204: checking whether byte ordering is bigendian
configure:3222: /usr/bin/egcs -c -O -DNDEBUG -DpgiFortran conftest.c 1>&5
configure:3237: /usr/bin/egcs -c -O -DNDEBUG -DpgiFortran conftest.c 1>&5
configure: In function `main':
configure:3232: `not' undeclared (first use in this function)
configure:3232: (Each undeclared identifier is reported only once
configure:3232: for each function it appears in.)
configure:3232: parse error before `big'
configure: failed program was:
#line 3226 "configure"
#include "confdefs.h"
#include
#include
int main() {
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
; return 0; }
configure:3294: checking size of short
configure:3313: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:3333: checking size of int
configure:3352: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:3372: checking size of long
configure:3391: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:3411: checking size of float
configure:3430: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:3450: checking size of double
configure:3469: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:3489: checking size of off_t
configure:3512: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:3532: checking size of size_t
configure:3555: /usr/bin/egcs -o conftest -O -DNDEBUG -DpgiFortran conftest.c
1>&5
configure:3656: checking for manual-page index command
configure:3660: checking binary distribution directory
--------------B1B6809AA3BACE033489B144
Content-Type: text/plain; charset=us-ascii;
name="configure.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="configure.log"
loading cache /dev/null
checking for m4 preprocessor
checking for m4... m4
checking m4 flags... -B10000
checking user-defined C compiler "/usr/bin/egcs"
checking C compiler... 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/egcs -E
checking user-defined Fortran compiler "/usr/pgi/linux86/bin/pgf90"... works
checking for Fortran .F compiler...
checking if Fortran compiler handles *.F files... Linking:
yes
checking for C-equivalent to Fortran routine "SUB"... sub_
checking for Fortran "byte"... yes
checking for Fortran "integer*2"... yes
checking if Fortran "byte" is C "signed char"... Linking:
yes
checking if Fortran "byte" is C "short"... Linking:
no
checking if Fortran "byte" is C "int"... Linking:
no
checking if Fortran "byte" is C "long"... Linking:
no
checking if Fortran "integer*2" is C "short"... Linking:
yes
checking if Fortran "integer*2" is C "int"... Linking:
no
checking if Fortran "integer*2" is C "long"... Linking:
no
checking if Fortran "integer" is C "int"... Linking:
yes
checking if Fortran "real" is C "float"... Linking:
yes
checking if Fortran "doubleprecision" is C "double"... Linking:
yes
checking for Fortran-equivalent to netCDF "byte"... byte
checking for Fortran-equivalent to netCDF "short"... integer*2
checking for math library
checking for tanh in -lc... no
checking for tanh in -lm... yes
checking for ar... ar
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... 4
checking size of float... 4
checking size of double... 8
checking size of off_t... 4
checking size of size_t... 4
checking for manual-page index command...
checking binary distribution directory... /home/ftp/pub/binary/dummy_system
updating cache /dev/null
creating ./config.status
creating macros.make
udcreating fortran/nfconfig.inc
creating libsrc/ncconfig.h
--------------B1B6809AA3BACE033489B144
Content-Type: text/plain; charset=us-ascii;
name="make.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="make.log"
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `all' in directory /usr/local/src/netcdf-3.5/src/libsrc
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/libsrc'
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran attr.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran dim.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran error.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran -DVERSION=`cat ../VERSION`
libvers.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran nc.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran ncio.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran ncx.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran putget.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran string.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran v1hpg.c
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran v2i.c
/usr/bin/egcs -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 `/usr/local/src/netcdf-3.5/src/libsrc'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `all' in directory /usr/local/src/netcdf-3.5/src/fortran
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/fortran'
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-attio.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-control.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-dim.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-genatt.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-geninq.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-genvar.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-lib.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-misc.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-v2compat.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-vario.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-var1io.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-varaio.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-varmio.c
/usr/bin/egcs -c -O -DNDEBUG -DpgiFortran -I../libsrc -DNDEBUG -DpgiFortran
fort-varsio.c
ar cru ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o
fort-genatt.o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o
fort-v2compat.o fort-vario.o fort-var1io.o fort-varaio.o fort-varmio.o
fort-varsio.o
ranlib ../libsrc/libnetcdf.a
make[2]: Leaving directory `/usr/local/src/netcdf-3.5/src/fortran'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `all' in directory /usr/local/src/netcdf-3.5/src/ncdump
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/ncdump'
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran ncdump.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran vardata.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran dumplib.c
/usr/bin/egcs -o ncdump -O ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a
make[2]: Leaving directory `/usr/local/src/netcdf-3.5/src/ncdump'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `all' in directory /usr/local/src/netcdf-3.5/src/ncgen
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/ncgen'
/usr/bin/egcs -c -O -I../libsrc -I. -DNDEBUG -DpgiFortran main.c
/usr/bin/egcs -c -O -I../libsrc -I. -DNDEBUG -DpgiFortran load.c
/usr/bin/egcs -c -O -I../libsrc -I. -DNDEBUG -DpgiFortran ncgentab.c
/usr/bin/egcs -c -O -I../libsrc -I. -DNDEBUG -DpgiFortran escapes.c
/usr/bin/egcs -c -O -I../libsrc -I. -DNDEBUG -DpgiFortran getfill.c
/usr/bin/egcs -c -O -I../libsrc -I. -DNDEBUG -DpgiFortran init.c
/usr/bin/egcs -c -O -I../libsrc -I. -DNDEBUG -DpgiFortran genlib.c
/usr/bin/egcs -o ncgen -O main.o load.o ncgentab.o escapes.o getfill.o init.o
genlib.o ../libsrc/libnetcdf.a
make[2]: Leaving directory `/usr/local/src/netcdf-3.5/src/ncgen'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `all' in directory /usr/local/src/netcdf-3.5/src/cxx
make[2]: Entering directory `/usr/local/src/netcdf-3.5/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 `/usr/local/src/netcdf-3.5/src/cxx'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
--------------B1B6809AA3BACE033489B144
Content-Type: text/plain; charset=us-ascii;
name="make_test.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="make_test.log"
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `test' in directory /usr/local/src/netcdf-3.5/src/libsrc
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/libsrc'
/usr/bin/egcs -c -O -I. -DNDEBUG -DpgiFortran t_nc.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
/usr/bin/egcs -o t_nc -O t_nc.o -L. -lnetcdf
./t_nc
dimrename: IXX
nc_close ret = 0
reopen id = 6 for filename test.nc
NC done
GATTR VAR VATTR
VATTR
VATTR
VATTR
VATTR
VATTR
fill_seq indices 1 2 3 75.000000 != 2.718282
Done
got val = 3.250000
got val = 0.000000
got val = 2.718282
got val = 82555
got val = 97
got NC_CHAR val = A (0x41)
got NC_CHAR val = B (0x42)
got NC_CHAR val = "The red death had long devastated the country."
got val = A (0x41)
got val = B (0x42)
got val = "The red death had long devastated the country."
got vals = 0.000000 ... 447.000000
re nc_close ret = 0
cmp test.nc test_nc.sav
*** Success ***
make[2]: Leaving directory `/usr/local/src/netcdf-3.5/src/libsrc'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `test' in directory /usr/local/src/netcdf-3.5/src/nctest
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/nctest'
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran varget.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran vargetg.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran varput.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran varputg.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran vardef.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran vartests.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran vputget.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran vputgetg.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran driver.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran cdftests.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran dimtests.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran rec.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran atttests.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran misctest.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran add.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran error.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran emalloc.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran val.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran slabs.c
/usr/bin/egcs -o nctest -O varget.o vargetg.o varput.o varputg.o vardef.o
vartests.o vputget.o vputgetg.o driver.o cdftests.o dimtests.o rec.o atttests.o
misctest.o add.o error.o emalloc.o val.o slabs.o -L../libsrc -lnetcdf
./nctest
*** Testing nccreate ... ok ***
*** Testing ncopen ... ok ***
*** Testing ncredef ... ok ***
*** Testing ncendef ... ok ***
*** Testing ncclose ... ok ***
*** Testing ncinquire ... ok ***
*** Testing ncsync ... ok ***
*** Testing ncabort ... ok ***
*** Testing ncdimdef ... ok ***
*** Testing ncdimid ... ok ***
*** Testing ncdiminq ... ok ***
*** Testing ncdimrename ... ok ***
*** Testing ncvardef ... ok ***
*** Testing ncvarid ... ok ***
*** Testing ncvarinq ... ok ***
*** Testing ncvarput1 ... ok ***
*** Testing ncvarget1 ... ok ***
*** Testing ncvarput ... ok ***
*** Testing ncvarget ... ok ***
*** Testing ncvarputg ... ok ***
*** Testing ncvargetg ... ok ***
*** Testing ncrecinq ... ok ***
*** Testing ncrecput ... ok ***
*** Testing ncrecget ... ok ***
*** Testing ncvarrename ... ok ***
*** Testing ncattput ... ok ***
*** Testing ncattinq ... ok ***
*** Testing ncattget ... ok ***
*** Testing ncattcopy ... ok ***
*** Testing ncattname ... ok ***
*** Testing ncattrename ... ok ***
*** Testing ncattdel ... ok ***
*** Testing nctypelen ... ok ***
cmp testfile.nc testfile_nc.sav
make[2]: Leaving directory `/usr/local/src/netcdf-3.5/src/nctest'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `test' in directory /usr/local/src/netcdf-3.5/src/nc_test
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/nc_test'
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran nc_test.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran error.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran test_get.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran test_put.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran test_read.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran test_write.c
/usr/bin/egcs -c -O -I../libsrc -DNDEBUG -DpgiFortran util.c
/usr/bin/egcs -o nc_test -O nc_test.o error.o test_get.o test_put.o
test_read.o test_write.o util.o -L../libsrc -lnetcdf -lm
./nc_test -c
./nc_test
*** Testing nc_strerror ... ok
*** Testing nc_open ... ok
*** Testing nc_close ... ok
*** Testing nc_inq ... ok
*** Testing nc_inq_dimid ... ok
*** Testing nc_inq_dim ... ok
*** Testing nc_inq_dimlen ... ok
*** Testing nc_inq_dimname ... ok
*** Testing nc_inq_varid ... ok
*** Testing nc_inq_var ... ok
*** Testing nc_inq_natts ... ok
*** Testing nc_inq_ndims ... ok
*** Testing nc_inq_nvars ... ok
*** Testing nc_inq_unlimdim ... ok
*** Testing nc_inq_vardimid ... ok
*** Testing nc_inq_varname ... ok
*** Testing nc_inq_varnatts ... ok
*** Testing nc_inq_varndims ... ok
*** Testing nc_inq_vartype ... ok
*** Testing nc_get_var_text ... 179 good comparisons. ok
*** Testing nc_get_var_uchar ... 264 good comparisons. ok
*** Testing nc_get_var_schar ... 269 good comparisons. ok
*** Testing nc_get_var_short ... 682 good comparisons. ok
*** Testing nc_get_var_int ... 1189 good comparisons. ok
*** Testing nc_get_var_long ... 1189 good comparisons. ok
*** Testing nc_get_var_float ... 1194 good comparisons. ok
*** Testing nc_get_var_double ... 1207 good comparisons. ok
*** Testing nc_get_var1_text ... 179 good comparisons. ok
*** Testing nc_get_var1_uchar ... 264 good comparisons. ok
*** Testing nc_get_var1_schar ... 269 good comparisons. ok
*** Testing nc_get_var1_short ... 682 good comparisons. ok
*** Testing nc_get_var1_int ... 1189 good comparisons. ok
*** Testing nc_get_var1_long ... 1189 good comparisons. ok
*** Testing nc_get_var1_float ... 1194 good comparisons. ok
*** Testing nc_get_var1_double ... 1207 good comparisons. ok
*** Testing nc_get_vara_text ... 179 good comparisons. ok
*** Testing nc_get_vara_uchar ... 264 good comparisons. ok
*** Testing nc_get_vara_schar ... 269 good comparisons. ok
*** Testing nc_get_vara_short ... 682 good comparisons. ok
*** Testing nc_get_vara_int ... 1189 good comparisons. ok
*** Testing nc_get_vara_long ... 1189 good comparisons. ok
*** Testing nc_get_vara_float ... 1194 good comparisons. ok
*** Testing nc_get_vara_double ... 1207 good comparisons. ok
*** Testing nc_get_vars_text ... 179 good comparisons. ok
*** Testing nc_get_vars_uchar ... 264 good comparisons. ok
*** Testing nc_get_vars_schar ... 269 good comparisons. ok
*** Testing nc_get_vars_short ... 682 good comparisons. ok
*** Testing nc_get_vars_int ... 1189 good comparisons. ok
*** Testing nc_get_vars_long ... 1189 good comparisons. ok
*** Testing nc_get_vars_float ... 1194 good comparisons. ok
*** Testing nc_get_vars_double ... 1207 good comparisons. ok
*** Testing nc_get_varm_text ... 179 good comparisons. ok
*** Testing nc_get_varm_uchar ... 264 good comparisons. ok
*** Testing nc_get_varm_schar ... 269 good comparisons. ok
*** Testing nc_get_varm_short ... 682 good comparisons. ok
*** Testing nc_get_varm_int ... 1189 good comparisons. ok
*** Testing nc_get_varm_long ... 1189 good comparisons. ok
*** Testing nc_get_varm_float ... 1194 good comparisons. ok
*** Testing nc_get_varm_double ... 1207 good comparisons. ok
*** Testing nc_get_att_text ... 7 good comparisons. ok
*** Testing nc_get_att_uchar ... 5 good comparisons. ok
*** Testing nc_get_att_schar ... 7 good comparisons. ok
*** Testing nc_get_att_short ... 15 good comparisons. ok
*** Testing nc_get_att_int ... 19 good comparisons. ok
*** Testing nc_get_att_long ... 19 good comparisons. ok
*** Testing nc_get_att_float ... 21 good comparisons. ok
*** Testing nc_get_att_double ... 27 good comparisons. ok
*** Testing nc_inq_att ... ok
*** Testing nc_inq_attname ... ok
*** Testing nc_inq_attid ... ok
*** Testing nc_inq_attlen ... ok
*** Testing nc_inq_atttype ... ok
*** Testing nc_create ... ok
*** Testing nc_redef ... 1386 good comparisons. 34 good comparisons. ok
*** Testing nc_sync ... 34 good comparisons. 1386 good comparisons. ok
*** Testing nc_abort ... 1386 good comparisons. 34 good comparisons. ok
*** Testing nc_def_dim ... ok
*** Testing nc_rename_dim ... ok
*** Testing nc_def_var ... ok
*** Testing nc_put_var_text ... 179 good comparisons. ok
*** Testing nc_put_var_uchar ... 264 good comparisons. ok
*** Testing nc_put_var_schar ... 269 good comparisons. ok
*** Testing nc_put_var_short ... 682 good comparisons. ok
*** Testing nc_put_var_int ... 1189 good comparisons. ok
*** Testing nc_put_var_long ... 1189 good comparisons. ok
*** Testing nc_put_var_float ... 1194 good comparisons. ok
*** Testing nc_put_var_double ... 1207 good comparisons. ok
*** Testing nc_put_var1_text ... 179 good comparisons. ok
*** Testing nc_put_var1_uchar ... 264 good comparisons. ok
*** Testing nc_put_var1_schar ... 269 good comparisons. ok
*** Testing nc_put_var1_short ... 682 good comparisons. ok
*** Testing nc_put_var1_int ... 1189 good comparisons. ok
*** Testing nc_put_var1_long ... 1189 good comparisons. ok
*** Testing nc_put_var1_float ... 1194 good comparisons. ok
*** Testing nc_put_var1_double ... 1207 good comparisons. ok
*** Testing nc_put_vara_text ... 179 good comparisons. ok
*** Testing nc_put_vara_uchar ... 264 good comparisons. ok
*** Testing nc_put_vara_schar ... 269 good comparisons. ok
*** Testing nc_put_vara_short ... 682 good comparisons. ok
*** Testing nc_put_vara_int ... 1189 good comparisons. ok
*** Testing nc_put_vara_long ... 1189 good comparisons. ok
*** Testing nc_put_vara_float ... 1194 good comparisons. ok
*** Testing nc_put_vara_double ... 1207 good comparisons. ok
*** Testing nc_put_vars_text ... 179 good comparisons. ok
*** Testing nc_put_vars_uchar ... 264 good comparisons. ok
*** Testing nc_put_vars_schar ... 269 good comparisons. ok
*** Testing nc_put_vars_short ... 682 good comparisons. ok
*** Testing nc_put_vars_int ... 1189 good comparisons. ok
*** Testing nc_put_vars_long ... 1189 good comparisons. ok
*** Testing nc_put_vars_float ... 1194 good comparisons. ok
*** Testing nc_put_vars_double ... 1207 good comparisons. ok
*** Testing nc_put_varm_text ... 179 good comparisons. ok
*** Testing nc_put_varm_uchar ... 264 good comparisons. ok
*** Testing nc_put_varm_schar ... 269 good comparisons. ok
*** Testing nc_put_varm_short ... 682 good comparisons. ok
*** Testing nc_put_varm_int ... 1189 good comparisons. ok
*** Testing nc_put_varm_long ... 1189 good comparisons. ok
*** Testing nc_put_varm_float ... 1194 good comparisons. ok
*** Testing nc_put_varm_double ... 1207 good comparisons. ok
*** Testing nc_rename_var ... 1386 good comparisons. ok
*** Testing nc_put_att_text ... 7 good comparisons. ok
*** Testing nc_put_att_uchar ... 5 good comparisons. ok
*** Testing nc_put_att_schar ... 7 good comparisons. ok
*** Testing nc_put_att_short ... 15 good comparisons. ok
*** Testing nc_put_att_int ... 19 good comparisons. ok
*** Testing nc_put_att_long ... 19 good comparisons. ok
*** Testing nc_put_att_float ... 21 good comparisons. ok
*** Testing nc_put_att_double ... 27 good comparisons. ok
*** Testing nc_copy_att ... 34 good comparisons. ok
*** Testing nc_rename_att ... 34 good comparisons. ok
*** Testing nc_del_att ... ok
*** Testing nc_set_fill ... 2796 good comparisons. ok
Total number of failures: 0
*** Success ***
make[2]: Leaving directory `/usr/local/src/netcdf-3.5/src/nc_test'
Returning to directory /usr/local/src/netcdf-3.5/src
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make[1]: Entering directory `/usr/local/src/netcdf-3.5/src'
Making `test' in directory /usr/local/src/netcdf-3.5/src/fortran
make[2]: Entering directory `/usr/local/src/netcdf-3.5/src/fortran'
+ /usr/pgi/linux86/bin/pgf90 -c -O -w ftest.F
ar cru ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o
fort-genatt.o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o
fort-v2compat.o fort-vario.o fort-var1io.o fort-varaio.o fort-varmio.o
fort-varsio.o
ranlib ../libsrc/libnetcdf.a
/usr/pgi/linux86/bin/pgf90 -o ftest -O -w ftest.o ../libsrc/libnetcdf.a
Linking:
./ftest
make[2]: *** [test] Segmentation fault
make[2]: Leaving directory `/usr/local/src/netcdf-3.5/src/fortran'
make[1]: *** [subdir_target] Error 1
make[1]: Leaving directory `/usr/local/src/netcdf-3.5/src'
make: *** [fortran/test] Error 2
--------------End Forwarded Message