[Thread Prev][Thread Next][Index]

Re: Building External Functions on an IRIX64 system



Hi Cyndy,

It turns out that the complex and differing programming interfaces to the
run time libraries that accompany each compiler pretty much require that
external functions be compiled (and linked) with the same compiler that was
used to build Ferret. The first thing that I would suggest is to try your
external function build using f77 instead of f90.

If that doesn't do the trick the folks at GFDL have recently relinked Ferret
with f90 on Irix for just this purpose. You can contact Kevin O'Brien
(kobrien@pmel.noaa.gov) for further information.

    - steve

==============

Cyndy Chandler wrote:

> Help!
> I'm trying to build some Ferret external functions on an SGI system.
>
> % uname -a
> IRIX64 synthesis 6.5 01101245 IP27
> % ferret
>         NOAA/PMEL TMAP
>         Program FERRET
>         Version 5.22 - 08/23/00
>         26-Sep-01 12:52
>
> I'm trying this just to compile one of the Fortran modules:
>        f90 -O -o scat2ddups.o scat2ddups.F
>
> and getting:
> ld32: WARNING 85: definition of __q_sign in
> /usr/lib32/mips4/libfortran.so preempts that definition in
> /usr/lib32/mips4/libftn.so.
> ld32: WARNING 85: definition of s_cat in /usr/lib32/mips4/libfortran.so
> preempts that definition in /usr/lib32/mips4/libftn.so.
> ld32: WARNING 85: definition of b_pad in /usr/lib32/mips4/libfortran.so
> preempts that definition in /usr/lib32/mips4/libftn.so.
> ld32: WARNING 85: definition of s_cmp in /usr/lib32/mips4/libfortran.so
> preempts that definition in /usr/lib32/mips4/libftn.so.
> ld32: WARNING 85: definition of s_copy in /usr/lib32/mips4/libfortran.so
> preempts that definition in /usr/lib32/mips4/libftn.so.
> ld32: Bus error.  Removing output file...
> ld32: INFO 152: Output file removed because of error.
> f90 INTERNAL ERROR:  /usr/lib32/cmplrs/ld32 returned non-zero status 1
> *** Error code 1 (bu21)
>
> I figure the WARNINGS are OK, but
> ld32: Bus error.   ???
>
> I've tried various combinations of ENVar settings, including:
> #    CC='/usr/bin/cc -64'
> #    CPPFLAGS=-DNDEBUG
> #    CFLAGS=-O
> #    FC='/usr/bin/f90 -64'
> #    FFLAGS=-O
> #    F90='/usr/bin/f90 -64'
> #    CXX='/usr/bin/CC -64'
> #    CXXFLAGS=-O
>
> Can anyone help me with this?
> Perhaps if someone had a
> $FERRET_STUFF/ext_func/src/ef_utility/platform_specific_flags.mk.irix64
> type of definition file?  The iris4d version didn't work on my system.
>
> Thank you,
> Cyndy

--
Steve Hankin
NOAA/PMEL, 7600 Sand Point Way NE, Seattle, WA 98115-0070
ph. (206) 526-6080 -- FAX (206) 526-6744




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement