[R-SIG-Mac] gfortran

Simon Urbanek simon.urbanek at r-project.org
Fri Jan 27 20:02:42 CET 2006


Paul,

On Jan 27, 2006, at 12:31 PM, Paul Roebuck wrote:

> The gfortran referenced on the TigerGCC wiki page is 4.0.0(5202)  
> for Xcode 2.1. I loaded this on my system before remembering I'm  
> running Xcode 2.2.1. My gcc version is 4.0.1(5250) which is newer  
> than the full replacement tarball 4.0.1(5224) as well.

> Are these compatible or is there a later (working) gfortran that  
> goes with the build on my iMacG5?
>

The problem is that the answer to the latter is "no". Apple's branch  
has broken gfortran a while ago. So right now there are basically two  
alternatives - use old Apple-branch gfortran or use the FSF build (I  
tried to port FSF changes to Apple's build but failed - anyone who  
succeeded, please let me know).

For the latest optimized R (ppc64) I am currently using complete FSF  
build of gcc off the 4.0.x branch and it works fine. In fact the  
upcoming R 2.2.1 release for Intel Macs (due sometime next week) is  
also built using those tools.

As for the 5224 and Xode 2.2, I don't know about the compatibility,  
because I have only one box with Xcode 2.2 due to all the issues it  
was causing and that one is already heavily infested with various  
builds of gfortran so frankly I can't tell. With the 5224 you'll also  
lose the ability to compile i386 code, because those are not "fat"  
compilers (but AFAIK three is no gfortran that would support fat  
builds anyway). I can package my latest FSF gcc build for anyone  
interested... I have it in a separate directory so it doesn't  
conflict with the 'regular' tools.

Cheers,
Simon



More information about the R-SIG-Mac mailing list