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

Russ Rew: Re: 960306: netcdf 2.4 help on irix 5.3



Forgot to CC: support-netcdf on this ...

------- Forwarded Message

Date:    Wed, 06 Mar 1996 16:19:13 -0700
From:    Russ Rew <address@hidden>
To:      address@hidden
Subject: Re: 960306: netcdf 2.4 help on irix 5.3 

>From: address@hidden
>Subject: netcdf 2.4 help on irix 5.3
>Organization: Dept of Atmospheric Science, Colorado State University
>Keywords: 199603061946.AA18251

Hi Kelley,

> i've had the netcdf package on our sgi indigo2 extreme (r4000)
> running irix 5.3.  i just grabbed the new v2.4, installed great
> on my hp's, then came to the sgi and got the following error
> in cxx:
> 
> making `all' in directory /usr/local/src/netcdf-2.4/src/cxx
> 
>         c++ -c  -I../libsrc  netcdf.cc
> mips-tfile:/usr/tmp/cca24763.s symbolic header wrong size (0 bytes,  
> should be 96)
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> 
> 
> i sort of snooped around but can't figure out what the problem is.
> i used the customize file and made only 2 changes.  i set my install
> dir to /usr/local (as i have before) and in the copts, i put
> - -O and -mips2.  configure reported that it couldn't find mips2...?
> anyway, i ignored that and let it go w/o the mips2 option.
> 
> do you guys have any suggestions here?  i hope it's not something
> embarassingly obvious...

I just tried building netcdf-2.4 on an IRIX 5.3 MIPS 4000 (Indigo Elan)
using

   ./configure; make all test

with no changes to the default CUSTOMIZE file, and it seemed to work fine,
including the C++ interface build and test (the default value of CFLAGS is
`-O', so it's not necessary to specify that explicitly).

Then I added the "-mips2" flag to try to reproduce the symptoms you are
seeing (with sh or ksh, I put this in the environment by just preceding
the command with the environment variable setting for that command
invocation):

   make clean
   CFLAGS="-mips2 -O" ./configure
   make all test

This worked fine, although only the C sources were compiled with the -mips2
option; the Fortran and C++ sources would have needed me to set FFLAGS and
CXXFLAGS environment variables as well.

Then I tried setting the CFLAGS environment variable to "- -O -mips2" to use
exactly what you said you tried, though I don't know what the "-" flag is
for:

   make clean
   CFLAGS="- -mips2 -O" ./configure

This didn't even make it through the "configure" script, so it looks like
"-" is not an acceptable option to the SGI C compiler.

Here's the details of the system I tried this on, which looks like it has an
even older version of the C++ compiler than you have:

    $ uname -a                 
    IRIX dana 5.3 11091811 IP20 mips

    $ versions -a | grep -i c++
       c++                  10/01/92  C++, 3.0
    R  c++.hdr              10/01/92  C++ Headers
    R  c++.hdr.lib          10/01/92  C++ Library Headers
    R  c++.man              10/01/92  C++ Manual Pages
    R  c++.man.c++          10/01/92  C++ Compiler Man Pages
    R  c++.man.lib          10/01/92  C++ Library Man Pages
    R  c++.man.relnotes     10/01/92  C++ Release Notes
       c++.opt                        C++ Optional
       c++.opt.gifts                  C++ Gifts
    R  c++.sw               10/01/92  C++ Software
    R  c++.sw.c++           10/01/92  C++ Compiler  (version 3.0)
    R  c++.sw.lib           10/01/92  C++ Libraries
    I  c++_dev              02/17/95  C++, 4.0
    I  c++_dev.books        02/17/95  C++ IRIS InSight Books
    I  c++_dev.books.C++LangSysOverview  02/17/95  C++ Language System Overview
    I  c++_dev.books.C++Lang_System_Lib  02/17/95  C++ Language System Library
    I  c++_dev.books.C++Product_Ref  02/17/95  C++ Language System Product 
Reference Manual
    I  c++_dev.books.C++_PG 02/17/95  C++ Programming Guide
    I  c++_dev.hdr          02/17/95  C++ Headers
    I  c++_dev.hdr.lib      02/17/95  C++ Library Headers
    I  c++_dev.man          02/17/95  C++ Manual Pages
    I  c++_dev.man.c++      02/17/95  C++ Compiler Man Pages
    I  c++_dev.man.relnotes 02/17/95  C++ Release Notes
    I  c++_dev.sw           02/17/95  C++ Software
    I  c++_dev.sw.c++       02/17/95  C++ Compiler
    I  c++_dev.sw.lib       02/17/95  C++ Libraries
    I  c++_dev.sw.libns     02/17/95  C++ NonShared Libraries
    I  c++_eoe              02/17/95  Standard Execution Environment (C++, 4.0)
    I  c++_eoe.man          02/17/95  Standard Execution Manual Pages
    I  c++_eoe.man.relnotes 02/17/95  Standard Execution Libraries Release Notes
    I  c++_eoe.sw           02/17/95  Standard Execution Software
    I  c++_eoe.sw.lib       02/17/95  Standard Execution Libraries
    R  dev.sw.libC          10/01/92  C++ library
    I  il_dev.man.c++       02/17/95  ImageVision C++ Man Pages
       il_dev.sw.c++                  ImageVision C++ API
    I  il_eoe.sw.c++        02/17/95  ImageVision Shared C++ Library
    I  irix4_c++            06/07/94  C++, 3.0.1
    I  irix4_c++.hdr        06/07/94  C++ Headers
    I  irix4_c++.hdr.lib    06/07/94  C++ Library Headers
    I  irix4_c++.sw         06/07/94  C++ Software
    I  irix4_c++.sw.c++     06/07/94  C++ Compiler  (version 3.0)
    I  irix4_c++.sw.lib     06/07/94  C++ Libraries
    I  irix4_dev.sw.libC    06/07/94  C++ library

Since I can't reproduce the problem, I'm afraid I have no suggestion except
maybe to tell configure that you don't want the C++ interface by setting the
CXX macro to the empty string.

- --Russ

______________________________________________________________________________

Russ Rew                                           UCAR Unidata Program
address@hidden                              http://www.unidata.ucar.edu


------- End of Forwarded Message