From ripley at stats.ox.ac.uk  Thu Oct 15 15:02:57 2015
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 15 Oct 2015 14:02:57 +0100
Subject: [Rd] Building R for AIX in 64-bit mode
In-Reply-To: <CANvxniVBrCaT1C3HosULfg4OfBNkL-vQqnFuTt+j=pfMbovX_Q@mail.gmail.com>
References: <CANvxniVBrCaT1C3HosULfg4OfBNkL-vQqnFuTt+j=pfMbovX_Q@mail.gmail.com>
Message-ID: <561FA401.7010207@stats.ox.ac.uk>

On 15/10/2015 13:32, Michael Felt wrote:
> Hi.
>
> Just wanted to let you know I am getting close to packaging R for AIX in
> 64.bit mode.

Which version? (You mentioned 3.1.3 and 3.2.2 far below.)  There is 
little value in reporting on frozen branches, and most value in 
reporting on R-devel where all the current changes have been incorporated.

> One comment - the libtool.m4 I see used is quite old. The one I have on my
> system is 2.4.6, and what I see in R says:

R-devel has 2.4.6 .

> I am hoping a new libtool will clean up most of the manual work now needed.

But libtool is hardly used in building R.

> # Which release of libtool.m4 was used?
> macro_version=2.2.6
> macro_revision=1.3012
>
> This may be all that is needed to cleanup what I am doing manually.
>
> working with gcc I have done the following for 64-bit building
>
> export OBJECT_MODE=64
> export CFLAGS="-maix64 -O2"
> export FFLAGS="-maix64 -O2"

See the manual: flags such as -maix64 should be part of CC, not CFLAGS. 
  That explains a lot of what was reported.
Specifically, 
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Essential-programs-and-libraries 
and https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#AIX .

It is safer to put such things on the configure command line or in a 
config.site file (they will be found when updating if you do).

[Lots of test output removed.]

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK



[Rd] Building R for AIX in 64-bit mode
Prof Brian Ripley