RE: Compilation problems on SGI

As Glenn pointed out:

> application must be either 32 bit or 64 bit.

Actually, there are three (3) mutually incompatible regimes on these SGIs.

-32  .... the old 32 bit stuff and what most imsl libs are
-n32 .... the supposedly temporary "new" 32 bit style that allows mips4 
instructions
-64  .... the new 64 bit stuff

The default under irix 6.1, I believe, was -64.
The default behaviour under irix 6.2 is, I believe, -32.
>...
> So, you can rebuild IMSL as a 64 bit object and link with 'cc' or
> you can rebuild libnetcdf.a as a 32 object and relink using 'cc -n32'.

Not many of us have the source IMSL license.

> To rebuild netcdf in 32 bit mode.
> % make distclean
> % setenv CC 'cc -n32'
> % ./configure
> % make

This will build an "n32" library. This is particularly nice if you can get
away with it since n32 code can run about as fast as 64 code with mips4
instructions. If you have the old IMSL library, then this is *old* 32 bit
and you must:

# make distclean
# export CC='cc -32'
# ./configure
# make

[Glenn... the csh? I'm ashamed of you .... :-) ]


  • 1996 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: