From ripley at stats.ox.ac.uk  Tue Jun  5 15:38:02 2012
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 05 Jun 2012 14:38:02 +0100
Subject: [Rd] Problems building R on Solaris (gcc 4.6, 64 bit)
In-Reply-To: <4FCCFE14.1080300@otg-nc.com>
References: <4FCCFE14.1080300@otg-nc.com>
Message-ID: <4FCE0BBA.3050005@stats.ox.ac.uk>

On 04/06/2012 19:27, Chander Ganesan wrote:
> Hello,
>
> I'm attempting to build R on Solaris 64-bit using gcc4, and am running
> into the following error:
>
> ld.so.1: R: fatal: relocation error: R_AMD64_PC32: file
> /home/chander.ganesan/src/r/R-2.15.0/lib/libR.so: symbol main: value
> 0x28001597b8c does not fit
>
>
> I've noticed - from some lists, and a bug here
> (http://trac.sagemath.org/sage_trac/ticket/9040) that this isn't an
> unexpected issue - but I'm wondering if anyone has a fix for it? If not,
> would someone be willing to develop a permanent fix for it (which I
> believe I could fund, within reason.)
>
> Thank You

R's own documentation has had workarounds for some time: please study 
the R-admin manual.  I built R-patched using 4.7.0 this morning on both 
Solaris 64-bit) platforms (x64 and Sparc).

You do not say what version of R you are trying: I vaguely recall an 
improvement here since 2.15.0 so suggest you try R-patched (and read its 
manual).  It also looks as if you are building R as a shared library, 
which is not the default and it might be better to try the defaults first.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Problems building R on Solaris (gcc 4.6, 64 bit)
Prof Brian Ripley