Re: [R] R-2.5.0 compilation problem on Linux powerpc

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 25 Jun 2007 14:22:08 +0100 (BST)

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?

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

> 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

______________________________________________
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.
Received on Mon 25 Jun 2007 - 17:06:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Jun 2007 - 17:32:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.