From help-request at octave dot org Fri Dec 30 19:20:56 2005 Subject: Re: Build failure on OS X From: Joe Koski To: Octave Help Date: Fri, 30 Dec 2005 18:18:48 -0700 More data that may be relevant from the Apple scitech list: Joe ------ Forwarded Message From: Bill Northcott Date: Sat, 31 Dec 2005 10:07:33 +1100 To: Cc: Subject: Re: R and FORTRAN On 31/12/2005, at 7:05 AM, scitech-request at lists dot apple dot com wrote: > > Thanks everyone. Martin Costabel's comments were right on target. No really they are quite wrong. See below. > I made a > symbolic link from /usr/lib/libcc_dynamic.a to > /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a and it worked! You should not do this. I can tell you from bitter experience that it will cause you trouble. The saveFP/restFP issue appears when you try to link object code built with the FSF versions of gcc2.x or gcc3.x with objects built using the Apple versions of the same compilers. gcc4.x does NOT have this problem because FSF and Apple code is now almost identical. OTOH you should NOT link object code/static libraries built with gcc3.x with objects built with gcc4.x. That is why the symlink is removed when gcc4 is the default compiler. This is not a mistake. If you persist in linking gcc3 and gcc4 objects, you will have a lot of seg faults! Current R distributions are built with gcc-3.3 and g77 which is included in the binary distribution. Use these to build extensions. If you want to use gcc4, you must build R from source using gcc4/ gfortran. gcc4 and g77 are not compatible. Using gcc4 for R at this time is not simple. All this has been well discussed on R mail lists, which are your best source. Cheers Bill _______________________________________________ Do not post admin requests to the list. They will be ignored. Scitech mailing list (Scitech at lists dot apple dot com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/scitech/jkoski11%40comcast.net This email sent to jkoski11 at comcast dot net ------ End of Forwarded Message ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------