[Rcppoctave-user] Apple Blues
Renaud Gaujoux
renaud at mancala.cbio.uct.ac.za
Fri Nov 1 08:13:26 CET 2013
---------- Forwarded message ----------
From: Dominick Samperi <djsamperi at gmail.com>
Date: 30 October 2013 07:32
Subject: Re: Apple Blues
To: Renaud Gaujoux <renaud at mancala.cbio.uct.ac.za>
A little more searching revealed that llvm-g++
and llvm-gcc are part of LLVM releases 2.9 and
earlier, see...
http://llvm.org/releases/download.html#3.3
It seems like Mac OS X users of R will have to
use a specific toolchain for all apps that need to
link against each other, and this is especially true
for RcppOctave…
And the easiest toolchain to use under Mac OS X is
the one specified by Apple! (Unfortunately this does
not solve the Fortran problem.)
On Wed, Oct 30, 2013 at 1:11 AM, Dominick Samperi <djsamperi at gmail.com>wrote:
> Hello Renaud,
>
> I just tried unsuccessfully to upgrade my Apple desktop to
> Mac OS X 10.9 (Mavericks), but due to a few technical
> problems I had to backtrack to the previous version
> 10.8 for now.
>
> After restoring from backups and checking
> that everything works, I discovered that RcppOctave
> does not install. I get the same invalid malloc error that
> I was getting before. But this time I have not used
> MacPorts at all, only Homebrew, and the version of
> Octave is 3.6.4 as it should be.
>
> (I am downloading source, not using install.packages(), because
> the latter tends to download old archives.)
>
> Indeed, with my fresh install of Mac OS X, with the
> command line tools and Xcode installed, R does not
> issue the correct command: R CMD config CXX
> returns: llvm-g++-4.2 -arch x86_64.
>
> But there is no llvm-g++-4.2, only /usr/bin/g++ (version
> 4.2.1) and /usr/bin/gcc (version 4.2.1). I tried to work-around
> this problem by defining symbolic links llvm-g++-4.2 and
> llvm-gcc-4.2 pointing to these files, but this does not work.
>
> There are a couple of open issues:
> 1. Apple no longer ships binaries named llvm-g++-4.2 and
> llvm-gcc-4.2 (only g++ and gcc).
> 2. Apple no longer supports Fortran at all (the R core team
> provides gfortran-4.2…see R Mac OS FAQ).
> 3. 'brew install octave' does not show you what it is doing,
> and I think it may be using clang instead of gcc, clang++
> instead of g++.
> 4. The segfault error when I try to install RcppOctave is
> probably due to compiler version incompatibilities, either
> gcc-4.2 vs gcc-4.2.1, or more likely, gcc-4.2.1 vs clang, etc.
>
> Thus under Mac OS X the correct long-term solution is to
> stop using gcc/g++ and follow Apple in using clang/clang++.
> In the mean time, Apple will make life difficult for people who
> continue to use gcc/g++/gfortran! (There is an open source
> project to write an LLVM Fortran front-end, but I don't know
> what the status of that project is.)
>
> Dominick
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcppoctave-user/attachments/20131101/37146aa4/attachment.html>
More information about the Rcppoctave-user
mailing list