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

971104: building under HP-UX A.09.03 using /usr/softbench/bin/c89



Dear Elke,

>Date: Tue, 04 Nov 1997 12:19:42 MET 
>From: "E.Hocke" <address@hidden>
>Organization: ?
>To: address@hidden (Steve Emmerson)
>Subject: building under HP-UX A.09.03 
>Keywords: 199710231414.IAA16117

In the above message, you wrote:

> Dear Steve,
> 
> might I ask you again for some help?

No problem.

> 
> I tried now to install the packege at our apollo1:
> HP-UX apollo1 A.09.03 E 9000/755 2011717508 8-user license
> As before I used the given environment of the installscript
> with added "-DhpuxFortran" to the CPPFLAGS environment variable.
> But c89 and f77 are in the directory /usr/softbench/bin/, 
> so that I slightly modified the environmental variables CC and FC.
> 
> While executing the command "make" I got the following output:
> 
> cc: "/usr/ccs/bin/yaccpar", line 5: warning 21: 
> Undefined pragma "IDENT" ignored.
> ar: netcdf.o cannot open
> ar: ncvalues.o cannot open
> /bin/ld: Can't open nctst.o
> /bin/ld: No such file or directory
> 
> Stop.
> 
> Stop.
> 
> Stop.

Because diagnosing a problem can be difficult, it helps to have as much
context as possible.  Rather than just having the output from standard
error above, I would prefer to have both the output from standard output
and standard error interleaved together so that I can see the context in
which the error messages were produced.

> 
> The file yaccpar is saved in the directory /usr/lib/, but editing this 
> in file ncgentab.c did not change the output above. 

I don't think the "yaccpar" diagnostic message is significant.

> 
> The executable file ncdump was already produced. The commands 
> ncdump -c/-h worked succesfully, but as I tried to extract
> data from a CDROM the machine broke down and rebooted.
> Our aim is to read the data from the CDROM and to process 
> it in fortran programs.
> 
> I further append the redirected output of the commands "./configure" 
> and "make" as well as the file config.log.
> 
> creating cache ./config.cache
> checking for m4... m4
> checking user-defined C compiler "/usr/softbench/bin/c89"
> checking C compiler... works
> checking how to make dependencies... false
> checking for /usr/softbench/bin/cc... /usr/softbench/bin/cc
> checking C++ compiler "/usr/softbench/bin/cc"... works
> checking how to run the C preprocessor... /usr/softbench/bin/c89 -E
> checking user-defined FORTRAN compiler "/usr/bin/fort77"... 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"... yes
> checking for FORTRAN "integer*2"... yes
> checking if FORTRAN "byte" is C "signed char"... yes
> checking if FORTRAN "byte" is C "short"... no
> checking if FORTRAN "byte" is C "int"... no
> checking if FORTRAN "integer*2" is C "short"... yes
> checking if FORTRAN "integer*2" is C "int"... no
> 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"... byte
> checking for FORTRAN-equivalent to netCDF "short"... integer*2
> checking for math library
> checking for -lc... no
> checking for -lm... 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... yes
> 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... no
> checking whether char is unsigned... no
> checking whether byte ordering is bigendian... yes
> checking size of short... 2
> checking size of int... 4
> checking size of long... 4
> checking size of float... 4
> checking size of double... 8
> checking size of off_t... 4
> checking size of size_t... 4
> 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

The above output from the configure script looks OK *providing* there
were no messages written to standard error.

