[Rd] Compiling R-2.8.1 on Sparc Solaris 10: libRlapack.so: symbol __vlog_: referenced symbol not found

Mohammad Nikseresht mniksere at scs.carleton.ca
Wed Mar 11 15:09:40 CET 2009


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



More information about the R-devel mailing list