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

971021: Problem building netcdf library on CRAY C90



Perry,

>Date: Tue, 21 Oct 1997 17:24:29 -0400 (EDT) 
>From: Perry Shafran <address@hidden>
>Organization: General Sciences Corporation
>To: Steve Emmerson <address@hidden>
>Subject: Re: 971021: Problem building netcdf library on CRAY C90 
>Keywords: 199710211532.JAA26991

In the above message, you wrote:

> I did as you had suggested, with the only difference being that I finally 
> was able to locate an f90 compiler, so I set FC=/opt/ctl/bin/f90.  That 
> finally got the config program to work, but I still could not make.  The 
> file "ffio.h" does not exist.  I'm assuming that should have been part of 
> the tar file from the ftp site.

Actually, the file "ffio.h" is supplied by CRAY (I erred is asking if it
was in the libsrc/ subdirectory).  We supply the file libsrc/ffio.c.

Because the compiler can't find <ffio.h>, we suspect that you don't have
your development environment correctly set.  On our C90 we have to have
the following in our .cshrc file:

    if ( -f /opt/modules/modules/init/csh ) then
            source /opt/modules/modules/init/csh
            module load modules PrgEnv nqe
    endif

Please consult your systems administrator for more information.


> Here is the output when I type "make":
> 
> 
> Making `all' in directory /dmlite3/wd20ps/netcdf-3.3.1/src/libsrc
> 
>       c89 -c -O -I.  -DNDEBUG attr.c
>       c89 -c -O -I.  -DNDEBUG dim.c
>       c89 -c -O -I.  -DNDEBUG error.c
>       c89 -c -O -I.  -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
>       c89 -c -O -I.  -DNDEBUG nc.c
>       c89 -c -O -I.  -DNDEBUG ncio.c
> cc-315 c89: ERROR ncio.c, Line = 6, File = ./ffio.c, Line = 16
>   The include file "ffio.h" is unavailable.
> cc-526 c89: ERROR ncio.c, Line = 6, File = ./ffio.c, Line = 43
>   The identifier "sb" is declared to have an incomplete type.
> cc-526 c89: ERROR ncio.c, Line = 6, File = ./ffio.c, Line = 44
>   The identifier "sw" is declared to have an incomplete type.
> cc-478 c89: ERROR ncio.c, Line = 6, File = ./ffio.c, Line = 45
>   The identifier "FC_STAT" is not declared.
> cc-421 c89: ERROR ncio.c, Line = 6, File = ./ffio.c, Line = 47
>   The member name "st_oblksize" is not a member of the "struct" or "union".
> cc-526 c89: ERROR ncio.c, Line = 6, File = ./ffio.c, Line = 427
>   The identifier "stat" is declared to have an incomplete type.
> cc-526 c89: ERROR ncio.c, Line = 6, File = ./ffio.c, Line = 498
>   The identifier "stat" is declared to have an incomplete type.
> 
> TOTAL ERRORS DETECTED IN ncio.c: 7
> Make: "c89 -c -O -I.  -DNDEBUG ncio.c": Error code 1
> cmd-2436 make: Stop.
> Make: "cd libsrc && \
>     echo "Making \`all' in directory `pwd`" && \
>     echo "" && \
>     make all || exit 1": Error code 1
> Make: "subdir=`echo libsrc/all | sed 's,/.*,,'`; \
> target=`echo libsrc/all | sed 's,.*/,,'`; \
> make SUBDIR=$subdir TGET=$target subdir_target": Error code 1
> cmd-2436 make: Stop.
> 
> This is the same as before.  The configure output does not have any 
> errors (except those relating to the C++ interface), so I am not sending 
> you the configure printout.  However, here is the output for config.log:
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1017: c89 -c -O -DNDEBUG conftest.c 1>&5
> configure:1217: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1316: /opt/ctl/bin/f90 -c -F -dp -O2 conftest.f
> configure:1415: /opt/ctl/bin/f90 -o conftest -F -dp -O2 conftest.F  
> configure:1456: /opt/ctl/bin/f90 -c -F -dp -O2 conftest.f
> configure:1491: /opt/ctl/bin/f90 -c -F -dp -O2 conftest.f
> 
>       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 "=>".
> 
> cf90: Cray CF90 Version 3.0.0.0 (f17p44g123a38) Tue Oct 21, 1997  17:11:43
> cf90: COMPILE TIME 0.012302 SECONDS
> cf90: MAXIMUM FIELD LENGTH 474966 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 -F -dp -O2 conftest.f
> configure:1514: /opt/ctl/bin/f90 -c -F -dp -O2 conftest.f
> configure:1548: c89 -c -DNDEBUG -O conftest.c
> configure:1550: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1552: ./conftest
> configure:1590: c89 -c -DNDEBUG -O conftest.c
> configure:1592: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1594: ./conftest
> configure:1632: c89 -c -DNDEBUG -O conftest.c
> configure:1634: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1636: ./conftest
> configure:1678: c89 -c -DNDEBUG -O conftest.c
> configure:1680: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1682: ./conftest
> configure:1720: c89 -c -DNDEBUG -O conftest.c
> configure:1722: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1724: ./conftest
> configure:1764: c89 -c -DNDEBUG -O conftest.c
> configure:1766: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1768: ./conftest
> configure:1806: c89 -c -DNDEBUG -O conftest.c
> configure:1808: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1810: ./conftest
> configure:1848: c89 -c -DNDEBUG -O conftest.c
> configure:1850: /opt/ctl/bin/f90 -o conftest -F -dp -O2  conftestf.f 
> conftest.o 
> configure:1852: ./conftest
> configure:1882: /opt/ctl/bin/f90 -c -F -dp -O2 conftest.f
> 
>                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 "=>".
> 
> cf90: Cray CF90 Version 3.0.0.0 (f17p44g123a38) Tue Oct 21, 1997  17:13:12
> cf90: COMPILE TIME 0.012048 SECONDS
> cf90: MAXIMUM FIELD LENGTH 474966 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 -F -dp -O2 conftest.f
> configure:1903: /opt/ctl/bin/f90 -c -F -dp -O2 conftest.f
> configure:1943: c89 -o conftest -O -DNDEBUG  conftest.c -lc   1>&5
> cc-252 c89: 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: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2106: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2156: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2204: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2238: c89 -c -O -DNDEBUG conftest.c 1>&5
> cc-172 c89: WARNING File = configure, Line = 2234
>   No code is generated for a superfluous expression.
> 
> TOTAL WARNINGS DETECTED IN conftest.c: 1
> configure:2270: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2322: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2351: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2416: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2634: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2672: c89 -c -O -DNDEBUG conftest.c 1>&5
> cc-478 c89: ERROR File = configure, Line = 2667
>   The identifier "bogus" is not declared.
> 
> TOTAL ERRORS DETECTED IN conftest.c: 1
> configure:2718: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2756: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2790: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2824: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2858: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2892: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2930: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2968: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
> 
> Thanks in advance for any more suggestions.
> 
> Perry

--------
Steve Emmerson   <http://www.unidata.ucar.edu>