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

Re: 19990819: Compiling NETCDF 3.4 on HP-UX 10.20



Axel,

> From: address@hidden
> Subject: Compiling NETCDF 3.4 on HP-UX 10.20
> Organization: University of Washington
> Keywords: 199908191900.NAA06819 netCDF 3.4 HP-UX 10.20

In the above message, you wrote:

> I am having a problem compiling netcdf 3.4 on HP-UX 10.20 
> Native HP (ansic) and fortran compilers. Configure gives
> me the following error:
> 
> checking for C-equivalent to Fortran routine "SUB"... nm:  conftest.o:  cannot
> open 
> configure: error: not found

The reason for this should be in the file "config.log" (below).

> 
> 
> >From config.log
> configure:1020: c89 -c -O -DNDEBUG conftest.c 1>&5
> configure:1153: c++ -c  -DNDEBUG conftest.C 1>&5
> gcc: installation problem, cannot exec as: No such file or directory

You appear to be trying to use the native C compiler together with the
GNU C++ compiler.  This is probably not a good idea -- aside from the
fact that the GNU C++ compiler appears to be faulty.  I suggest sticking
to the native compilers all the way or going with the GNU compilers all
the way.

> configure:1153: g++ -c  -DNDEBUG conftest.C 1>&5
> gcc: installation problem, cannot exec as: No such file or directory
> configure:1153: gcc -c  -DNDEBUG conftest.C 1>&5
> gcc: installation problem, cannot exec as: No such file or directory
> 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

If you're going to use the "fort77" compiler on a HP-UX 10 system, then
you need to have an argument after the "-O" option in the FFLAGS
environment variable (as shown in the HP-UX 10 example in the INSTALL
file).

Try the following:

    1.  Go to the top-level source directory.

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

    3.  Ensure that the optimization option in the FFLAGS environment variable 
        is "-O3".

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

Please let me know if this helps.

> 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
> 
> Can you help. The conftest.f file is there but apparently the "SUB" library
> function isn't found. Do you know ehere this is supposed to reside on HP-UX
> 
> Thanks
> Axel
> -- 
> #-----------------------------------------------------------------------------
> # Axel Schweiger                                              Tel:206-543-1312
> # University of Washington                                    Fax:206-616-3142
> # Polar Science Center/Applied Physics Laboratory
> # 1013 NE 40th Street                                      
> # Seattle, Wa 98105                                          address@hidden
> #-----------------------------------------------------------------------------
> 
> 
> ------- End of Forwarded Message

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