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
What is the workaround? Do these routines now reside elsewhere? Thanks for
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.
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