Thanks a lot, that was very helpful.

On a side note I am surprised to see that R-devel's configure script picks up
  /usr/local/bin/gfortran-4.2
instead of
  /usr/bin/gfortran-4.2
even though /usr/bin is ahead of /usr/local/bin in my path. Is that an autoconf setting, that /usr/local/bin is always first, or is it an R thing or?

Here is my path
kasper-hansens-macbook:~/Source/R-devel/> echo $PATH
/Users/khansen/Bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/ texbin:/usr/X11/bin

and here is a relevant snippet from config.log
PATH: /usr/X11/bin
PATH: /usr/local/bin
PATH: /Users/khansen/Bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /usr/local/bin

It seems like /usr/X11/bin and /usr/local/bin is prepended to the PATH setting/

Kasper

On Aug 29, 2008, at 8:53 AM, Simon Urbanek wrote:


On Aug 28, 2008, at 23:59 , Kasper Daniel Hansen wrote:

I want to get a suitable gfortran for Xcode 3.1 under Leopard in order to build x86_64

Despite reading the "tools" and "building" pages on r.research.att.com I am still confused. The comment on GCC 4.2 on the "building" page seems to indicate that I should look under the "Alternative" section on "tools".

Here I see gfortran-42.pkg which has a build of 5531. But my version(s) of GCC are

kasper-hansens-macbook:~/Work/packages/> gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

kasper-hansens-macbook:~/Work/packages/> gcc-4.2 --version
i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5564)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and at the top of the page I see gfortran-4.2.3.pkg which seems to be a later version (but has no build information).

So which one should I use?


gfortran-42.pkg complements Apple's gcc-4.2 compiler so if you have Apple's gcc-4.2 then that is the way to go.

I don't see "gfortran-4.2.3.pkg" on the page, but there is "gfortran-4.2.3.dmg" which is a pure GNU Fortran (thus it doesn't have any Apple build number) living in /usr/local, independent of the Apple compilers. That is what we supply with R since we cannot rely on gcc-4.2 (until recently it was not available to the public). Also it lives in /usr/local to be fully independent.

As for the build numbers - Apple is very slow in releasing sources for their binaries, so the current build is usually not available. (Apparently they have put 5564 up just a few days ago, so I'll build the updated version soon, but if you're using just the gfortran part there will be likely no changes sine the Fortran sources come from FSF).

Cheers,
Simon

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to