pro64-support
[Top] [All Lists]

Problems with -Ofast

To: <pro64-support@xxxxxxxxxxx>
Subject: Problems with -Ofast
From: "Wayne Vieira" <waynev@xxxxxxx>
Date: Sun, 11 Feb 2001 15:47:03 -0800
Importance: Normal
In-reply-to: <200102082259.OAA03243@xxxxxxxxxxx>
Sender: owner-pro64-support@xxxxxxxxxxx
I don't understand how to use the -Ofast optimization level with sgif90.
Given a simple program to compile and load, if I use -Ofast on the compile
but not on the load, then I get:

[wv@t44 temp]$ sgif90 -Ofast main.f -c
[wv@t44 temp]$ sgif90 main.o
main.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

If I use -Ofast on both compile and load, then:

[wv@t44 temp]$ sgif90 -Ofast main.f -c
[wv@t44 temp]$ sgif90 -Ofast main.o
/usr/lib/gcc-lib/ia64-cygnus-linux/2.96-ia64-000717/../../..//libfortran.a(o
pen.o):../../libf/fio/open.c:905: the use of `tempnam' is dangerous, better
use `mkstemp'
/usr/lib/libc_nonshared.a: could not read symbols: Bad value
sgif90 INTERNAL ERROR:  /usr/lib/gcc-lib/ia64-sgi-linux/sgicc-1.0/ipa_link
returned non-zero status 1

So, I just pushed the problem off to mixed optimization levels between my
code
and the libraries.

Is there some other option that is supposed to be used along with -Ofast to
get things to load?  I haven't been able to find anything in the man pages,
but I may just be looking the wrong place.

Thanks,
Wayne


** Wayne Vieira, Systems Engineer, Linux/IRIX, RHCE
** SGI Federal  http://www.sgi.com/linux
** e-mail:  waynev@xxxxxxx



<Prev in Thread] Current Thread [Next in Thread>