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?



On 30/07/2006, at 5:04 AM, 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.

Just for the nth time:
This error is caused by trying to mix objects built with gcc3 and objects built with gcc4.


It usually comes up building mixed Fortran and C. If you use g77 for the Fortran, you must have gcc3.3 as the default compiler. (selected with gcc_select). If you use gfortran then gcc4 must be the default.

You can also get into this strife if you download a binary containing a static library, because there is no way I know to easily tell which compiler was used for the library. Either use dylibs, which are not compiler specific or build everything from source with a compatible compiler combination.

Don't stuff about with symlinks as advocated in lots of messages in the archives. That is all done automagically if you have the right default compiler. Fudging the symlinks might let something build, but it is likely to crash in a weird way while being run.

g95 is probably better avoided. It is now no better than gfortran in what it will build and to all account the resulting code on Darwin is generally not as fast at runtime.

Bill Northcott

_______________________________________________
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




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.