> 
> Making `all' in directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src/libsrc
> 
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran attr.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran dim.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran error.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran -DVERSION=`cat 
> ../VERSION` libvers.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran nc.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran ncio.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran ncx.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran putget.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran string.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran v1hpg.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran v2i.c
>       /usr/softbench/bin/c89 -c -O -I.  -DNDEBUG -DhpuxFortran 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
> 
> Returning to directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src
> 
> 
> Making `all' in directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src/fortran
> 
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-attio.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-control.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-dim.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-genatt.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-geninq.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-genvar.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-lib.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-misc.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-v2compat.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-vario.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-var1io.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-varaio.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-varmio.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> fort-varsio.c
>       ar cru   ../libsrc/libnetcdf.a fort-attio.o      fort-control.o  
> fort-dim.o      fort-genatt.o   fort-geninq.o   fort-genvar.o   fort-lib.o    
>   fort-misc.o     fort-v2compat.o         fort-vario.o    fort-var1io.o   
> fort-varaio.o   fort-varmio.o   fort-varsio.o
>       ranlib ../libsrc/libnetcdf.a
> 
> Returning to directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src
> 
> 
> Making `all' in directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src/ncdump
> 
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> ncdump.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> vardata.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc  -DNDEBUG -DhpuxFortran 
> dumplib.c
>       /usr/softbench/bin/c89 -o ncdump -O  ncdump.o vardata.o dumplib.o 
> -L../libsrc -lnetcdf  
> 
> Returning to directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src
> 
> 
> Making `all' in directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src/ncgen
> 
>       /usr/softbench/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG -DhpuxFortran 
> main.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG -DhpuxFortran 
> load.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG -DhpuxFortran 
> ncgentab.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG -DhpuxFortran 
> escapes.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG -DhpuxFortran 
> getfill.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG -DhpuxFortran 
> init.c
>       /usr/softbench/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG -DhpuxFortran 
> genlib.c
>       /usr/softbench/bin/c89 -o ncgen -O  main.o load.o ncgentab.o escapes.o  
> getfill.o init.o genlib.o ../libsrc/libnetcdf.a  
> 
> Returning to directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src
> 
> 
> Making `all' in directory /users2/ap1/kd005/netCDF/netcdf-3.3.1/src/cxx
> 
>       /usr/softbench/bin/cc -c -O  -I../libsrc  -DNDEBUG -DhpuxFortran 
> netcdf.cc
>       /usr/softbench/bin/cc -c -O  -I../libsrc  -DNDEBUG -DhpuxFortran 
> ncvalues.cc
>       ar cru   libnetcdf_c++.a netcdf.o ncvalues.o
>       ranlib libnetcdf_c++.a
>       /usr/softbench/bin/cc -c -O  -I../libsrc  -DNDEBUG -DhpuxFortran 
> nctst.cc
>       /usr/softbench/bin/cc -o nctst -I../libsrc  -DNDEBUG -DhpuxFortran -O   
> nctst.o libnetcdf_c++.a -L../libsrc -lnetcdf 
> *** Error code 1
> *** Error code 1
> *** Error code 1

In attempting to diagnose the problem I first have to merge together the
standard output and standard error streams.  I think they should look
something like this:

    /usr/softbench/bin/cc -c -O  -I../libsrc  -DNDEBUG -DhpuxFortran netcdf.cc
    /usr/softbench/bin/cc -c -O  -I../libsrc  -DNDEBUG -DhpuxFortran 
ncvalues.cc
    ar cru       libnetcdf_c++.a netcdf.o ncvalues.o
    ar: netcdf.o cannot open
    ar: ncvalues.o cannot open
    /usr/softbench/bin/cc -o nctst -I../libsrc  -DNDEBUG -DhpuxFortran -O   
nctst.o libnetcdf_c++.a -L../libsrc -lnetcdf
    /bin/ld: Can't open nctst.o
    /bin/ld: No such file or directory
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.

It appears from the above that the files "netcdf.o" and "ncvalues.o" in
the "cxx/" subdirectory were not created.  Do they exist?  If you go
into that subdirectory can you manually create them (either by manually
entering the above compilation commands or by using "make)?  Do you have
write access to that subdirectory?  Is the disk full?

> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1017: /usr/softbench/bin/c89 -c -O -DNDEBUG -DhpuxFortran 
> conftest.c 1>&5
> configure:1150: /usr/softbench/bin/cc -c  -DNDEBUG -DhpuxFortran conftest.C 
> 1>&5
> configure:1217: /usr/softbench/bin/c89 -E -DNDEBUG -DhpuxFortran conftest.c 
> >/dev/null 2>conftest.out
> configure:1316: /usr/bin/fort77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1415: /usr/bin/fort77 -o conftest -O -w conftest.F  -lU77
> /tmp/fcpFAAa08945:
>    MAIN:
> configure:1456: /usr/bin/fort77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1491: /usr/bin/fort77 -c -O -w conftest.f
> conftest.f:
>    sub:
> configure:1514: /usr/bin/fort77 -c -O -w conftest.f
> conftest.f:
>    sub:
> configure:1548: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1550: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1552: ./conftest
> configure:1590: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1592: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1594: ./conftest
> configure:1632: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1634: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1636: ./conftest
> configure:1678: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1680: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1682: ./conftest
> configure:1720: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1722: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1724: ./conftest
> configure:1764: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1766: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1768: ./conftest
> configure:1806: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1808: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1810: ./conftest
> configure:1848: /usr/softbench/bin/c89 -c -DNDEBUG -DhpuxFortran -O conftest.c
> configure:1850: /usr/bin/fort77 -o conftest -O -w  conftestf.f conftest.o 
> conftestf.f:
>    MAIN:
> configure:1852: ./conftest
> configure:1882: /usr/bin/fort77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1903: /usr/bin/fort77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1943: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c -lc   1>&5
> /bin/ld: Unsatisfied symbols:
>    tanh (code)
> configure:1977: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c -lm   1>&5
> configure:2072: /usr/softbench/bin/c89 -E -DNDEBUG -DhpuxFortran conftest.c 
> >/dev/null 2>conftest.out
> configure:2106: /usr/softbench/bin/c89 -E -DNDEBUG -DhpuxFortran conftest.c 
> >/dev/null 2>conftest.out
> configure:2156: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2204: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2238: /usr/softbench/bin/c89 -c -O -DNDEBUG -DhpuxFortran 
> conftest.c 1>&5
> configure:2270: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2322: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2351: /usr/softbench/bin/c89 -E -DNDEBUG -DhpuxFortran conftest.c 
> >/dev/null 2>conftest.out
> configure:2416: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2634: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2672: /usr/softbench/bin/c89 -c -O -DNDEBUG -DhpuxFortran 
> conftest.c 1>&5
> cc: "configure", line 2667: error 1000: Unexpected symbol: "endian".
> cc: "configure", line 2667: error 1588: "bogus" undefined.
> configure:2718: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2756: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2790: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2824: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2858: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2892: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2930: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5
> configure:2968: /usr/softbench/bin/c89 -o conftest -O -DNDEBUG -DhpuxFortran  
> conftest.c  1>&5

The above "config.log" file looks OK.

> I hope not to bother you with this queries and
> thank you very much for your help in advance.

We're here to help.  But please, in the future, join the standard output
and standard error streams together.  In csh-derived shells (csh, tcsh)
this can be done this way:

    command >&! file

In sh-derived shells (sh, ksh, bash) it can be done this way:

    command >file 2>&1

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