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

Re: 19990601: netcdf "make test" failure under Red Hat Linux 2.2.5



Graham,

> To: address@hidden
> From: Graham Campbell <address@hidden>
> Subject: netcdf "make test" failure
> Organization: Brookhaven National Laboratory
> Keywords: 199905282013.OAA17107

In the above message, you wrote:

> I am trying to build netcdf on a new RedHat Linux system. It fails the
> test.
>
> Here is some of the information you request:
> 
> gc@pro11[99]~/netcdf-linux/netcdf-3.4/src> uname -a
> Linux pro11.bnl.gov 2.2.5-15smp #1 SMP Mon Apr 19 22:43:28 EDT 1999 i686 
> unknown
> gc@pro11[100]~/netcdf-linux/netcdf-3.4/src> cat VERSION 
> 3.4
> gc@pro11[101]~/netcdf-linux/netcdf-3.4/src> env
...
> CPPFLAGS=-Df2cFortran
> CFLAGS=-g
> FFLAGS=-O -Nx400 -w

If you're using /usr/bin/g77 as your Fortran compiler (/usr/bin/f77 is
a link to /usr/bin/g77 on our Red Hat Linux system) then -- according
to the TESTED SYSTEMS section in the INSTALL file -- you shouldn't use the
"-Nx400" option.

> CXX=/usr/bin/c++
> CC=/usr/bin/cc
> FC=/usr/bin/f77
> 
> and I have attached the log files.
> 
> -- 
> Graham
> address@hidden
>  filename="config.log"
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1020: /usr/bin/cc -c -g -Df2cFortran conftest.c 1>&5
> configure:1153: /usr/bin/c++ -c  -Df2cFortran conftest.C 1>&5
> configure:1220: /usr/bin/cc -E -Df2cFortran conftest.c >/dev/null 
> 2>conftest.out
> configure:1319: /usr/bin/f77 -c -O -Nx400 -w conftest.f
> f77: unrecognized option `-Nx400'
> configure:1422: /usr/bin/f77 -o conftest -O -Nx400 -w conftest.F  
> f77: unrecognized option `-Nx400'

The above also indicates that you shouldn't use the "-Nx400" option if 
you're using the /usr/bin/g77 Fortran compiler.

...
> --------------65FDD2450A531A4BBCD6D096
> Content-Type: text/plain; charset=us-ascii;
>  name="make.log"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
>  filename="make.log"
> 
> make: *** Warning: File `macros.make' has modification time in the future 
> (927921988 > 927921943)
> make[1]: Entering directory `/home/gc/netcdf-linux/netcdf-3.4/src'
> make[1]: *** Warning: File `macros.make' has modification time in the future 
> (927921988 > 927921943)
> 
> Making `all' in directory /home/gc/netcdf-linux/netcdf-3.4/src/libsrc
> 
> make[2]: Entering directory `/home/gc/netcdf-linux/netcdf-3.4/src/libsrc'
> make[2]: *** Warning: File `../macros.make' has modification time in the 
> future (927921988 > 927921943)
> /usr/bin/cc -c -g -I.  -Df2cFortran attr.c
> /usr/bin/cc -c -g -I.  -Df2cFortran dim.c
> /usr/bin/cc -c -g -I.  -Df2cFortran error.c
> /usr/bin/cc -c -g -I.  -Df2cFortran -DVERSION=`cat ../VERSION` libvers.c
> /usr/bin/cc -c -g -I.  -Df2cFortran nc.c
> /usr/bin/cc -c -g -I.  -Df2cFortran ncio.c
> /usr/bin/cc -c -g -I.  -Df2cFortran ncx.c
> /usr/bin/cc -c -g -I.  -Df2cFortran putget.c
> /usr/bin/cc -c -g -I.  -Df2cFortran string.c
> /usr/bin/cc -c -g -I.  -Df2cFortran v1hpg.c
> /usr/bin/cc -c -g -I.  -Df2cFortran v2i.c
> /usr/bin/cc -c -g -I.  -Df2cFortran 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]: *** Warning:  Clock skew detected.  Your build may be incomplete.

It appears that the clock on your system is off.  This might be the
cause of all the problems you experienced.

...
> --------------65FDD2450A531A4BBCD6D096
> Content-Type: text/plain; charset=us-ascii;
>  name="test.log"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
>  filename="test.log"
> 
> make[1]: Entering directory `/home/gc/netcdf-linux/netcdf-3.4/src'
> 
> Making `test' in directory /home/gc/netcdf-linux/netcdf-3.4/src/libsrc
> 
> make[2]: Entering directory `/home/gc/netcdf-linux/netcdf-3.4/src/libsrc'
> /usr/bin/cc -c -g -I.  -Df2cFortran t_nc.c
> make[2]: *** Warning: File `libnetcdf.a' has modification time in the future 
> (927922030 > 927921994)
> 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/cc -o t_nc -g  t_nc.o -L. -lnetcdf 
> ./t_nc
> make[2]: *** [test] Segmentation fault (core dumped)

The above error message is not very helpful in diagnosing the problem (other 
than indicating a severe and fundamental problem).

Let's try starting from scratch.  I suggest doing the following:

    1.  Fix your system's clock.

    2.  Perform steps 2 through 4 near the end of the INSTALL file.

    3.  Set your environment variables as before but ensure that the
        following environment variables have the suggested values:

            ENVIRONMENT VARIABLE        SUGGESTED VALUE
            --------------------        ----------------
            FC                          /usr/bin/g77 (assuming it
                                                      exists; otherwise, use
                                                      /usr/bin/f77 again)
            FFLAGS                      -O -Wno-globals

    4.  Perform steps 6 through 9 near the end of the INSTALL file.

Please let me know if this helps.

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