Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Again, where are saveFP and restFP?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Again, where are saveFP and restFP?



Joe Koski wrote:
Back when I was trying to build octave-2.1.7x with OS X 10.3.x, on my G5
Mac, I ran into the missing libraries saveFP and restFP when linking. As
Yogi Berra said, "It's deja vu all over again." Now I'm trying to build
octave-2.9.7 on OS X 10.4.7, and I'm getting the same error.

Last time, as I vaguely recall, the solution was to add -lcc_dynamic to
LDFLAGS, but, alas, libcc_dynamic.a no longer exists in /usr/lib in my Xcode
2.3 installation.

What is the workaround? Do these routines now reside elsewhere? Thanks for
any suggestions.

Back in January, you probably listened only with your Panther ears, but the response you got
<http://lists.apple.com/archives/Unix-porting/2006/Jan/msg00046.html>
is valid also on Tiger.


The applicable answer depends very much on the Fortran compiler you are using. It seems to me that with gfortran-4.2, correctly configured, you don't need to do any tricks for that problem any more. OTOH, I don't know if anyone has succeeded to build octave with gfortran.

For g95, depending on its version, some trick seems still necessary, but it should be performed during the building of g95, not when it is used to compile other programs. Fink's g95, for example, uses the following patch line related to the problem in question:

# don't try to get darwin-fpsave.o from /usr/lib/libgcc.a, get instead
# from gccdir (/usr/lib/libgcc.a doesn't exist in 10.4).
perl -pi -e 's|ar x /usr/lib/libgcc.a darwin-fpsave.o|cp \@GCC_DIR\@/g95/gcc/libgcc/darwin-fpsave.o .|' Makefile.in


This means, this version of g95 itself is already aware of the problem and tries to solve it by linking the module darwin-fpsave.o from the libgcc.a library, but it has to be told to take the right one.

--
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Again, where are saveFP and restFP? (From: Joe Koski <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.