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

20000607: building on HP system: -O requires numeric argument



Matina,

> From: Matina Alexandry <address@hidden>
> Subject: NETCDF COMPILATION
> Organization: ?
> Keywords: 200006071301.e57D14T21220 netCDF configure HP1050

In the above message, you wrote:

> I try to install GMT3.3.4  in an HP machine with a HP1050 
> operating system. Trying to compile netcdf I run first 
> ./configure from /../netcdf-3.4/src directory 
> 
> A) The following message is coming when running ./configue
> 
> loading cache ./config.cache
> checking for m4... m4
> checking for xlc... no
> checking for c89... c89
> checking C compiler... works
> checking how to make dependencies... false
> checking for CC... CC
> checking C++ compiler "CC"... works
> checking how to run the C preprocessor... c89 -E
> checking for fort77... fort77
> checking for Fortran .F compiler... 
> checking if Fortran compiler handles *.F files... yes
> checking for C-equivalent to Fortran routine "SUB"... nm:  conftest.o:
> cannot open 
> configure: error: not found
> 
> B) This is the config.log file
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1020: c89 -c -O -DNDEBUG conftest.c 1>&5
> configure:1153: CC -c  -DNDEBUG conftest.C 1>&5
> configure:1220: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1373: fort77 -c -O conftest.f
> fort77: POSIX 1003.2 mandates opt level following -O; expected values 0-4,
> received: conftest.f; ignored
> configure:1422: fort77 -o conftest -O conftest.F  -lU77
> fort77: POSIX 1003.2 mandates opt level following -O; expected values 0-4,
> received: conftest.F; ignored
> configure:1463: fort77 -c -O conftest.f
> fort77: POSIX 1003.2 mandates opt level following -O; expected values 0-4,
> received: conftest.f; ignored

It appears from the above that the "-O" option to the "fort77" compiler
requires a numeric argument.  This means that the FFLAGS environment
variable must be appropriately set before executing the configure
script.

Try the following:

    1.  Go to the top-level source directory.

    2.  Perform steps 3 through 5 near the end of the INSTALL file.

    3.  Ensure that the environment variable FFLAGS contains the strings
        "-O 3" and "-D_HPUX_SOURCE".

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

Please let me know if this helps.

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