[R] itanium

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon Feb 3 08:25:04 CET 2003


I think you need to use a later compiler, one with a shared libg2c:  
open.o is in libg2c.  With the system you are using, Fortran code cannot
be used in shared (.so) objects.  As Dirk E. says gcc 3.2 works on Debian,
you could try that (although Debian had a relocatable libg2c when gcc did
not).  Alternatively, try rebuilding the g77 libraries with PIC flags.

While you are at it, why not use the current R-1.6.2?

On Mon, 3 Feb 2003, Rob Dunne wrote:

> 
> I am trying to compile R-1.6.1 on an itanium.
> 
> using either gcc 2.96 or gcc 3.0.4 nad either
> the supplied Redhat blas libs or the supplied code (ie
> wiht the --no-blas option) I get this error.
> 
> Has anyone who has compiled R for the itanium advise
> me on the compilers versions and flags that they used?
> 
> 				       thanks 
> 					bye
> 					rob
> 
> 
> 
> 
> gcc -shared -L/usr/local/lib -o lapack.so  Lapack.lo double.lo  cmplx.lo cmplxblas.lo   -L/usr/local/lib -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96 -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96/../../.. -lreadline -ldl -lncurses -lg2c -lm -lpcre -lbz2 -lz -lreadline -ldl -lncurses -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
> make[4]: *** [lapack.so] Error 1
> make[4]: Leaving directory `/home/robd/junk/R-1.6.1/src/modules/lapack'
> 
> 

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