[R-SIG-Mac] Xcode 5

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Sep 26 22:35:46 CEST 2013


On 26/09/2013 21:11, Kasper Daniel Hansen wrote:
> 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".

Xcode updates sometimes update the command-line tools and sometimes not, 
in my experience.

> 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.

Not if you installed all of Xcode.  But that is a 1.9GB download and 
twice that installed -- more than some people want (especially those 
with small SSDs).  The only time I have ever used it was to tweak the 
R.app project.

> 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?

It has been the recommended toolchain since R 3.0.0.  If you use the 
CRAN binary, it will use those compilers.  If not, use what you like.

>
> Best,
> Kasper
>
>
> On Thu, Sep 26, 2013 at 9:19 AM, Prof Brian Ripley
> <ripley at stats.ox.ac.uk <mailto:ripley at 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 at stats.ox.ac.uk <mailto:ripley at 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
>     <tel:%2B44%201865%20272861> (self)
>     1 South Parks Road, +44 1865 272866 <tel:%2B44%201865%20272866> (PA)
>     Oxford OX1 3TG, UK                Fax: +44 1865 272595
>     <tel:%2B44%201865%20272595>
>
>     _________________________________________________
>     R-SIG-Mac mailing list
>     R-SIG-Mac at r-project.org <mailto:R-SIG-Mac at r-project.org>
>     https://stat.ethz.ch/mailman/__listinfo/r-sig-mac
>     <https://stat.ethz.ch/mailman/listinfo/r-sig-mac>
>
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  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



More information about the R-SIG-Mac mailing list