[R-SIG-Mac] building 32-bit version of R 3.x

Alexy Khrabrov deliverable at gmail.com
Mon Mar 3 06:25:05 CET 2014


On Tue, Feb 25, 2014 at 3:11 AM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:

>> Looking at the sources, there's no obvious way to switch to 32-bit.  The
>> gfortran.pkg (4.2.3) seems obsolete; I've configured the default setup
>
> So?  At least it includes a 32-bit compiler (by default if I understand the
> version you are using).
>

Correct -- but with the current Apple gcc and -arch i386, that old
gfortran and C++ disagree on integer and double sizes in configure.

> You need to specify a 32-bit compiler.  AFAIK -arch is specific to Apple
> front-ends, and the value is i386, not x686.
>
> If you build multilib GCC from the sources, the flag needed is -m32.
>
> This *is* all in the relevant manual.

The manual seems rather general there.  I'd like to know whether
someone has done this recently and what the exact steps are to

-- build the gcc and gfortran with both i386 and x86_64 standard libraries
-- compile latest R with it
-- how to install and manage the setup for invoking one or the other,
and linking to one's or the other's .dylib

>>         [[alternative HTML version deleted]]

I'll dare to object to your signature objection here -- the times
moved on, and most web-based email services, such as gmail, use HTML
mail by default.  Even those who used to run mutt and the like are on
gmail, and not always do they bother to set plain text mode.  So I'd
be OK with the line above, but I will set plain text mode to honor the
tradition.

A+



More information about the R-SIG-Mac mailing list