[R] Problems installing R 2.2.1

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Jan 13 16:34:42 CET 2006


"Anne P Shelton" <ashelton at albany.edu> writes:

> We are trying to install R2.2.1 on a  IBM P655 Cluster, SuSE LE 9.1 
> We are using gcc v 3.3.3
>  
> and we are getting this error on make
>  
> g77 -fPIC  -g -O2 -ffloat-store -c dlamc.f -o dlamc.lo
> g77  -fPIC  -g -O2 -c dlapack0.f -o dlapack0.lo
> g77  -fPIC  -g -O2 -c dlapack1.f -o dlapack1.lo
> g77  -fPIC  -g -O2 -c dlapack2.f -o dlapack2.lo
> g77  -fPIC  -g -O2 -c dlapack3.f -o dlapack3.lo
> g77  -fPIC  -g -O2 -c cmplx.f -o cmplx.lo
> gcc -shared -L/usr/local/lib  -o libRlapack.so dlamc.lo dlapack0.lo
> dlapack1.lo dlapack2.lo dlapack3.lo cmplx.lo  -lf77blas -latlas -lg2c
> -lm -lgcc_s
> /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux
> /bin/ld: Error: The symbol `s_wsfe' has a R_PPC_REL24 relocation, that
> means '/usr/local/lib/libf77blas.a(xerbla.o)' was compiled without
> -fPIC.
> /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux
> /bin/ld: Error: The symbol `do_fio' has a R_PPC_REL24 relocation, that
> means '/usr/local/lib/libf77blas.a(xerbla.o)' was compiled without
> -fPIC.
> /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux
> /bin/ld: Error: The symbol `do_fio' has a R_PPC_REL24 relocation, that
> means '/usr/local/lib/libf77blas.a(xerbla.o)' was compiled without
> -fPIC.
> /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux
> /bin/ld: Error: The symbol `e_wsfe' has a R_PPC_REL24 relocation, that
> means '/usr/local/lib/libf77blas.a(xerbla.o)' was compiled without
> -fPIC.
> /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux
> /bin/ld: Error: The symbol `s_stop' has a R_PPC_REL24 relocation, that
> means '/usr/local/lib/libf77blas.a(xerbla.o)' was compiled without
> -fPIC.
> collect2: ld returned 1 exit status
> make[4]: *** [libRlapack.so] Error 1
> make[4]: Leaving directory
> `/opt/devel/POWER/R/R-2.2.1/src/modules/lapack'
> make[3]: *** [R] Error 2
> make[3]: Leaving directory
> `/opt/devel/POWER/R/R-2.2.1/src/modules/lapack'
> make[2]: *** [R] Error 1
> make[2]: Leaving directory `/opt/devel/POWER/R/R-2.2.1/src/modules'
> make[1]: *** [R] Error 1
> make[1]: Leaving directory `/opt/devel/POWER/R/R-2.2.1/src'
> make: *** [R] Error 1
>  
> Any ideas would be appreciated.  I will continue reading the
> documentation.

Looks like you need to recompile ATLAS (or stop trying to link against
it). This is slightly tricky because ATLAS is not too keen on making
PIC code. AFAIR (it's been a while) you may or may not be given the
choice of modifying flags during the configuration phase (where need
to stick in -fPIC all over the place). Alternatively, you can just let
it run and diddle the Make.Linux_* file afterwards.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list