[R] R-2.5.0 compilation problem on Linux powerpc

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jun 25 17:19:47 CEST 2007


On Mon, 25 Jun 2007, Vivek Menon wrote:

> I did not get what you replied in the previous email. I still get the same
> error with CPICFLAGS and FPICFLAGS set to -fPIC.

And a completely fresh build?

> Vivek
>
> On 6/25/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
>> 
>> On Mon, 25 Jun 2007, Vivek Menon wrote:
>> 
>> >>
>> >>
>> >> > uname -a gives me this:==========
>> >> > Linux XXXXXXXX 2.6.21.1-xserve #17 SMP Thu Jun 14 19:45:57 MDT 2007
>> >> ppc64
>> >> > ppc64 ppc64 GNU/Linux
>> >> > ===========
>> >> > Also when I configure I see the foll. output:
>> >> > ====================
>> >> > R is now configured for powerpc64-unknown-linux-gnu
>> >>
>> >> That might be the problem: 'powerpc64' not 'ppc64'.  What Linux distro
>> is
>> >> this?
>> >
>> >
>> > I am using Yellow Dog Linux distro.
>> >
>> >> Source directory:          .
>> >> > Installation directory:    /usr/local
>> >> >
>> >> > C compiler:                gcc -std=gnu99  -g -O2
>> >> > Fortran 77 compiler:       gfortran  -g -O2
>> >> >
>> >> > C++ compiler:              g++  -g -O2
>> >> > Fortran 90/95 compiler:    gfortran -g -O2
>> >> > Obj-C compiler:
>> >> >
>> >> > Interfaces supported:
>> >> > External libraries:        readline
>> >> > Additional capabilities:   PNG, iconv, MBCS, NLS
>> >> > Options enabled:           shared BLAS, R profiling, Java
>> >> >
>> >> > Recommended packages:      yes
>> >> > ============================
>> >> > Do you have any suggestions??
>> >>
>> >> And what is the setting of the flags I mentioned?  See the manual I
>> >> pointed you to, or the Makeconf file?
>> >
>> >
>> > I checked the Makeconf file and found the following settings:
>> > CPICFLAGS = -fpic
>> > FPICFLAGS = -fpic
>> 
>> So my comment in the first reply applied, since it looks like your distro
>> is using an unusual name.  You need to change these (and in etc/Makeconf).
>> 
>> > Thanks,
>> > Vivek
>> >
>> >
>> >> Thanks,
>> >> > Vivek
>> >> > On 6/25/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
>> >> >>
>> >> >> Is this ppc32 or ppc64?  (What does uname -a say?)
>> >> >>
>> >> >> If the former, you might need to set CPICFLAGS and FPICFLAGS to
>> -fPIC
>> >> >> (rather than -fpic): please look these up in the R-admin.html file
>> >> (which
>> >> >> INSTALL points you to).
>> >> >>
>> >> >> For ppc64 configure should have found -fPIC.
>> >> >>
>> >> >> On Mon, 25 Jun 2007, Vivek Menon wrote:
>> >> >>
>> >> >> > Hello everybody,I am having an error while compiling R-2.5.0 on
>> Linux
>> >> >> > powerpc.
>> >> >> > This is what I see when I do a make:
>> >> >> >
>> >> >> >
>> >> >> > gcc -std=gnu99 -shared -L/usr/local/lib -o grDevices.so chull.o
>> >> >> devNull.o
>> >> >> > devPicTeX.o devPS.o devQuartz.o init.o
>> >> >> > ../../../../library/grDevices/libs/grDevices.so is unchanged
>> >> >> > make[5]: Leaving directory
>> >> >> > `/home/vivekv/sw_alg/R-2.5.0/src/library/grDevices/src'
>> >> >> >
>> >> >> > make[4]: Leaving directory `/home/vivekv/sw_alg/R-2.5.0
>> >> >> > /src/library/grDevices/src'
>> >> >> > Warning: unable to load shared library '/home/vivekv/sw_alg/R-
>> 2.5.0
>> >> >> > /modules//lapack.so':
>> >> >> >  /home/vivekv/sw_alg/R- 2.5.0/modules//lapack.so: R_PPC_REL24
>> >> relocation
>> >> >> at
>> >> >> > 0x0e65d7e4 for symbol `strlen' out of range
>> >> >> > Error in solve.default(rgb) : lapack routines cannot be loaded
>> >> >> > Error: unable to load R code in package 'grDevices'
>> >> >> > Execution halted
>> >> >> > make[3]: *** [all] Error 1
>> >> >> > make[3]: Leaving directory `/home/vivekv/sw_alg/R-2.5.0
>> >> >> > /src/library/grDevices'
>> >> >> > make[2]: *** [R] Error 1
>> >> >> > make[2]: Leaving directory `/home/vivekv/sw_alg/R- 2.5.0
>> /src/library'
>> >> >> > make[1]: *** [R] Error 1
>> >> >> > make[1]: Leaving directory `/home/vivekv/sw_alg/R-2.5.0/src'
>> >> >> > make: *** [R] Error 1
>> >> >> >
>> >> >> > Please let me know what needs to be done for a successful
>> >> installation.
>> >> >> > Thanks,
>> >> >> > Vivek
>> >> >> >
>> >> >> >       [[alternative HTML version deleted]]
>> >> >> >
>> >> >> > ______________________________________________
>> >> >> > R-help at stat.math.ethz.ch mailing list
>> >> >> > https://stat.ethz.ch/mailman/listinfo/r-help
>> >> >> > PLEASE do read the posting guide http://www.R-project.org/posting-
>> >> >> guide.html
>> >> >> > and provide commented, minimal, self-contained, reproducible code.
>> >> >> >
>> >> >>
>> >> >>
>> >> >> --
>> >> >> 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
>> >> >>
>> >> >
>> >>
>> >>
>> >
>> 
>> --
>> 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
>> 
>

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