Thanks for the information.

I am not an expert on clang, but here is my experience: I had Xcode 4 and
command line tools add-ons installed.  I upgraded to Xcode 5 and then I (as
usual) went into Xcode Preferences -> Downloads and chose to install
"command line tools".

I now have the same version of clang as Prof. Ripley describes above, and I
also get

sleipner:~ $ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

I did not need to download anything from the developer website.

Question: I am still using the build of GCC 4.2 which Simon supplies

sleipner:~ $ /usr/bin/gcc-4.2 --version
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
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.

I see in R-admin that CRAN is now built using llvm-gcc-4.2.  I assume this
is now the recommended tool and I should switch?

Best,
Kasper


On Thu, Sep 26, 2013 at 9:19 AM, Prof Brian Ripley <ripley@stats.ox.ac.uk>wrote:

> Xcode was released last week, although it did not show up as an update for
> me until this.  It may be available only for Mountain Lion: the
> command-line tools seems only to be.
>
> As expected, the compilers used for the CRAN binary build, llvm-gcc-4.2
> and llvm-g++-4.2, are not part of Xcode 5.  Less expected was that updating
> to Xcode 5 did not remove them, at least for me.
>
> All that is needed to build R or install packages is the 'Command-line
> tools for Xcode'  These can be downloaded from
> https://developer.apple.com/**downloads/index.action<https://developer.apple.com/downloads/index.action>(registering your Apple ID for that site is needed).   New users could
> download and install
>
> Command-line tools (OS X Mountain Lion) for Xcode (April 2013)
> Command-line tools (OS X Mountain Lion) for Xcode (September 2013)
>
> and install them in that order.
>
> We have been testing building R and packages with clang since R 3.0.0, and
> details of how to do so are in the 'R Installation and Administration
> Manual'.  Xcode 5 updates to
>
> tystie% clang --version
> Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
>
> whatever '3.3svn' means (3.2svn meant 3.1+epsilon).
>
>
> --
> Brian D. Ripley,                  ripley@stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~**ripley/<http://www.stats.ox.ac.uk/~ripley/>
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>
> ______________________________**_________________
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/**listinfo/r-sig-mac<https://stat.ethz.ch/mailman/listinfo/r-sig-mac>
>

	[[alternative HTML version deleted]]

