[R-SIG-Mac] a question regarding Leopard and gfortran

Ivan Alves papucho at mac.com
Thu Oct 23 14:18:32 CEST 2008


Dear Simon,

If I understand you correctly, this means that leopard users wanting  
to compile R themselves either a) stick with the pre-leopard  
instructions (Xcode 2.4 based) or b) somehow (how?) obtain the 10.3  
SDK so as to have the convenience of the gcc_select script or c)  
symlink to the gcc 4.2 binaries (how?)

Thank you very  much for all your efforts for the Mac R community, it  
is just that for some months now (since Xcode 3.1 was released) that I  
would like to try the new gcc for building R, but I am stuck with 4.0.1

kind regards,

Ivan
On 22 Oct 2008, at 21:39, Simon Urbanek wrote:

>
> On Oct 22, 2008, at 15:13 , Kasper Daniel Hansen wrote:
>
>> Thanks to Simon for all the work on the compilers.
>>
>> I can see that the compilers and instructions have been updated on  
>> the "tools" page (r.research.att.com/tools). It seems as if the  
>> recommended way for us Leopard users is to use
>>
>> gcc 4.2 (Apple Inc. build 5564) for Mac OS X 10.4 (Tiger): (updated  
>> 2008/09/16)
>>
>> in order to get a gfortran.
>>
>
> No, on Leopard you should get the gfortran-4.2 for Leopard. That  
> keeps your Xcode gcc intact. Unfortunately the PackageManager is a  
> bit broken, so the packaged version is still 5531, but there is also  
> a 5564 version based in GNU Fortran 4.2.4 at
> http://r.research.att.com/gfortran-4.2-5564-darwin9.tar.gz
> it requires Xcode 3.1 to work. I'm currently building the Leopard  
> release which will include that compiler.
>
>
>> Unfortunately, unlike earlier gfortrans, this one also overwrites  
>> the Xcode GCC (although it seems as if it is the same exact  
>> version) and does not come with a gfortran-uninstall script.  
>> Personally I am a bit hesitant to do this, I vastly prefer the old  
>> style with a separate gfortran and an uninstall script. Is there  
>> any chance we will get this? Or should I be using gfortran 4.2.3  
>> anyway?
>>
>> Small comments on the page
>> 1) the comment on Xcode 3.1 under Leopard CRAN seems a bit odd.  
>> When I run the Xcode 3.1 installer I do not really have an option  
>> of (de)selecting 4.2 separately.
>
> Ok, thanks, point taken, gcc-4.2 is on by default now which I didn't  
> notice.
>
>
>> 2) I cannot find the gcc_select script mentioned under alternative  
>> compilers in my installation. I know I used to have it under Tiger  
>> to switch between gcc 3 and 4, but it is absent on my machine
>>
>
> ... in which case you clearly cannot use it ;) That's why I  
> mentioned it as one of the alternatives. It will be present if you  
> installed the 10.3 SDK on Leopard and it works just fine with gcc-4.2.
>
> Cheers,
> Simon
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list