Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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 .... :-) ]


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690