From aferris at mrl.ubc.ca  Wed Mar 14 23:00:07 2007
From: aferris at mrl.ubc.ca (Andrew Ferris)
Date: Wed, 14 Mar 2007 15:00:07 -0700
Subject: [Rd] compile 2.4.1 for linux on power cpus
In-Reply-To: <45F85C4D.9080005@biostat.ku.dk>
References: <45F7CB380200007B0004C384@mail.mrl.ubc.ca>	<45F7D4C20200007B0004C3BF@mail.mrl.ubc.ca>
	<45F7D4C2.0211.007B.0@mrl.ubc.ca><45F7D4C2.0211.007B.0@mrl.ubc.ca>
	<45F85C4D.9080005@biostat.ku.dk>
Message-ID: <45F80DF7.0211.007B.0@mrl.ubc.ca>

Thank you for the reply Peter. 

I've compiled R from source using the following:

./configure --host=powerpc64-power5-linux-gnu --build=powerpc64-power5-linux-gnu '--with-blas=-framework blas-3.1.0-11'

and after I've made R I get this:

> .Machine$sizeof.pointer
[1] 4

meanwhile uname -a prints out this:

Linux [hostname] 2.6.16.21-0.8-ppc64 #1 SMP Mon Jul 3 18:25:39 UTC 2006 ppc64 ppc64 ppc64 GNU/Linux

and in the root filesystem there's a /lib and /lib64. I suspect that R needs to have the 64 bit libraries specified so is there a way to do that?

Andrew Ferris
Network Support Analyst
iCAPTURE Research Centre
University of British Columbia

>>> Peter Dalgaard <p.dalgaard at biostat.ku.dk> 03/14/07 1:34 PM >>>
Andrew Ferris wrote:
> Hello,
>
> I've been asked to get R (2.4.1) installed on a IBM p570 server. This is a server with power CPUs and is running SLES 10. It currently has 12GB of RAM so I'd like to make sure I have the 64 bit version of R so as to take advantage of the extra memory. Since it's a power CPU server that means I'll have to compile R from source. 
>
> I've searched the r_users list but most of the power CPU correspondence concerns either AIX or Macs. SLES 10 uses GCC 4.1.0 by default. Could someone please help me with some guidance on the necessary parameters for configure to ensure a 64 bit version of R is compiled? 
>  
>
>   
Just running the 64bit version of the OS usually suffices (at least on 
Linux variants). Easiest check on a running R is

 > .Machine$sizeof.pointer
[1] 4

which gives 8 on 64-bit builds.





***CONFIDENTIALITY NOTICE***
This electronic message is intended only for the use of the addressee and may contain information that is privileged and confidential.  Any dissemination, distribution or copying of this communication by unauthorized individuals is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail and delete the original and all copies from your system.



[Rd] compile 2.4.1 for linux on power cpus
Andrew Ferris