[R] problems when compiling R

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Oct 4 21:10:31 CEST 2004


On Mon, 4 Oct 2004, Tao Chen wrote:

> When I was trying to compile R-1.9.1 from source, I've got problems
> which seemed related to compiling the LAPACK package.

There is no `LAPACK package': I think you mean the `lapack module'.

> The error message is as follows:
> 
> gcc -shared -L/usr/local/lib -o libRlapack.so dlamc.lo dlapack0.lo
> dlapack1.lo dlapack2.lo dlapack3.lo cmplx.lo -lblas -L/usr/local/lib
> -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96
> -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96/../../.. -lg2c -lm
> /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen
> /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen
> /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen
> /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen
> /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen
> /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen
> collect2: ld returned 1 exit status

You will need to get a released version of gcc (2.96 is a RedHat fiction),
and one with a shared libg2c.  Gcc 3.4.2 is current whereas your compiler
is both ancient and known to be bug-ridden.

> I just run the "configure" and then "make". The system information is as
> follows:
> 
> Hardware:
> SGI Altix 3700 Supercluster
> 28 1.3G Itanium dual processors (ia64)
> 
> OS:
> Redhat Linux AS2.1 (ia64)
> 
> 
> I re-run the compling process on my own PC (AMD XP 2000+ with redhat linux 9) and got no problem at all ...
> 
> almost hang my neck on that as I need to move all my work to that supercluster

-- 
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




More information about the R-help mailing list