Skip to content

64bit R for intel

4 messages · Simon de Bernard, Simon Urbanek, Graham Watt-Gremm

#
I am about to invest into a new xserve and I was wondering what was  
the status on the 64-bit release of R for the intel chips (I need to  
break that 4GB limit...)

TIA,

Simon.
#
Simon,
On Nov 1, 2006, at 6:00 PM, Simon de Bernard wrote:

            
Unfortunately I still have no access to a Mac Pro machine, so I can't  
test it. In theory it should work as there is no problem building 64- 
bit ppc binary (i.e. the R sources should have no 32-bit vs 64-bit  
issues on a Mac). In practice there may be some problems lurking in  
the dark because of the compilers (the gcc 4.0.3 we use for the  
current build doesn't have 64-bit Intel support). A possible way is  
to use Apple compiler and maybe HPC gfortran. I can try to build such  
binary, but I'll need some owner of Mac Pro to test it (I'll post it  
to the R Mac page). Of course the same restrictions that apply to the  
ppc 64-bit version apply here as well (no Cocoa and GUI, need for  
custom X11 client etc.).

Cheers,
Simon
#
Simon and Simon,
I'll gladly test the build and report....
Cheers,
Graham
On 1-Nov-06, at 7:05 PM, Simon Urbanek wrote:

            
#
I'm glad to report that 64-bit R compiles and passes make check on  
Mac Pro (thanks to Jan de Leeuw for providing me with access to his  
machine).

Quick guide:
- get gfortran 4.2.0 for Intel from HPC pages (http:// 
hpc.sourceforge.net/) and install it ( sudo tar fvxz gfortran-intel- 
bin.tar.gz -C /
- get Darwin driver for gfortran (e.g. from my pages, run in terminal:
sudo bash
cd /usr/local/bin
mv gfortran i686-apple-darwin8-gfortran-4.2.0
curl -O http://r.research.att.com/gfortran
chmod a+x gfortran

Add the compiler to your PATH

export PATH=/usr/local/bin:$PATH

get R sources, configure and build. For my test I used the following  
flags:

../R24-branch/configure CC='gcc -arch x86_64' CXX='g++ -arch x86_64'  
F77='gfortran -arch x86_64' FC='gfortran -arch x86_64' --with-blas='- 
framework vecLib' --with-lapack --without-x CPPFLAGS=-I/usr/local/ 
include LDFLAGS='-L/usr/local/lib/x86_64 -L/usr/local/lib'  
r_arch=x86_64 --with-system-zlib --build=x86_64-apple-darwin8.8.1

If you don't have 64-bit readline, add --without-readline. If you  
install the above (make ; make install), it will add 64-bit support  
to your existing R framework (I didn't test the framework itself,  
though). Remove the r_arch flag if you want single-arch R.

Cheers,
Simon
On Nov 1, 2006, at 6:00 PM, Simon de Bernard wrote: