[Rd] Compiling R-2.8.1 on Sparc Solaris 10: libRlapack.so: symbol __vlog_: referenced symbol not found
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Mar 11 20:23:28 CET 2009
Please try the options recommended in the R-admin manual: these do not
include using sunperf.
But if you want to choose your own options, ask your local Solaris
help as this is not an R issue.
On Wed, 11 Mar 2009, Mohammad Nikseresht wrote:
> Hi,
>
> I am compiling R2.8.1 on a Sun M4000 machine with Solaris 10.
> I am using Sun Studio 12.
> I get the following error:
>
> cc -xtarget=native64 -G -L/usr/sfw/lib/sparcv9 -L/opt/csw/lib/sparcv9 -o
> grDevices.so chull.o devNull.o devPicTeX.o devPS.o devQuartz.o init.o
> mkdir ../../../../library/grDevices/libs
> Warning in solve.default(rgb) :
> unable to load shared library
> '/export/admin-home/nikser/R-2.8.1/modules//lapack.so':
> ld.so.1: R: fatal: relocation error: file
> /export/admin-home/nikser/R-2.8.1/lib/libRlapack.so: symbol __vlog_:
> referenced symbol not found
> Error in solve.default(rgb) : lapack routines cannot be loaded
> Error: unable to load R code in package 'grDevices'
> Execution halted
> *** Error code 1
> The following command caused the error:
> echo "tools:::makeLazyLoading(\"grDevices\")" | \
> R_DEFAULT_PACKAGES=NULL LC_ALL=C ../../../bin/R --vanilla --slave >
> /dev/null
> make: Fatal error: Command failed for target `all'
> Current working directory
> /export/admin-home/nikser/R-2.8.1/src/library/grDevices
>
> I set the following environment variables:
>
> export LDFLAGS="-L/usr/sfw/lib/sparcv9 -L/opt/csw/lib/sparcv9"
> export CFLAGS="-I/usr/sfw/include -I/opt/csw/include"
> export R_PAPERSIZE=letter
> export CC="cc -xtarget=native64"
> export FC="f95 -xtarget=native64"
> export CXX="CC -xtarget=native64"
> export CPPFLAGS="-I/usr/sfw/include -I/opt/csw/include"
> export CFLAGS="-O -xlibmieee"
> export F77="f95 -xtarget=native64"
> export CXXFLAGS=-O
> export FFLAGS="-O4 -xlibmopt -libmil -xvector=lib -fround=nearest"
> export FCFLAGS=$FFLAGS
> export LDFLAGS="-L/usr/sfw/lib/sparcv9 -L/opt/csw/lib/sparcv9"
> export SHLIB_CXXLDFLAGS="-G -lCstd"
> export BLAS_LIBS=-xlic_lib=sunperf
> export LIBS="-lmvec"
> export SHLIB_CFLAGS=-lmvec
>
> and:
>
> ./configure --prefix=/opt/R-2.8.1 --enable-threads=solaris --with-blas
>
> Could you please help me to pinpoint the problem.
>
> Thanks
> --
> Mohammad
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
--
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-devel
mailing list