This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Dear Danan, >Date: Mon, 16 Jun 1997 15:51:51 -0700 >From: address@hidden >Organization: NASA/JPL >To: address@hidden >Subject: netcdf3.3.1 >Keywords: 199706162252.QAA18919 In the above message, you wrote: > Dear Sir: > I am trying to compile netcdf3.3.1 in our CRAY. The > followings are the information: > 1. uname -a: sn9025 galaxy 9.0.2.0 llo.1 CRAY J90 > 2. VERSION: 3.3.1 > 3. configure output: > creating cache ./config.cache > checking for m4... m4 > checking user-defined C compiler "/opt/ctl/bin/cc" > checking C compiler... works > checking how to make dependencies... false > checking for /opt/ctl/bin/CC... /opt/ctl/bin/CC > checking C++ compiler "/opt/ctl/bin/CC"... works > checking how to run the C preprocessor... /opt/ctl/bin/cc -E > checking user-defined FORTRAN compiler "/opt/ctl/bin/f90"... works > checking for FORTRAN .F compiler... > checking if FORTRAN compiler handles *.F files... yes > checking for C-equivalent to FORTRAN routine "SUB"... SUB > checking for FORTRAN "byte"... no > checking for FORTRAN "integer*1"... yes > checking for FORTRAN "integer*2"... yes > checking if FORTRAN "integer*1" is C "signed char"... no > checking if FORTRAN "integer*1" is C "short"... yes > checking if FORTRAN "integer*1" is C "int"... yes > checking if FORTRAN "integer*2" is C "short"... yes > checking if FORTRAN "integer*2" is C "int"... yes > checking if FORTRAN "integer" is C "int"... yes > checking if FORTRAN "real" is C "float"... yes > checking if FORTRAN "doubleprecision" is C "double"... yes > checking for FORTRAN-equivalent to netCDF "byte"... integer*1 > checking for FORTRAN-equivalent to netCDF "short"... integer*2 > checking for math library > checking for -lc... 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 ftruncate... yes > checking for st_blksize in struct stat... yes > checking whether cross-compiling... no > checking for IEEE floating point format... no > 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... yes > checking whether char is unsigned... yes > checking whether byte ordering is bigendian... yes > checking size of short... 0 > checking size of int... 0 > checking size of long... 0 > checking size of float... 0 > checking size of double... 0 > checking size of off_t... 0 > checking size of size_t... 0 Your problem stems from the configure script determining that the sizes of the above types are zero. This caused the compile of libsrc/putget.c to fail because it didn't have any code for handling this situation. See the next comment. > checking for catman... no > checking for makewhatis... no > 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 > 4. CC=/opt/ctl/bin/cc > CFLAGS=-O3 > FC=/opt/ctl/bin/f90 > FFLAGS=-O3 -F -i64 -dp > 5. config.log file: > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:1017: /opt/ctl/bin/cc -c -O3 -DNDEBUG conftest.c 1>&5 > configure:1150: /opt/ctl/bin/CC -c -h char -DNDEBUG conftest.C 1>&5 > configure:1217: /opt/ctl/bin/cc -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:1316: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > configure:1415: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftest.F > configure:1456: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > configure:1491: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > cf90: Cray CF90 Version 2.x.x.x (f44a29t90) Mon Jun 16, 1997 14:58:08 > > byte value > ^ > cf90-724 f90: ERROR SUB, File = conftest.f, Line = 2, Column = 17 > Unknown statement. Expected assignment statement but found "EOS" instead > of "=" or "=>". > > Cray CF90 Version 2.0.1.0 06/16/97 14:58:07 > cf90: COMPILE TIME 0.028000 SECONDS > cf90: MAXIMUM FIELD LENGTH 238014 DECIMAL WORDS > cf90: 3 SOURCE LINES > cf90: 1 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI > cf90: CODE: 0 WORDS, DATA: 0 WORDS > configure:1491: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > configure:1514: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > configure:1548: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1550: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1552: ./conftest > configure:1590: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1592: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1594: ./conftest > configure:1632: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1634: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1636: ./conftest > configure:1678: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1680: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1682: ./conftest > configure:1720: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1722: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1724: ./conftest > configure:1764: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1766: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1768: ./conftest > configure:1806: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1808: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1810: ./conftest > configure:1848: /opt/ctl/bin/cc -c -DNDEBUG -O3 conftest.c > configure:1850: /opt/ctl/bin/f90 -o conftest -O3 -F -i64 -dp conftestf.f > conftest.o > configure:1852: ./conftest > configure:1882: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > cf90: Cray CF90 Version 2.x.x.x (f44a29t90) Mon Jun 16, 1997 15:01:49 > > byte foo > ^ > cf90-724 f90: ERROR $MAIN, File = conftest.f, Line = 1, Column = 24 > Unknown statement. Expected assignment statement but found "EOS" instead > of "=" or "=>". > > Cray CF90 Version 2.0.1.0 06/16/97 15:01:48 > cf90: COMPILE TIME 0.028000 SECONDS > cf90: MAXIMUM FIELD LENGTH 238014 DECIMAL WORDS > cf90: 2 SOURCE LINES > cf90: 1 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI > cf90: CODE: 0 WORDS, DATA: 0 WORDS > configure:1882: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > configure:1903: /opt/ctl/bin/f90 -c -O3 -F -i64 -dp conftest.f > configure:1943: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c -lc > 1>&5 > cc-252 cc: WARNING File = configure, Line = 1939 > Library function "tanh" is called with the wrong number of arguments. > > TOTAL WARNINGS DETECTED IN conftest.c: 1 > configure:2072: /opt/ctl/bin/cc -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:2106: /opt/ctl/bin/cc -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:2156: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > configure:2204: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > configure:2238: /opt/ctl/bin/cc -c -O3 -DNDEBUG conftest.c 1>&5 > cc-172 cc: WARNING File = configure, Line = 2234 > No code is generated for a superfluous expression. > > TOTAL WARNINGS DETECTED IN conftest.c: 1 > configure:2270: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > configure:2322: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > configure:2351: /opt/ctl/bin/cc -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:2416: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > configure:2634: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > configure:2672: /opt/ctl/bin/cc -c -O3 -DNDEBUG conftest.c 1>&5 > cc-478 cc: ERROR File = configure, Line = 2667 > The identifier "bogus" is not declared. > > TOTAL ERRORS DETECTED IN conftest.c: 1 > configure:2718: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 The following compile-and-link is where the configure script attempted to determine the size of a C "short. > configure:2756: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > cc-882 cc: INTERNAL in command line > "/opt/ctl/scc/scc/lib/sccom" was terminated due to receipt of signal 7: > Error Exit (core dumped). Apparently, something went wrong with the compile-and-link. I believe signal 7 on your system is CPULIM. It looks like you ran out of time. You'll have to get more CPU time. When you start over, you'll have to re-execute the configure script. Could it be that you don't have enough CPU time to even execute the configure script? > configure:2790: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > cc-882 cc: INTERNAL in command line > "/opt/ctl/scc/scc/lib/sccom" was terminated due to receipt of signal 7: > Error Exit (core dumped). > configure:2824: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > cc-882 cc: INTERNAL in command line > "/opt/ctl/scc/scc/lib/sccom" was terminated due to receipt of signal 7: > Error Exit (core dumped). > configure:2858: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > cc-882 cc: INTERNAL in command line > "/opt/ctl/scc/scc/lib/sccom" was terminated due to receipt of signal 7: > Error Exit (core dumped). > configure:2892: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > cc-882 cc: INTERNAL in command line > "/opt/ctl/scc/scc/lib/sccom" was terminated due to receipt of signal 7: > Error Exit (core dumped). > configure:2930: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > cc-882 cc: INTERNAL in command line > "/opt/ctl/scc/scc/lib/sccom" was terminated due to receipt of signal 7: > Error Exit (core dumped). > configure:2968: /opt/ctl/bin/cc -o conftest -O3 -DNDEBUG conftest.c 1>&5 > cc-882 cc: INTERNAL in command line > "/opt/ctl/scc/scc/lib/sccom" was terminated due to receipt of signal 7: > Error Exit (core dumped) > 6. I manually copy libsrc/ncx_cray.c to libsrc/ncx.c, then > I run configure. The infomation is above. > Then I goto libsrc directory, manually run > make attr.o putget.o CPPFLAGS=-DNDEBUG CFLAGS=-O2 > The output is: > /opt/ctl/bin/cc -c -O2 -DNDEBUG attr.c > /opt/ctl/bin/cc -c -O2 -DNDEBUG putget.c > cc-301 cc: ERROR File = putget.c, Line = 159 > "#error": NC_fill_int implementation > Make: "/opt/ctl/bin/cc -c -O2 -DNDEBUG putget.c": Error code 1 > cmd-2436 make: Stop. > > Thanks for your helps > > Sincerely, > Danan Dong -------- Steve Emmerson <address@hidden>